Changeset 372 for experimental/distortionNG
- Timestamp:
- Jun 1, 2012, 9:57:13 PM (12 years ago)
- Location:
- experimental/distortionNG
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionManipulator.h
r371 r372 66 66 void setDistortionSet(DistortionSet* ds) {_distortionSet = ds;} 67 67 68 68 void setDistortionSetupStrategy(DistortionSetupStrategy* strategy) {_delegatedDistortionSetupStrategy = strategy;} 69 69 70 70 private: -
experimental/distortionNG/DistortionSetupStrategy.h
r371 r372 34 34 public: 35 35 DistortionSetupStrategy(); 36 ~DistortionSetupStrategy();36 virtual ~DistortionSetupStrategy(); 37 37 virtual void delegateDistortionSetup(osgViewer::DistortionSet* distortionSet)=0; 38 38 -
experimental/distortionNG/distortionNG.vcproj
r371 r372 346 346 </File> 347 347 <File 348 RelativePath=".\DistortionSetupStrategyProjectSyntropy.cpp" 349 > 350 </File> 351 <File 348 352 RelativePath=".\extViewer.cpp" 349 353 > … … 372 376 </File> 373 377 <File 378 RelativePath=".\DistortionSetupStrategyProjectSyntropy.h" 379 > 380 </File> 381 <File 374 382 RelativePath=".\extViewer.h" 375 383 > -
experimental/distortionNG/main.cpp
r371 r372 37 37 38 38 #include "DistortionManipulator.h" 39 #include "DistortionSetupStrategyProjectSyntropy.h" 39 40 40 41 int main(int argc, char** argv) … … 92 93 93 94 // Add the distortion manipulator 94 viewer.addEventHandler(new osgViewer::DistortionManipulator(_distortionSet)); 95 osgViewer::DistortionManipulator* distortionManip = new osgViewer::DistortionManipulator(_distortionSet); 96 distortionManip->setDistortionSetupStrategy( new DistortionSetupStrategyProjectSyntropy() ); 97 viewer.addEventHandler(distortionManip); 95 98 96 99 // add the state manipulator
Note: See TracChangeset
for help on using the changeset viewer.