Changeset 343 for experimental


Ignore:
Timestamp:
Apr 18, 2012, 9:24:08 AM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/main.cpp

    r342 r343  
    116116    }
    117117        viewer.setSceneData( rootnode );
    118 
    119         //osg::ref_ptr<osg::Geode> geode = new osg::Geode;
    120         //geode->addDrawable( extViewer::createMesh(16, 9) );
    121         //geode->getOrCreateStateSet()->setMode( GL_LIGHTING, osg::StateAttribute::OFF );
    122         //geode->getOrCreateStateSet()->setAttributeAndModes( new osg::PolygonOffset(1.0f, 1.0f) );
    123 
    124         //osg::ref_ptr<distortionHandler> selector = new distortionHandler( viewer.getCamera() );
    125 
    126         //osg::ref_ptr<osg::Group> root = new osg::Group;
    127         //root->addChild( geode.get() );
    128         //root->addChild( selector->createVertexHighlighter() );
    129         //viewer.addEventHandler( selector.get() );
    130         //viewer.setSceneData( root.get() );
    131 
    132         // Avoid that the highlighter is culled away
    133         //osg::CullSettings::CullingMode mode = viewer.getCamera()->getCullingMode();
    134         //viewer.getCamera()->setCullingMode( mode & (~osg::CullSettings::SMALL_FEATURE_CULLING) );
    135118       
    136119        // run the viewers main loop
     
    183166 * distortionManipulator                                abgeleitet von osgGA::GUIEventHandler
    184167 *                                                                              Grundfunktionen:
    185  *                                                                              - Key for Show/Hide Distortion Mesh
    186  *                                                                              - Key for Save distortion Handler  - via plugin
    187  *                                                                              - Key for toggle distortion setup:
    188  *                                                                                              DISABLED distortion modifications are forbidden (ggfs beim verlassen von DISABLED ggf. auf singleThreaded wechseln und beim aktivieren von DISABLED wieder auf das alte threadingmodel. Alternativ  die data variance des meshes beeinflussen)
    189  *                                                                                              MANUAL distortion modification via mouse Selection and drag'n'drop
    190  *                                                                                              DELEGATED via calling a foreign class or calling a subclassed function
    191  *                                                                              - Key to control if mouse drags affects mesh coordinates or texture coordinates. Default: Mesh coordinates.
     168 *                                                                              - Key to Show/Hide Distortion Mesh
     169 *                                                                              - Key to Show/Hide Intensity Map
     170 *                                                                              - Key to Save distortion Container  - via plugin
     171 *                                                                              - Key to toggle MANUAL mode between blending und distortion setup
     172 *                                                                              - Key to toggle distortion setup:
     173 *                                                                                              DISABLED distortion/blending modifications are forbidden (ggfs. beim Verlassen von DISABLED ggf. auf singleThreaded wechseln und beim aktivieren von DISABLED wieder auf das alte threadingmodel. Alternativ  die data variance des meshes/Blendmap beeinflussen)
     174 *                                                                                              MANUAL distortion/blending modification via mouse Selection and drag'n'drop
     175 *                                                                                              DELEGATED distortion/blending modification by calling a foreign class or calling a subclassed function
     176 *                                                                              - Key to control if mouse drags affects mesh coordinates or rttScene texture coordinates. Default: Mesh coordinates.
    192177 *                                                                              - Key to reset Distortion.
     178 *                                                                              - Key to reset Blending.
    193179 *                                                                             
    194180 *                                                                              Die Funktion  handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa ):
     
    198184 *                                                                                                                              subsclassed function aufrufen bzw foreignClass->delegateDistortionSetup(distContainer& container)
    199185 *                                                                                     
    200  *                                                                              Vertex Highlighter für die Manuelle Verzerrung soll nur eingeblendet werden wenn der Betriebsmodus MANUAL ist.
    201  *
    202  *                                                                             
    203  * blending Manipulator                                 abgeleitet von osgGA::GUIEventHandler
    204  *                                                                              Grundfunktionen:
    205  *
    206  *                                                                              - To Do
    207  *                                                                             
     186 *                                                                              Vertex Highlighter für die manuelle Verzerrung soll nur eingeblendet werden wenn der Betriebsmodus MANUAL ist.
     187 *                                                                     
    208188 *
    209189 *
Note: See TracChangeset for help on using the changeset viewer.