Changeset 369 for experimental


Ignore:
Timestamp:
May 31, 2012, 10:38:58 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/main.cpp

    r367 r369  
    2323
    2424#include <osgDB/ReadFile>
     25#include <osgDB/WriteFile>      // Testweise zum dist plugin verifizieren
    2526
    2627#include <osgViewer/Viewer>
     
    5354        _distortionSet->setDistortionMeshRows( 20 );
    5455        _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
    5567       
    5668        viewer.setUpViewForManualDistortion(_distortionSet, 0);
     
    149161 * modul                                                                Funktionen / Description
    150162 *
    151  * [] plugin .dist                                              load / Save distContainers                                      loads and saves via serializers the distortion container from/to file.
     163 * [] plugin .dist                      [done]          load / Save distContainers                                      loads and saves via serializers the distortion container from/to file.
    152164 *                                                                                                                                                                      Ensures the Coordinates are normalized before saving the container.
    153165 *                                                                              Load:
Note: See TracChangeset for help on using the changeset viewer.