openscenegraph
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgPresentation::SlideEventHandler Class Reference
Inheritance diagram for osgPresentation::SlideEventHandler:
osgGA::GUIEventHandler osg::NodeCallback osg::Drawable::EventCallback osg::Object osg::Object osg::Referenced osg::Referenced

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::ViewergetViewer ()
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)
- Public Member Functions inherited from osgGA::GUIEventHandler
 GUIEventHandler ()
 GUIEventHandler (const GUIEventHandler &eh, const osg::CopyOp &copyop)
 META_Object (osgGA, GUIEventHandler)
virtual void event (osg::NodeVisitor *nv, osg::Drawable *drawable)
virtual bool handle (const GUIEventAdapter &ea, GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *)
bool handleWithCheckAgainstIgnoreHandledEventsMask (const GUIEventAdapter &ea, GUIActionAdapter &aa, osg::Object *object, osg::NodeVisitor *nv)
bool handleWithCheckAgainstIgnoreHandledEventsMask (const GUIEventAdapter &ea, GUIActionAdapter &aa)
void setIgnoreHandledEventsMask (unsigned int mask)
unsigned int getIgnoreHandledEventsMask () const
- Public Member Functions inherited from osg::NodeCallback
 NodeCallback ()
 NodeCallback (const NodeCallback &nc, const CopyOp &)
 META_Object (osg, NodeCallback)
void traverse (Node *node, NodeVisitor *nv)
void setNestedCallback (NodeCallback *nc)
NodeCallbackgetNestedCallback ()
const NodeCallbackgetNestedCallback () const
void addNestedCallback (NodeCallback *nc)
void removeNestedCallback (NodeCallback *nc)
- Public Member Functions inherited from osg::Object
 Object ()
 Object (bool threadSafeRefUnref)
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
virtual ObjectcloneType () const =0
virtual Objectclone (const CopyOp &) const =0
virtual bool isSameKindAs (const Object *) const
virtual const char * libraryName () const =0
virtual const char * className () const =0
virtual void setThreadSafeRefUnref (bool threadSafe)
virtual void setName (const std::string &name)
void setName (const char *name)
const std::string & getName () const
void setDataVariance (DataVariance dv)
DataVariance getDataVariance () const
virtual void computeDataVariance ()
void setUserDataContainer (osg::UserDataContainer *udc)
osg::UserDataContainergetUserDataContainer ()
const osg::UserDataContainergetUserDataContainer () const
osg::UserDataContainergetOrCreateUserDataContainer ()
virtual void setUserData (Referenced *obj)
virtual ReferencedgetUserData ()
virtual const ReferencedgetUserData () const
template<typename T >
bool getUserValue (const std::string &name, T &value) const
template<typename T >
void setUserValue (const std::string &name, const T &value)
virtual void resizeGLObjectBuffers (unsigned int)
virtual void releaseGLObjects (osg::State *=0) const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const
- Public Member Functions inherited from osg::Drawable::EventCallback
 EventCallback ()
 EventCallback (const EventCallback &, const CopyOp &)
 META_Object (osg, EventCallback)

Static Public Member Functions

static SlideEventHandlerinstance ()

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
- Protected Attributes inherited from osgGA::GUIEventHandler
unsigned int _ignoreHandledEventsMask

Additional Inherited Members

- Public Attributes inherited from osg::NodeCallback
ref_ptr< NodeCallback_nestedCallback

Member Enumeration Documentation

Enumerator:
FIRST_POSITION 
LAST_POSITION 

Constructor & Destructor Documentation

osgPresentation::SlideEventHandler::SlideEventHandler ( osgViewer::Viewer viewer = 0)
osgPresentation::SlideEventHandler::~SlideEventHandler ( )
inlineprotected
osgPresentation::SlideEventHandler::SlideEventHandler ( const SlideEventHandler ,
const osg::CopyOp  
)
inlineprotected

Member Function Documentation

virtual void osgPresentation::SlideEventHandler::accept ( osgGA::GUIEventHandlerVisitor &  v)
inlinevirtual
void osgPresentation::SlideEventHandler::compileSlide ( unsigned int  slideNum)
void osgPresentation::SlideEventHandler::dispatchEvent ( const KeyPosition keyPosition)
int osgPresentation::SlideEventHandler::getActiveLayer ( ) const
inline
int osgPresentation::SlideEventHandler::getActiveSlide ( ) const
inline
bool osgPresentation::SlideEventHandler::getAutoSteppingActive ( ) const
inline
double osgPresentation::SlideEventHandler::getCurrentTimeDelayBetweenSlides ( ) const
double osgPresentation::SlideEventHandler::getDuration ( const osg::Node node) const
bool osgPresentation::SlideEventHandler::getLoopPresentation ( ) const
inline
unsigned int osgPresentation::SlideEventHandler::getNumSlides ( )
bool osgPresentation::SlideEventHandler::getReleaseAndCompileOnEachNewSlide ( ) const
inline
double osgPresentation::SlideEventHandler::getTimeDelayBetweenSlides ( ) const
inline
float osgPresentation::SlideEventHandler::getTimeDelayOnNewSlideWithMovies ( ) const
inline
virtual void osgPresentation::SlideEventHandler::getUsage ( osg::ApplicationUsage ) const
virtual

