Public Types |
| enum | WhichPosition { FIRST_POSITION = 0,
LAST_POSITION = -1
} |
Public Member Functions |
| | SlideEventHandler (osgViewer::Viewer *viewer=0) |
| | META_Object (osgslideshowApp, SlideEventHandler) |
| void | set (osg::Node *model) |
| virtual void | accept (osgGA::GUIEventHandlerVisitor &v) |
| virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
| virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &) |
| virtual void | getUsage (osg::ApplicationUsage &usage) const |
| osgViewer::Viewer * | getViewer () |
| void | compileSlide (unsigned int slideNum) |
| void | releaseSlide (unsigned int slideNum) |
| unsigned int | getNumSlides () |
| int | getActiveSlide () const |
| int | getActiveLayer () const |
| bool | selectSlide (int slideNum, int layerNum=FIRST_POSITION) |
| bool | selectLayer (int layerNum) |
| bool | nextLayerOrSlide () |
| bool | previousLayerOrSlide () |
| bool | nextSlide () |
| bool | previousSlide () |
| bool | nextLayer () |
| bool | previousLayer () |
| bool | home () |
| void | setAutoSteppingActive (bool flag=true) |
| bool | getAutoSteppingActive () const |
| void | setTimeDelayBetweenSlides (double dt) |
| double | getTimeDelayBetweenSlides () const |
| double | getDuration (const osg::Node *node) const |
| double | getCurrentTimeDelayBetweenSlides () const |
| void | setReleaseAndCompileOnEachNewSlide (bool flag) |
| bool | getReleaseAndCompileOnEachNewSlide () const |
| void | setTimeDelayOnNewSlideWithMovies (float t) |
| float | getTimeDelayOnNewSlideWithMovies () const |
| void | setLoopPresentation (bool loop) |
| bool | getLoopPresentation () const |
| void | dispatchEvent (const KeyPosition &keyPosition) |
Static Public Member Functions |
| static SlideEventHandler * | instance () |
Protected Member Functions |
| | ~SlideEventHandler () |
| | SlideEventHandler (const SlideEventHandler &, const osg::CopyOp &) |
| bool | home (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
| void | updateAlpha (bool, bool, float x, float y) |
| void | updateLight (float x, float y) |
| void | updateOperators () |
Protected Attributes |
osg::observer_ptr
< osgViewer::Viewer > | _viewer |
| osg::observer_ptr< osg::Switch > | _showSwitch |
| int | _activePresentation |
| osg::observer_ptr< osg::Switch > | _presentationSwitch |
| int | _activeSlide |
| osg::observer_ptr< osg::Switch > | _slideSwitch |
| int | _activeLayer |
| bool | _firstTraversal |
| double | _previousTime |
| double | _timePerSlide |
| bool | _autoSteppingActive |
| bool | _loopPresentation |
| bool | _pause |
| bool | _hold |
| bool | _updateLightActive |
| bool | _updateOpacityActive |
| float | _previousX |
| float | _previousY |
| bool | _cursorOn |
| bool | _releaseAndCompileOnEachNewSlide |
| bool | _firstSlideOrLayerChange |
| osg::Timer_t | _tickAtFirstSlideOrLayerChange |
| osg::Timer_t | _tickAtLastSlideOrLayerChange |
| float | _timeDelayOnNewSlideWithMovies |
| double | _minimumTimeBetweenKeyPresses |
| double | _timeLastKeyPresses |
| ActiveOperators | _activeOperators |
osg::ref_ptr
< CompileSlideCallback > | _compileSlideCallback |