OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgGA::Event Class Reference

#include <Event.h>

Inheritance diagram for osgGA::Event:
Inheritance graph
[legend]
Collaboration diagram for osgGA::Event:
Collaboration graph
[legend]

Public Member Functions

 Event ()
 
 Event (const Event &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgGA, Event)
 
virtual GUIEventAdapter * asGUIEventAdapter ()
 
virtual const GUIEventAdapter * asGUIEventAdapter () const
 
void setHandled (bool handled) const
 
bool getHandled () const
 
void setTime (double time)
 
double getTime () const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual Object * cloneType () const =0
 
virtual Object * clone (const CopyOp &) const =0
 
virtual bool isSameKindAs (const Object *) const
 
virtual const char * libraryName () const =0
 
virtual const char * className () const =0
 
std::string getCompoundClassName () const
 
virtual Node * asNode ()
 
virtual const Node * asNode () const
 
virtual NodeVisitor * asNodeVisitor ()
 
virtual const NodeVisitor * asNodeVisitor () const
 
virtual StateAttribute * asStateAttribute ()
 
virtual const StateAttribute * asStateAttribute () const
 
virtual Uniform * asUniform ()
 
virtual const Uniform * asUniform () const
 
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::UserDataContainer * getUserDataContainer ()
 
const osg::UserDataContainer * getUserDataContainer () const
 
osg::UserDataContainer * getOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual Referenced * getUserData ()
 
virtual const Referenced * getUserData () 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
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referenced & operator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::Mutex * getRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSet * getObserverSet () const
 
ObserverSet * getOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Member Functions

virtual ~Event ()
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

bool _handled
 
double _time
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer * _userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::Mutex * getGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandler * getDeleteHandler ()
 

Detailed Description

Base Event class.

Definition at line 26 of file Event.h.

Constructor & Destructor Documentation

osgGA::Event::Event ( )
osgGA::Event::Event ( const Event &  rhs,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual osgGA::Event::~Event ( )
inlineprotectedvirtual

Definition at line 53 of file Event.h.

Member Function Documentation

virtual GUIEventAdapter* osgGA::Event::asGUIEventAdapter ( )
inlinevirtual

Reimplemented in osgGA::GUIEventAdapter.

Definition at line 35 of file Event.h.

virtual const GUIEventAdapter* osgGA::Event::asGUIEventAdapter ( ) const
inlinevirtual

Reimplemented in osgGA::GUIEventAdapter.

Definition at line 36 of file Event.h.

bool osgGA::Event::getHandled ( ) const
inline

Get whether this event has been handled by an event handler or not.

Definition at line 43 of file Event.h.

double osgGA::Event::getTime ( ) const
inline

get time in seconds of event.

Definition at line 50 of file Event.h.

osgGA::Event::META_Object ( osgGA  ,
Event   
)
void osgGA::Event::setHandled ( bool  handled) const
inline

Set whether this event has been handled by an event handler or not.

Definition at line 40 of file Event.h.

void osgGA::Event::setTime ( double  time)
inline

set time in seconds of event.

Definition at line 47 of file Event.h.

Member Data Documentation

bool osgGA::Event::_handled
mutableprotected

Definition at line 55 of file Event.h.

double osgGA::Event::_time
protected

Definition at line 56 of file Event.h.


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