Ignore:
Timestamp:
Jul 7, 2012, 12:35:22 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionSet.h

    r383 r398  
    6464        bool& getShowIntensityMapOnlyAsRef()    { return _showIntesityMapMapOnly;}
    6565
    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(); }
    6871
    6972        osg::Switch* getDistortionInternals()   { return _distortionInternals; }
     
    129132        // These variable are therefor not saved/restored by the serializer but populated on runtime.
    130133        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.
    132136        osg::ref_ptr<osg::Switch> _distortionInternals; // definition: child #0 = mesh, #1 = highlighter, #2 HUD
    133137
Note: See TracChangeset for help on using the changeset viewer.