Changeset 353 for experimental/distortionNG/DistortionSet.h
- Timestamp:
- Apr 21, 2012, 9:49:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSet.h
r350 r353 21 21 #include <osg/Image> 22 22 #include <osg/Matrixd> 23 #include <osg/Camera> 24 #include <osg/Switch> 23 25 24 26 namespace osgViewer { … … 46 48 osg::Image* getIntensityMap() { return _intensityMap; } // Also for manipulating the intensity map 47 49 bool& getShowIntensityMapOnlyAsRef() { return _showIntesityMapMapOnly;} 50 51 void setDistortionCamera(osg::Camera* camera) { _camera = camera;} 52 osg::Camera* getDistortionCamera() { return _camera.get(); } 53 54 osg::Switch* getDistortionInternals() { return _distortionInternals; } 48 55 49 56 … … 92 99 93 100 bool _showIntesityMapMapOnly; // Intensity Blending is done by a frag shader. To control it on runtime, the uniform must be bound to a central variable. 101 102 // Interconnect-Pointer to allow acces between distortion elements (osgViewer) and the distortion manipulator. 103 // These variable are therefor not saved/restored by the serializer but populated on runtime. 104 osg::observer_ptr<osg::Camera> _camera; // is used to pass the distortion cam from osgViewers setupDistortion() method to the manipulator. 105 osg::ref_ptr<osg::Switch> _distortionInternals; 94 106 }; 95 107
Note: See TracChangeset
for help on using the changeset viewer.