AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agxRender::SpaceListener Class Reference

A listener that will be responsible for calling RenderManager every time a Shape is added/removed from space. More...

#include <RenderManager.h>

+ Inheritance diagram for agxRender::SpaceListener:

Public Member Functions

 SpaceListener (RenderManager *mgr)
 Constructor.
 
agxCollide::Space * getSpace ()
 
- Public Member Functions inherited from agxCollide::SpaceListener
 SpaceListener ()
 Default constructor.
 
virtual void addGeometryNotification (agxCollide::Space *space, agxCollide::Geometry *geometry)
 Called whenever a Geometry is added to the associated Space.
 
virtual void addNotification (agxCollide::Space *space)
 Called when this SpaceListener is added to a space.
 
virtual void addShapeNotification (agxCollide::Space *space, agxCollide::Geometry *geometry, agxCollide::Shape *shape)
 Called whenever a Shape is added to a Geometry, where the geometry belongs to a Space.
 
virtual void removeGeometryNotification (agxCollide::Space *space, agxCollide::Geometry *geometry)
 Called whenever a Geometry is removed from the associated Space.
 
virtual void removeNotification (agxCollide::Space *space)
 Called when this SpaceListener is removed from a space.
 
virtual void removeShapeNotification (agxCollide::Space *space, agxCollide::Geometry *geometry, agxCollide::Shape *shape)
 Called whenever a Shape is removed from a Geometry, where the geometry belongs to a Space.
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Protected Member Functions

virtual ~SpaceListener ()
 Destructor.
 
void addGeometryNotification (agxCollide::Space *space, agxCollide::Geometry *geometry)
 Called when a Geometry is added to the associated Space.
 
void addNotification (agxCollide::Space *space)
 Called when this listener is added to a Space.
 
void addShapeNotification (agxCollide::Space *space, agxCollide::Geometry *geometry, agxCollide::Shape *shape)
 Called when a Shape is added to a Geometry which is associated to Space.
 
void removeGeometryNotification (agxCollide::Space *space, agxCollide::Geometry *geometry)
 Called when a Geometry is removed to the associated Space.
 
void removeShapeNotification (agxCollide::Space *space, agxCollide::Geometry *geometry, agxCollide::Shape *shape)
 Called when a Shape is removed from a Geometry which is associated to Space.
 
virtual ~SpaceListener ()
 Destructor.
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

agx::observer_ptr< RenderManager > m_mgr
 
agx::observer_ptr< agxCollide::Space > m_space
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 

Detailed Description

A listener that will be responsible for calling RenderManager every time a Shape is added/removed from space.

Definition at line 645 of file RenderManager.h.

Constructor & Destructor Documentation

◆ SpaceListener()

agxRender::SpaceListener::SpaceListener ( RenderManager *  mgr)

Constructor.

◆ ~SpaceListener()

virtual agxRender::SpaceListener::~SpaceListener ( )
protectedvirtual

Destructor.

Reimplemented from agxCollide::SpaceListener.

Member Function Documentation

◆ addGeometryNotification()

void agxRender::SpaceListener::addGeometryNotification ( agxCollide::Space *  space,
agxCollide::Geometry *  geometry 
)
protectedvirtual

Called when a Geometry is added to the associated Space.

Reimplemented from agxCollide::SpaceListener.

◆ addNotification()

void agxRender::SpaceListener::addNotification ( agxCollide::Space *  space)
protectedvirtual

Called when this listener is added to a Space.

Reimplemented from agxCollide::SpaceListener.

◆ addShapeNotification()

void agxRender::SpaceListener::addShapeNotification ( agxCollide::Space *  space,
agxCollide::Geometry *  geometry,
agxCollide::Shape *  shape 
)
protectedvirtual

Called when a Shape is added to a Geometry which is associated to Space.

Reimplemented from agxCollide::SpaceListener.

◆ getSpace()

agxCollide::Space * agxRender::SpaceListener::getSpace ( )

◆ removeGeometryNotification()

void agxRender::SpaceListener::removeGeometryNotification ( agxCollide::Space *  space,
agxCollide::Geometry *  geometry 
)
protectedvirtual

Called when a Geometry is removed to the associated Space.

Reimplemented from agxCollide::SpaceListener.

◆ removeShapeNotification()

void agxRender::SpaceListener::removeShapeNotification ( agxCollide::Space *  space,
agxCollide::Geometry *  geometry,
agxCollide::Shape *  shape 
)
protectedvirtual

Called when a Shape is removed from a Geometry which is associated to Space.

Reimplemented from agxCollide::SpaceListener.

Member Data Documentation

◆ m_mgr

agx::observer_ptr<RenderManager> agxRender::SpaceListener::m_mgr
protected

Definition at line 670 of file RenderManager.h.

◆ m_space

agx::observer_ptr<agxCollide::Space> agxRender::SpaceListener::m_space
protected

Definition at line 671 of file RenderManager.h.


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