Changeset 345 for experimental/distortionNG/DistortionSet.h
- Timestamp:
- Apr 18, 2012, 10:04:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSet.h
r344 r345 21 21 #include <osg/Image> 22 22 #include <osg/Matrixd> 23 #include <osg/PrimitiveSet>24 23 25 24 namespace osgViewer { … … 44 43 45 44 void setDistortionMeshRows(int distortionMeshRows) { _distortionMeshRows = distortionMeshRows; } 46 int getDistortionMeshRows() const { return (_distortionMeshRows); }45 int getDistortionMeshRows() const { return _distortionMeshRows; } 47 46 48 47 void setDistortionMeshColumns(int distortionMeshColumns) { _distortionMeshColumns = distortionMeshColumns; } 49 int getDistortionMeshColumns() const { return(_distortionMeshColumns); } 48 int getDistortionMeshColumns() const { return _distortionMeshColumns; } 49 50 void setMeshType(GLenum meshType) { _meshType = meshType; } 51 inline GLenum getMeshType() const { return _meshType; } 50 52 51 53 void setIntensityMap(osg::Image* intensityMap) { _intensityMap = intensityMap; } 52 const osg::Image* getIntensityMap() const { return (_intensityMap); }54 const osg::Image* getIntensityMap() const { return _intensityMap; } 53 55 54 56 void setTexUnitScene(unsigned int texUnitScene) { _texUnitScene = texUnitScene; } 55 unsigned int getTexUnitScene() const { return (_texUnitScene); }57 unsigned int getTexUnitScene() const { return _texUnitScene; } 56 58 57 59 void setTexUnitIntensityMap(unsigned int texUnitIntensityMap) { _texUnitIntensityMap = texUnitIntensityMap; } 58 unsigned int getTexUnitIntensityMap() const { return (_texUnitIntensityMap); }60 unsigned int getTexUnitIntensityMap() const { return _texUnitIntensityMap; } 59 61 60 62 void setViewOffset(const osg::Matrixd& viewOffset) { _viewOffset = viewOffset; } 61 const osg::Matrixd& getViewOffset() const { return (_viewOffset); }63 const osg::Matrixd& getViewOffset() const { return _viewOffset; } 62 64 63 65 void setProjectionOffset(const osg::Matrixd& projectionOffset) { _projectionOffset = projectionOffset; } 64 const osg::Matrixd& getProjectionOffset() const { return (_projectionOffset); }66 const osg::Matrixd& getProjectionOffset() const { return _projectionOffset; } 65 67 66 68 private: 67 69 int _distortionMeshRows; 68 70 int _distortionMeshColumns; 69 //osg::PrimitiveSet::Mode _MeshType71 GLenum _meshType; 70 72 71 73 osg::ref_ptr<osg::Image> _intensityMap;
Note: See TracChangeset
for help on using the changeset viewer.