Implementation of batch rendering of contact points.
More...
#include <RenderProxy.h>
Implementation of batch rendering of contact points.
Definition at line 801 of file agxOSG/RenderProxy.h.
◆ EventType
Enum for specifying a type of event which might change a RenderProxy.
| Enumerator |
|---|
| ENABLE | A RenderProxy is enabled/disabled.
|
| TRANSFORM | The transformation for a proxy is updated.
|
| ALPHA | The alpha value for a proxy is updated.
|
| COLOR | The color value for a proxy is updated.
|
| SHAPE | The Shape has been modified a rebuild is needed.
|
| REMOVE | The Shape has been removed from space, need to be removed from rendering.
|
| RENDERMODE | The RenderMode has been changed.
|
Definition at line 81 of file agxRender/RenderProxy.h.
◆ RenderMode
◆ ContactProxy()
◆ ~ContactProxy()
| virtual agxOSG::ContactProxy::~ContactProxy |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ ADD_COMMON_METHODS()
| agxOSG::ContactProxy::ADD_COMMON_METHODS |
( |
| ) |
|
|
protected |
◆ allocateObserverVector()
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
◆ as() [1/2]
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
◆ as() [2/2]
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
◆ asSafe() [1/2]
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
◆ asSafe() [2/2]
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
◆ callOnChange()
Explicitly fires event of type.
- Parameters
-
| type | - type of event to fire to this render proxy |
◆ compare()
| bool agxRender::RenderProxy::compare |
( |
| ) |
const |
|
inherited |
Compare the modified count with its associated shape.
◆ deleteUsingDeleteHandler()
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
◆ getAlpha()
| float agxRender::RenderProxy::getAlpha |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getColor()
| agx::Vec3 agxRender::RenderProxy::getColor |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getContacts()
◆ getDeleteHandler()
◆ getEnable()
| bool agxRender::RenderProxy::getEnable |
( |
| ) |
const |
|
inlineinherited |
◆ getGeometry()
◆ getModifiedCount()
| agx::UInt32 agxRender::RenderProxy::getModifiedCount |
( |
| ) |
const |
|
inlineinherited |
This value tells us that if the proxy is synchronized with the associated shape.
When a shape change any of its attributes, it will increment its own number. If it does not match this, it will trigger onChange(SHAPE).
- Returns
- the current modified count for this Proxy.
Definition at line 1009 of file agxRender/RenderProxy.h.
◆ getReferenceCount()
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
◆ getRenderMode()
| RenderProxy::RenderMode agxRender::RenderProxy::getRenderMode |
( |
| ) |
const |
|
inlineinherited |
◆ getShape()
◆ getTransform()
◆ getType()
| PrimitiveType agxRender::RenderProxy::getType |
( |
| ) |
const |
|
inlineinherited |
◆ is()
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
◆ isEnabled()
| bool agxRender::RenderProxy::isEnabled |
( |
| ) |
const |
|
inlineinherited |
◆ onChange()
|
|
inlineprotectedvirtualinherited |
Pure virtual method that should response on the different events.
This method is (indirectly via callOnChange) called from most set* methods. Should really never be called direct from anywhere else but from callOnChange.
Definition at line 195 of file agxRender/RenderProxy.h.
◆ reference()
| void agx::Referenced::reference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
◆ reset()
| virtual void agxOSG::ContactProxy::reset |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ set()
◆ setAlpha()
| void agxRender::RenderProxy::setAlpha |
( |
float |
alpha | ) |
|
|
inlinevirtualinherited |
◆ setColor()
◆ setDeleteHandler()
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
◆ setEnable()
| void agxRender::RenderProxy::setEnable |
( |
bool |
flag | ) |
|
|
inlineinherited |
◆ setModifiedCount()
◆ setRenderMode()
◆ setShape()
◆ setTransform()
◆ shouldRender()
- Returns
- true if the rigid body should be rendered - otherwise false
◆ synchronizeParameters()
| virtual void agxRender::RenderProxy::synchronizeParameters |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
This method should be implemented so that it extracts size parameters from an associated shape and store it in the Proxy parameters (radius/length etc).
Reimplemented in agxRender::BoxProxy, agxRender::WireShapeProxy, agxRender::CapsuleProxy, agxRender::HollowTruncatedConeProxy, agxRender::TruncatedConeProxy, agxRender::ConeProxy, agxRender::HollowCylinderProxy, agxRender::CylinderProxy, agxRender::LineProxy, agxRender::SphereProxy, and agxRender::PlaneProxy.
Definition at line 188 of file agxRender/RenderProxy.h.
◆ unreference()
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
◆ unreference_nodelete()
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
◆ updateShape()
| virtual void agxRender::RenderProxy::updateShape |
( |
| ) |
|
|
inlinevirtualinherited |
Called when a Shape has been changed (for example radius on a sphere is changed).
Definition at line 128 of file agxRender/RenderProxy.h.
◆ ValidateCast()
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
◆ m_contacts
◆ m_mutex
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
◆ m_observers
|
|
mutableprotectedinherited |
◆ m_refCount
| AtomicValue agx::Referenced::m_refCount |
|
mutableprotectedinherited |
◆ m_scale
| float agxRender::ContactsProxy::m_scale |
|
protectedinherited |
◆ m_shape
◆ m_transform
The documentation for this class was generated from the following file: