AGX Dynamics  2.37.2.0
agxOSG/RenderProxy.h File Reference
#include <agxOSG/export.h>
#include <agxRender/RenderProxy.h>
#include <agxRender/RenderManager.h>
#include <agx/PushDisableWarnings.h>
#include <osg/ref_ptr>
#include <osg/Group>
#include <osg/MatrixTransform>
#include <osg/Material>
#include <osg/AutoTransform>
#include <osg/Shape>
#include <osg/ShapeDrawable>
#include <agx/PopDisableWarnings.h>
#include <agxOSG/GraphRenderer.h>
#include <agxOSG/RenderText.h>
#include <agxOSG/utils.h>
#include <agxOSG/PointSpriteDrawable.h>

Go to the source code of this file.

Classes

class  agxOSG::BoxProxy
 Implementation of osg-based BoxProxy. More...
 
class  agxOSG::CapsuleProxy
 Implementation of osg-based CapsuleProxy. More...
 
class  agxOSG::ConeProxy
 Implementation of osg-based ConeProxy. More...
 
class  agxOSG::ContactProxy
 Implementation of batch rendering of contact points. More...
 
class  agxOSG::ContainerShapeBatchRenderer< ContainerType, TransformType >
 Class that handles batch rendering of objects in forward iterator compliant container. More...
 
class  agxOSG::CylinderProxy
 Implementation of osg-based CylinderProxy. More...
 
class  agxOSG::HeightFieldProxy
 Implementation of osg-based HeightfieldProxy. More...
 
class  agxOSG::HollowCylinderProxy
 Implementation of osg-based HollowCylinderProxy. More...
 
class  agxOSG::HollowTruncatedConeProxy
 Implementation of osg-based HollowTruncatedConeProxy. More...
 
class  agxOSG::LineProxy
 Implementation of osg-based LineProxy. More...
 
class  agxOSG::OSGData< T >
 Class for handling methods related to OSG such as setColor, setTransform etc. More...
 
class  agxOSG::PlaneProxy
 Implementation of osg-based PlaneProxy. More...
 
class  agxOSG::RenderProxyFactory
 Implementation of the abstract class from the agxRender namespace, this class is responsible for creating RenderProxy of various types and render them as efficiently as possible in OpenSceneGraph. More...
 
class  agxOSG::RigidBodyBatchRenderProxy< ContainerType, TransformType >
 Implementation of batch rendering of rigid body center of mass position. More...
 
class  agxOSG::ShapeBatchRenderer< TransformType >
 Base class for batch rendering of any shape or shape composite. More...
 
struct  agxOSG::RenderProxyFactory::ShapeData< T >
 Class for storing OSG specific data for each RenderProxy. More...
 
class  agxOSG::SphereProxy
 Implementation of osg-based SphereProxy. More...
 
class  agxOSG::TextProxy
 Implementation of osg-based TextProxy. More...
 
class  agxOSG::TrimeshProxy
 Implementation of osg-based TrimeshProxy. More...
 
class  agxOSG::TruncatedConeProxy
 Implementation of osg-based TruncatedConeProxy. More...
 
class  agxOSG::WireRenderProxy
 
class  agxOSG::WireShapeProxy
 Implementation of osg-based WireShapeProxy. More...
 

Namespaces

 agxOSG
 The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
 

Macros

#define ADD_COMMON_METHODS()
 Macro for adding some methods for each specialization of RenderProxy. More...
 

Typedefs

typedef agx::observer_ptr< const RenderProxyFactory > agxOSG::RenderProxyFactoryConstObserver
 
typedef agx::ref_ptr< const RenderProxyFactory > agxOSG::RenderProxyFactoryConstRef
 
typedef agx::observer_ptr< RenderProxyFactory > agxOSG::RenderProxyFactoryObserver
 
typedef agx::ref_ptr< RenderProxyFactory > agxOSG::RenderProxyFactoryRef
 

Macro Definition Documentation

◆ ADD_COMMON_METHODS

#define ADD_COMMON_METHODS ( )
Value:
void onChange( RenderProxy::EventType type ) override { \
switch( type ) { \
case (RenderProxy::ENABLE): \
this->setEnableOSG(this->getEnable()); \
break; \
case (RenderProxy::ALPHA): \
this->setAlphaOSG(this->getAlpha()); \
break; \
case (RenderProxy::TRANSFORM): \
this->setTransformOSG(this->getTransform()); \
break; \
case (RenderProxy::COLOR): \
this->setColorOSG(this->getColor(), this->getAlpha()); \
break; \
case (RenderProxy::SHAPE): \
break; \
case (RenderProxy::REMOVE): \
this->onRemoveOSG(); \
break; \
case (RenderProxy::RENDERMODE): \
this->setRenderModeOSG(this->getRenderMode()); \
break; \
} \
} \
virtual void updateShape() override
EventType
Definition: Events.h:37

Macro for adding some methods for each specialization of RenderProxy.

Definition at line 407 of file agxOSG/RenderProxy.h.

Referenced by agxOSG::BoxProxy::~BoxProxy(), agxOSG::CapsuleProxy::~CapsuleProxy(), agxOSG::ConeProxy::~ConeProxy(), agxOSG::ContactProxy::~ContactProxy(), agxOSG::CylinderProxy::~CylinderProxy(), agxOSG::HeightFieldProxy::~HeightFieldProxy(), agxOSG::HollowCylinderProxy::~HollowCylinderProxy(), agxOSG::HollowTruncatedConeProxy::~HollowTruncatedConeProxy(), agxOSG::LineProxy::~LineProxy(), agxOSG::PlaneProxy::~PlaneProxy(), agxOSG::SphereProxy::~SphereProxy(), agxOSG::TextProxy::~TextProxy(), agxOSG::TrimeshProxy::~TrimeshProxy(), agxOSG::TruncatedConeProxy::~TruncatedConeProxy(), and agxOSG::WireShapeProxy::~WireShapeProxy().