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

#include <EventInterface.h>

Inheritance diagram for osgWidget::Callback:
Inheritance graph
[legend]
Collaboration diagram for osgWidget::Callback:
Collaboration graph
[legend]

Public Member Functions

 Callback ()
 
 Callback (const Callback &rhs)
 
virtual const char * className () const
 
 Callback (EventType type, void *data=0)
 
template<typename T >
 Callback (bool(T::*function)(Event &), T *obj, EventType type, void *data=0)
 
template<typename T >
 Callback (T *functor, EventType type, void *data=0)
 
virtual ~Callback ()
 
virtual bool operator() (Event &ev)
 
EventType getType () const
 
void * getData ()
 
const void * getData () const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
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
 

Protected Attributes

EventType _type
 
void * _data
 
osg::ref_ptr< CallbackInterface_callback
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Detailed Description

Definition at line 206 of file EventInterface.h.

Constructor & Destructor Documentation

osgWidget::Callback::Callback ( )
inline

Definition at line 209 of file EventInterface.h.

osgWidget::Callback::Callback ( const Callback rhs)
inline

Definition at line 210 of file EventInterface.h.

osgWidget::Callback::Callback ( EventType  type,
void *  data = 0 
)
inline

Definition at line 215 of file EventInterface.h.

template<typename T >
osgWidget::Callback::Callback ( bool(T::*)(Event &)  function,
T *  obj,
EventType  type,
void *  data = 0 
)
inline

Definition at line 223 of file EventInterface.h.

template<typename T >
osgWidget::Callback::Callback ( T *  functor,
EventType  type,
void *  data = 0 
)
inline

Definition at line 231 of file EventInterface.h.

virtual osgWidget::Callback::~Callback ( )
inlinevirtual

Definition at line 237 of file EventInterface.h.

Member Function Documentation

virtual const char* osgWidget::Callback::className ( ) const
inlinevirtual

Definition at line 212 of file EventInterface.h.

void* osgWidget::Callback::getData ( )
inline

Definition at line 249 of file EventInterface.h.

const void* osgWidget::Callback::getData ( ) const
inline

Definition at line 253 of file EventInterface.h.

EventType osgWidget::Callback::getType ( ) const
inline

Definition at line 245 of file EventInterface.h.

virtual bool osgWidget::Callback::operator() ( Event ev)
inlinevirtual

Definition at line 239 of file EventInterface.h.

Member Data Documentation

osg::ref_ptr<CallbackInterface> osgWidget::Callback::_callback
protected

Definition at line 262 of file EventInterface.h.

void* osgWidget::Callback::_data
protected

Definition at line 259 of file EventInterface.h.

EventType osgWidget::Callback::_type
protected

Definition at line 258 of file EventInterface.h.


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