Get the keyboard and mouse usage of this manipulator.

Reimplemented from osgGA::GUIEventHandler.

osgViewer::Viewer* osgPresentation::SlideEventHandler::getViewer ( )
inline
virtual bool osgPresentation::SlideEventHandler::handle ( const osgGA::GUIEventAdapter ,
osgGA::GUIActionAdapter  
)
virtual

Deprecated, Handle events, return true if handled, false otherwise.

Reimplemented from osgGA::GUIEventHandler.

bool osgPresentation::SlideEventHandler::home ( )
bool osgPresentation::SlideEventHandler::home ( const osgGA::GUIEventAdapter ea,
osgGA::GUIActionAdapter aa 
)
protected
static SlideEventHandler* osgPresentation::SlideEventHandler::instance ( )
static
osgPresentation::SlideEventHandler::META_Object ( osgslideshowApp  ,
SlideEventHandler   
)
bool osgPresentation::SlideEventHandler::nextLayer ( )
bool osgPresentation::SlideEventHandler::nextLayerOrSlide ( )
bool osgPresentation::SlideEventHandler::nextSlide ( )
virtual void osgPresentation::SlideEventHandler::operator() ( osg::Node node,
osg::NodeVisitor nv 
)
virtual

Event traversal node callback method.

Reimplemented from osgGA::GUIEventHandler.

bool osgPresentation::SlideEventHandler::previousLayer ( )
bool osgPresentation::SlideEventHandler::previousLayerOrSlide ( )
bool osgPresentation::SlideEventHandler::previousSlide ( )
void osgPresentation::SlideEventHandler::releaseSlide ( unsigned int  slideNum)
bool osgPresentation::SlideEventHandler::selectLayer ( int  layerNum)
bool osgPresentation::SlideEventHandler::selectSlide ( int  slideNum,
int  layerNum = FIRST_POSITION 
)
void osgPresentation::SlideEventHandler::set ( osg::Node model)
void osgPresentation::SlideEventHandler::setAutoSteppingActive ( bool  flag = true)
inline
void osgPresentation::SlideEventHandler::setLoopPresentation ( bool  loop)
inline
void osgPresentation::SlideEventHandler::setReleaseAndCompileOnEachNewSlide ( bool  flag)
inline
void osgPresentation::SlideEventHandler::setTimeDelayBetweenSlides ( double  dt)
inline
void osgPresentation::SlideEventHandler::setTimeDelayOnNewSlideWithMovies ( float  t)
inline
void osgPresentation::SlideEventHandler::updateAlpha ( bool  ,
bool  ,
float  x,
float  y 
)
protected
void osgPresentation::SlideEventHandler::updateLight ( float  x,
float  y 
)
protected
void osgPresentation::SlideEventHandler::updateOperators ( )
protected

Member Data Documentation

int osgPresentation::SlideEventHandler::_activeLayer
protected
ActiveOperators osgPresentation::SlideEventHandler::_activeOperators
protected
int osgPresentation::SlideEventHandler::_activePresentation
protected
int osgPresentation::SlideEventHandler::_activeSlide
protected
bool osgPresentation::SlideEventHandler::_autoSteppingActive
protected
osg::ref_ptr<CompileSlideCallback> osgPresentation::SlideEventHandler::_compileSlideCallback
protected
bool osgPresentation::SlideEventHandler::_cursorOn
protected
bool osgPresentation::SlideEventHandler::_firstSlideOrLayerChange
protected
bool osgPresentation::SlideEventHandler::_firstTraversal
protected
bool osgPresentation::SlideEventHandler::_hold
protected
bool osgPresentation::SlideEventHandler::_loopPresentation
protected
double osgPresentation::SlideEventHandler::_minimumTimeBetweenKeyPresses
protected
bool osgPresentation::SlideEventHandler::_pause
protected
osg::observer_ptr<osg::Switch> osgPresentation::SlideEventHandler::_presentationSwitch
protected
double osgPresentation::SlideEventHandler::_previousTime
protected
float osgPresentation::SlideEventHandler::_previousX
protected
float osgPresentation::SlideEventHandler::_previousY
protected
bool osgPresentation::SlideEventHandler::_releaseAndCompileOnEachNewSlide
protected
osg::observer_ptr<osg::Switch> osgPresentation::SlideEventHandler::_showSwitch
protected
osg::observer_ptr<osg::Switch> osgPresentation::SlideEventHandler::_slideSwitch
protected
osg::Timer_t osgPresentation::SlideEventHandler::_tickAtFirstSlideOrLayerChange
protected
osg::Timer_t osgPresentation::SlideEventHandler::_tickAtLastSlideOrLayerChange
protected
float osgPresentation::SlideEventHandler::_timeDelayOnNewSlideWithMovies
protected
double osgPresentation::SlideEventHandler::_timeLastKeyPresses
protected
double osgPresentation::SlideEventHandler::_timePerSlide
protected
bool osgPresentation::SlideEventHandler::_updateLightActive
protected
bool osgPresentation::SlideEventHandler::_updateOpacityActive
protected
osg::observer_ptr<osgViewer::Viewer> osgPresentation::SlideEventHandler::_viewer
protected

The documentation for this class was generated from the following file: