|
AGX Dynamics
2.37.2.0
|
Abstract class which is responsible for returning a pointer to a specified RenderProxy type. More...
#include <RenderManager.h>
Inheritance diagram for agxRender::RenderProxyFactory:Public Member Functions | |
| RenderProxyFactory () | |
| SphereProxy * | create (float radius) |
| Create a SphereProxy without arguments. More... | |
| BoxProxy * | create (const agx::Vec3 &halfExtents) |
| Create a BoxProxy without arguments. More... | |
| LineProxy * | create (const LineProxy *) |
| Create a LineProxy without arguments. More... | |
| CylinderProxy * | create (const CylinderProxy *) |
| Create a CylinderProxy without arguments. More... | |
| HollowCylinderProxy * | create (const HollowCylinderProxy *) |
| Create a CylinderProxy without arguments. More... | |
| ConeProxy * | create (const ConeProxy *) |
| Create a ConeProxy without arguments. More... | |
| TruncatedConeProxy * | create (const TruncatedConeProxy *) |
| Create a TruncatedConeProxy without arguments. More... | |
| HollowTruncatedConeProxy * | create (const HollowTruncatedConeProxy *) |
| Create a HollowTruncatedConeProxy without arguments. More... | |
| CapsuleProxy * | create (const CapsuleProxy *) |
| Create a CapsuleProxy without arguments. More... | |
| TextProxy * | create (const TextProxy *) |
| Create a TextProxy without arguments. More... | |
| PlaneProxy * | create (const PlaneProxy *) |
| Create a PlaneProxy without arguments. More... | |
| ContactsProxy * | create (const agxCollide::GeometryContactPtrVector &contacts) |
| Create a ContactsProxy without arguments. More... | |
| RigidBodyBatchRenderProxy * | create (const agx::RigidBodyPtrSetVector *enabledBodies) |
| Create a rigid body batch render proxy. More... | |
| virtual BoxProxy * | createBox (const agx::Vec3 &halfExtents)=0 |
| Interface for creating and returning a BoxProxy. More... | |
| virtual CapsuleProxy * | createCapsule (float radius, float height)=0 |
| Interface for creating and returning a CapsuleProxy. More... | |
| virtual ConeProxy * | createCone (float radius, float height)=0 |
| Interface for creating and returning a ConeProxy. More... | |
| virtual ContactsProxy * | createContacts (const agxCollide::GeometryContactPtrVector &)=0 |
| Interface for creating and returning ContactsProxy. More... | |
| virtual CylinderProxy * | createCylinder (float radius, float height)=0 |
| Interface for creating and returning a CylinderProxy. More... | |
| virtual HeightFieldProxy * | createHeightfield (agxCollide::HeightField *hf)=0 |
| Interface for creating and returning HeightfieldProxy. More... | |
| virtual HollowCylinderProxy * | createHollowCylinder (float radius, float height, float thickness)=0 |
| Interface for creating and returning a HollowCylinderProxy. More... | |
| virtual HollowTruncatedConeProxy * | createHollowTruncatedCone (float topRadius, float bottomRadius, float height, float thickness)=0 |
| Interface for creating and returning a HollowTruncatedConeProxy. More... | |
| virtual LineProxy * | createLine (const agx::Vec3 &p1, const agx::Vec3 &p2)=0 |
| Interface for creating and returning a LineProxy. More... | |
| virtual PlaneProxy * | createPlane (const agx::Vec3 &normal, agx::Real distance)=0 |
| Interface for creating and returning PlaneProxy. More... | |
| virtual RigidBodyBatchRenderProxy * | createRigidBodies (const agx::RigidBodyPtrSetVector *)=0 |
| Interface for creating and returning batch rendering of rigid bodies (cm). More... | |
| virtual SphereProxy * | createSphere (float radius)=0 |
| Interface for creating and returning a SphereProxy. More... | |
| virtual RenderProxy * | createSphereBatchRenderer (agxData::Buffer *positions, agxData::Buffer *rotations, agxData::Buffer *radii, agxData::Buffer *colors, agxData::Buffer *enableRendering, agxData::Value *bound, agx::Component *context)=0 |
| virtual TextProxy * | createText (const agx::String &text, const agx::Vec3 &pos)=0 |
| Interface for creating and returning TextProxy. More... | |
| virtual TrimeshProxy * | createTrimesh (agxCollide::Trimesh *mesh)=0 |
| Interface for creating and returning TrimeshProxy. More... | |
| virtual TruncatedConeProxy * | createTruncatedCone (float topRadius, float bottomRadius, float height)=0 |
| Interface for creating and returning a TruncatedConeProxy. More... | |
| virtual WireRenderProxy * | createWire (float radius, const agx::Vec3 &color)=0 |
| virtual WireShapeProxy * | createWireShape (float radius, float height, const agx::Vec3 &previousEndPoint0, const agx::Vec3 &previousEndPoint1)=0 |
| Interface for creating and returning a WireShapeProxy. More... | |
| RenderProxy::RenderMode | getDefaultRenderMode () const |
| bool | getEnable () const |
| virtual Graph::GraphRenderer * | getGraphRenderer ()=0 |
| This method should create and return an implementation of a GraphRenderer, a class that can render the statistics graphs as described in the class Graph::GraphRenderer. More... | |
| void | setDefaultRenderMode (RenderProxy::RenderMode mode) |
| Set the default RenderMode that will be used when a new RenderProxy is created. More... | |
| void | setEnable (bool flag) |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Protected Member Functions | |
| virtual | ~RenderProxyFactory () |
| void | setRenderManager (RenderManager *mgr) |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| RenderProxy::RenderMode | m_defaultRenderMode |
| bool | m_enabled |
| RenderManager * | m_mgr |
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. More... | |
Abstract class which is responsible for returning a pointer to a specified RenderProxy type.
This class is to be implemented by the user, depending on the rendering system. The implementation of this factory might have some own cache of Proxies, or not.
This class is also responsible for creating a class derived from agxRender::Graph::GraphRenderer.
Definition at line 647 of file RenderManager.h.
| agxRender::RenderProxyFactory::RenderProxyFactory | ( | ) |
|
protectedvirtual |
Reimplemented in agxOSG::RenderProxyFactory.
|
inline |
Create a SphereProxy without arguments.
Definition at line 846 of file RenderManager.h.
Create a BoxProxy without arguments.
Definition at line 851 of file RenderManager.h.
Create a LineProxy without arguments.
Definition at line 856 of file RenderManager.h.
References agxOSG::createLine().
|
inline |
Create a CylinderProxy without arguments.
Definition at line 861 of file RenderManager.h.
|
inline |
Create a CylinderProxy without arguments.
Create a HollowCylinderProxy without arguments.
Definition at line 866 of file RenderManager.h.
Create a ConeProxy without arguments.
Definition at line 872 of file RenderManager.h.
|
inline |
Create a TruncatedConeProxy without arguments.
Definition at line 877 of file RenderManager.h.
|
inline |
Create a HollowTruncatedConeProxy without arguments.
Create a TruncatedConeProxy without arguments.
Definition at line 882 of file RenderManager.h.
|
inline |
Create a CapsuleProxy without arguments.
Definition at line 888 of file RenderManager.h.
Create a TextProxy without arguments.
Definition at line 893 of file RenderManager.h.
References agxOSG::createText().
|
inline |
Create a PlaneProxy without arguments.
Definition at line 898 of file RenderManager.h.
|
inline |
Create a ContactsProxy without arguments.
Definition at line 904 of file RenderManager.h.
|
inline |
Create a rigid body batch render proxy.
Definition at line 909 of file RenderManager.h.
|
pure virtual |
Interface for creating and returning a BoxProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a CapsuleProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a ConeProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning ContactsProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a CylinderProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning HeightfieldProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a HollowCylinderProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a HollowTruncatedConeProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a LineProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning PlaneProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning batch rendering of rigid bodies (cm).
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a SphereProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning TextProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning TrimeshProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a TruncatedConeProxy.
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Implemented in agxOSG::RenderProxyFactory.
|
pure virtual |
Interface for creating and returning a WireShapeProxy.
Implemented in agxOSG::RenderProxyFactory.
|
inline |
Definition at line 914 of file RenderManager.h.
|
inline |
Definition at line 787 of file RenderManager.h.
|
pure virtual |
This method should create and return an implementation of a GraphRenderer, a class that can render the statistics graphs as described in the class Graph::GraphRenderer.
Implemented in agxOSG::RenderProxyFactory.
| void agxRender::RenderProxyFactory::setDefaultRenderMode | ( | RenderProxy::RenderMode | mode | ) |
Set the default RenderMode that will be used when a new RenderProxy is created.
| mode | - New RenderMode |
|
inline |
Definition at line 783 of file RenderManager.h.
|
inlineprotected |
Definition at line 774 of file RenderManager.h.
|
protected |
Definition at line 779 of file RenderManager.h.
|
protected |
Definition at line 780 of file RenderManager.h.
|
protected |
Definition at line 778 of file RenderManager.h.