Changeset 383 for experimental/distortionNG/DistortionSet.h
- Timestamp:
- Jun 15, 2012, 9:14:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSet.h
r379 r383 54 54 55 55 // Working access 56 bool isDirty(){return(_dirty);} 57 void dirty(){_dirty=true;} 56 bool isDirty(){return(_meshDirty || _matrixDirty);} 57 void dirtyMesh(){_meshDirty = true;} 58 void dirtyMatrix(){_matrixDirty = true;} 59 void clearDirtyStatus() { _meshDirty = false; _matrixDirty = false;} 60 61 void setDistortionMeshDimensions(int rows, int cols); 58 62 59 63 osg::Image* getIntensityMap() { return _intensityMap; } // Also for manipulating the intensity map … … 79 83 int getDistortionMeshColumns() const { return _distortionMeshColumns; } 80 84 81 void setDistortionMesh(osg:: Geometry*);82 const osg:: Geometry* getDistortionMesh() const;85 void setDistortionMesh(osg::Vec4Array* distortionMesh) { _distortionMesh = distortionMesh; } 86 const osg::Vec4Array* getDistortionMesh() const { return _distortionMesh; } 83 87 84 88 void setMeshType(GLenum meshType) { _meshType = meshType; } … … 106 110 107 111 private: 108 bool _dirty; 112 // Blendmap has no dirty flag because changes of the intensityMap is directly effective. 113 bool _meshDirty; 114 bool _matrixDirty; 115 109 116 int _distortionMeshRows; 110 117 int _distortionMeshColumns; 118 osg::ref_ptr<osg::Vec4Array> _distortionMesh; // x,y = vertex coordinates, z,t=textureCoordinates 111 119 GLenum _meshType; 112 120
Note: See TracChangeset
for help on using the changeset viewer.