Changeset 380 for experimental/distortionNG/DistortionManipulator.cpp
- Timestamp:
- Jun 14, 2012, 10:21:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionManipulator.cpp
r379 r380 18 18 19 19 #include "DistortionManipulator.h" 20 #include "extViewer.h" 20 21 21 22 #include <osgViewer/Viewer> … … 33 34 34 35 35 DistortionManipulator::DistortionManipulator( DistortionSet* ds)36 : _highlightColor( osg::Vec4(1.0f, 1.0f, 0.0f, 1.0f) ), _distortionSet( ds ) 36 DistortionManipulator::DistortionManipulator(extViewer* viewer, DistortionSet* ds) 37 : _highlightColor( osg::Vec4(1.0f, 1.0f, 0.0f, 1.0f) ), _distortionSet( ds ), _viewer(viewer) 37 38 { 38 39 activeSetupMode = DISABLED; … … 258 259 //OSG_ALWAYS<<"Calling delegated class.."<<std::endl; 259 260 _delegatedDistortionSetupStrategy->delegateDistortionSetup(_distortionSet); 260 if( _distortionSet->isDirty() )261 if( _distortionSet->isDirty() && _viewer.valid()) 261 262 { 262 // todo: transfer matrixes into viewer camera.263 _viewer->updateDistortion(); 263 264 } 264 265 //OSG_ALWAYS<<"..done"<<std::endl;
Note: See TracChangeset
for help on using the changeset viewer.