Changeset 398 for experimental/distortionNG/DistortionSet.h
- Timestamp:
- Jul 7, 2012, 12:35:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSet.h
r383 r398 64 64 bool& getShowIntensityMapOnlyAsRef() { return _showIntesityMapMapOnly;} 65 65 66 void setDistortionCamera(osg::Camera* camera) { _camera = camera;} 67 osg::Camera* getDistortionCamera() { return _camera.get(); } 66 void setSceneCamera(osg::Camera* camera) { _sceneCamera = camera;} 67 osg::Camera* getSceneCamera() { return _sceneCamera.get(); } 68 69 void setDistortionCamera(osg::Camera* camera) { _distortionCamera = camera;} 70 osg::Camera* getDistortionCamera() { return _distortionCamera.get(); } 68 71 69 72 osg::Switch* getDistortionInternals() { return _distortionInternals; } … … 129 132 // These variable are therefor not saved/restored by the serializer but populated on runtime. 130 133 bool _showIntesityMapMapOnly; // Intensity Blending is done by a frag shader. To control it on runtime, the uniform must be bound to a central variable. 131 osg::observer_ptr<osg::Camera> _camera; // is used to pass the distortion cam from osgViewers setupDistortion() method to the manipulator. 134 osg::observer_ptr<osg::Camera> _sceneCamera; // us used to pass the scene camera to the manipulator to allow matrix changes of the camera 135 osg::observer_ptr<osg::Camera> _distortionCamera; // is used to pass the distortion cam from osgViewers setupDistortion() method to the manipulator. 132 136 osg::ref_ptr<osg::Switch> _distortionInternals; // definition: child #0 = mesh, #1 = highlighter, #2 HUD 133 137
Note: See TracChangeset
for help on using the changeset viewer.