Changeset 379
- Timestamp:
- Jun 14, 2012, 9:34:49 PM (12 years ago)
- Location:
- experimental/distortionNG
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionManipulator.cpp
r373 r379 256 256 if ( activeSetupMode == DELEGATED && _delegatedDistortionSetupStrategy.valid()) 257 257 { 258 OSG_ALWAYS<<"Calling delegated class.."<<std::endl;258 //OSG_ALWAYS<<"Calling delegated class.."<<std::endl; 259 259 _delegatedDistortionSetupStrategy->delegateDistortionSetup(_distortionSet); 260 // ToDo :: nach dem der distortioncontainer von der strategy aktualisiert wurde muss nun noch der container noch angewendet werden. 261 OSG_ALWAYS<<"..done"<<std::endl; 260 if( _distortionSet->isDirty() ) 261 { 262 // todo: transfer matrixes into viewer camera. 263 } 264 //OSG_ALWAYS<<"..done"<<std::endl; 262 265 } 263 266 break; -
experimental/distortionNG/DistortionSet.cpp
r374 r379 24 24 DistortionSet::DistortionSet() 25 25 { 26 _dirty = false; 27 26 28 _distortionMeshRows = 2; 27 29 _distortionMeshColumns = 2; -
experimental/distortionNG/DistortionSet.h
r374 r379 54 54 55 55 // Working access 56 bool isDirty(){return(_dirty);} 57 void dirty(){_dirty=true;} 58 56 59 osg::Image* getIntensityMap() { return _intensityMap; } // Also for manipulating the intensity map 57 60 bool& getShowIntensityMapOnlyAsRef() { return _showIntesityMapMapOnly;} … … 103 106 104 107 private: 108 bool _dirty; 105 109 int _distortionMeshRows; 106 110 int _distortionMeshColumns; -
experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp
r378 r379 261 261 if (_distortionInitialized==false ) 262 262 { 263 _distortionInitialized=true; 264 distortionSet->dirty(); 263 265 264 266 // ******************** // … … 292 294 distortionSet->getIntensityMap()->dirty(); 293 295 294 return;295 296 // ******************************* // 296 297 // *** Frustum and View Offset *** // … … 321 322 distortionSet->setViewOffset(viewOffset); 322 323 distortionSet->setProjectionOffset(projectionOffset); 323 324 return; 324 325 // ******************************* // 325 326 // ******* Distortion Mesh ******* // … … 383 384 } 384 385 385 _distortionInitialized=true; 386 387 388 } 389 390 } 386 } 387 388 }
Note: See TracChangeset
for help on using the changeset viewer.