Changeset 350 for experimental/distortionNG/DistortionSet.h
- Timestamp:
- Apr 21, 2012, 4:53:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSet.h
r349 r350 37 37 _texUnitIntensityMap(ds._texUnitIntensityMap), 38 38 _viewOffset(ds._viewOffset), 39 _projectionOffset(ds._projectionOffset){} 39 _projectionOffset(ds._projectionOffset), 40 _showIntesityMapMapOnly(ds._showIntesityMapMapOnly){} 40 41 41 42 DistortionSet(); 42 43 virtual ~DistortionSet(); 43 44 45 // Working access 46 osg::Image* getIntensityMap() { return _intensityMap; } // Also for manipulating the intensity map 47 bool& getShowIntensityMapOnlyAsRef() { return _showIntesityMapMapOnly;} 48 49 50 51 // Serializer Access 44 52 void setDistortionMeshRows(int distortionMeshRows) { _distortionMeshRows = distortionMeshRows; } 45 53 int getDistortionMeshRows() const { return _distortionMeshRows; } … … 52 60 53 61 void setIntensityMap(osg::Image* intensityMap) { _intensityMap = intensityMap; } 54 const osg::Image* getIntensityMap() const { return _intensityMap; } // for serializers55 osg::Image* getIntensityMap() { return _intensityMap; } // for manipulating the intensity map 62 const osg::Image* getIntensityMap() const { return _intensityMap; } 63 56 64 57 65 void setTexUnitScene(unsigned int texUnitScene) { _texUnitScene = texUnitScene; } … … 67 75 const osg::Matrixd& getProjectionOffset() const { return _projectionOffset; } 68 76 77 void setShowIntensityMapOnly(bool show) {_showIntesityMapMapOnly = show;} 78 bool getShowIntensityMapOnly() const { return _showIntesityMapMapOnly;} 79 80 69 81 private: 70 82 int _distortionMeshRows; … … 79 91 osg::Matrixd _projectionOffset; 80 92 81 93 bool _showIntesityMapMapOnly; // Intensity Blending is done by a frag shader. To control it on runtime, the uniform must be bound to a central variable. 82 94 }; 83 95
Note: See TracChangeset
for help on using the changeset viewer.