Changeset 369 for experimental/distortionNG
- Timestamp:
- May 31, 2012, 10:38:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/main.cpp
r367 r369 23 23 24 24 #include <osgDB/ReadFile> 25 #include <osgDB/WriteFile> // Testweise zum dist plugin verifizieren 25 26 26 27 #include <osgViewer/Viewer> … … 53 54 _distortionSet->setDistortionMeshRows( 20 ); 54 55 _distortionSet->setDistortionMeshColumns( 20 ); 56 57 58 // ---- test plugin read / write 59 60 //osgDB::writeObjectFile( *_distortionSet, "testcont.dist" ); 61 _distortionSet = NULL; 62 _distortionSet = dynamic_cast<osgViewer::DistortionSet*>( osgDB::readObjectFile( "testcont.dist" ) ); 63 64 65 // ------------ Test ende ----------- 66 55 67 56 68 viewer.setUpViewForManualDistortion(_distortionSet, 0); … … 149 161 * modul Funktionen / Description 150 162 * 151 * [] plugin .dist 163 * [] plugin .dist [done] load / Save distContainers loads and saves via serializers the distortion container from/to file. 152 164 * Ensures the Coordinates are normalized before saving the container. 153 165 * Load:
Note: See TracChangeset
for help on using the changeset viewer.