AGX Dynamics  2.37.3.2
agxRender::HollowTruncatedConeProxy Class Reference

Subclass that implements a HollowTruncatedConeProxy. More...

#include <RenderProxy.h>

+ Inheritance diagram for agxRender::HollowTruncatedConeProxy:

Public Member Functions

 HollowTruncatedConeProxy ()
 
 HollowTruncatedConeProxy (float topRadius, float bottomRadius, float height, float thickness)
 
 HollowTruncatedConeProxy (const agx::Vec3 &begin, const agx::Vec3 &end, float topRadius, float bottomRadius, float thickness)
 
float getBottomRadius () const
 
const agxCollide::HollowCone * getCastShape () const
 
float getHeight () const
 
float getThickness () const
 
float getTopRadius () const
 
void set (float topRadius, float bottomRadius, float height, float thickness)
 
void set (const agx::Vec3 &top, const agx::Vec3 &bottom, float topRadius, float bottomRadius, float thickness)
 
- Public Member Functions inherited from agxRender::RenderProxy
 RenderProxy (PrimitiveType type, agxCollide::Shape *shape=nullptr)
 Constructor. More...
 
void callOnChange (EventType type)
 Explicitly fires event of type. More...
 
bool compare () const
 Compare the modified count with its associated shape. More...
 
virtual float getAlpha () const
 
virtual agx::Vec3 getColor () const
 
bool getEnable () const
 
const agxCollide::Geometry * getGeometry () const
 
agx::UInt32 getModifiedCount () const
 This value tells us that if the proxy is synchronized with the associated shape. More...
 
RenderMode getRenderMode () const
 
const agxCollide::Shape * getShape () const
 
const agx::AffineMatrix4x4 & getTransform () const
 
PrimitiveType getType () const
 
bool isEnabled () const
 
virtual void reset ()
 Will reset color, alpha and enabled state back to default state (as when initially created). More...
 
virtual void setAlpha (float alpha)
 Set the alpha value of this proxy. More...
 
virtual void setColor (const agx::Vec3 &color)
 Set the color of this proxy. More...
 
void setEnable (bool flag)
 Toggle this proxy for rendering on/off. More...
 
void setRenderMode (RenderMode mode)
 Set the render mode for this Proxy. More...
 
virtual void setTransform (const agx::AffineMatrix4x4 &transform)
 Set the transform of this RenderProxy, if overridden, set the m_transform and call onUpdate(TRANSFORM) More...
 
virtual void updateShape ()
 Called when a Shape has been changed (for example radius on a sphere is changed). More...
 
- 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 ~HollowTruncatedConeProxy ()
 
void synchronizeParameters ()
 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). More...
 
- Protected Member Functions inherited from agxRender::RenderProxy
virtual ~RenderProxy ()
 Destructor. More...
 
virtual void onChange (EventType)
 Pure virtual method that should response on the different events. More...
 
void setModifiedCount (agx::UInt32 c)
 
void setShape (agxCollide::Shape *shape, const agxCollide::Geometry *geometry)
 Set the shape for this proxy. More...
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

float m_bottomRadius
 
float m_height
 
float m_thickness
 
float m_topRadius
 
- Protected Attributes inherited from agxRender::RenderProxy
agx::observer_ptr< agxCollide::Shape > m_shape
 
agx::AffineMatrix4x4 m_transform
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Public Types inherited from agxRender::RenderProxy
enum  EventType {
  ENABLE, TRANSFORM, ALPHA, COLOR,
  SHAPE, REMOVE, RENDERMODE
}
 Enum for specifying a type of event which might change a RenderProxy. More...
 
enum  RenderMode { NOT_SET = 0x0, SOLID = 0x1, WIREFRAME = 0x2 }
 
- Static Public Member Functions inherited from agxRender::RenderProxy
static agx::Bool shouldRender (const agx::RigidBody *rb)
 
- 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...
 

Detailed Description

Subclass that implements a HollowTruncatedConeProxy.

Definition at line 508 of file agxRender/RenderProxy.h.

Constructor & Destructor Documentation

◆ HollowTruncatedConeProxy() [1/3]

agxRender::HollowTruncatedConeProxy::HollowTruncatedConeProxy ( )
inline

Definition at line 512 of file agxRender/RenderProxy.h.

References agx::begin(), and agx::end().

◆ HollowTruncatedConeProxy() [2/3]

agxRender::HollowTruncatedConeProxy::HollowTruncatedConeProxy ( float  topRadius,
float  bottomRadius,
float  height,
float  thickness 
)

◆ HollowTruncatedConeProxy() [3/3]

agxRender::HollowTruncatedConeProxy::HollowTruncatedConeProxy ( const agx::Vec3 &  begin,
const agx::Vec3 &  end,
float  topRadius,
float  bottomRadius,
float  thickness 
)

◆ ~HollowTruncatedConeProxy()

virtual agxRender::HollowTruncatedConeProxy::~HollowTruncatedConeProxy ( )
inlineprotectedvirtual

Reimplemented in agxOSG::HollowTruncatedConeProxy.

Definition at line 553 of file agxRender/RenderProxy.h.

Member Function Documentation

◆ getBottomRadius()

float agxRender::HollowTruncatedConeProxy::getBottomRadius ( ) const
inline
Returns
bottom radius for this proxy

Definition at line 532 of file agxRender/RenderProxy.h.

◆ getCastShape()

const agxCollide::HollowCone* agxRender::HollowTruncatedConeProxy::getCastShape ( ) const
Returns
the shape pointer cast to a Cylinder

◆ getHeight()

float agxRender::HollowTruncatedConeProxy::getHeight ( ) const
inline
Returns
height of this proxy

Definition at line 537 of file agxRender/RenderProxy.h.

◆ getThickness()

float agxRender::HollowTruncatedConeProxy::getThickness ( ) const
inline
Returns
thicknes for this proxy

Definition at line 542 of file agxRender/RenderProxy.h.

◆ getTopRadius()

float agxRender::HollowTruncatedConeProxy::getTopRadius ( ) const
inline
Returns
top radius of this proxy

Definition at line 527 of file agxRender/RenderProxy.h.

◆ set() [1/2]

void agxRender::HollowTruncatedConeProxy::set ( float  topRadius,
float  bottomRadius,
float  height,
float  thickness 
)
inline

Definition at line 516 of file agxRender/RenderProxy.h.

◆ set() [2/2]

void agxRender::HollowTruncatedConeProxy::set ( const agx::Vec3 &  top,
const agx::Vec3 &  bottom,
float  topRadius,
float  bottomRadius,
float  thickness 
)

◆ synchronizeParameters()

void agxRender::HollowTruncatedConeProxy::synchronizeParameters ( )
protectedvirtual

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 from agxRender::RenderProxy.

Member Data Documentation

◆ m_bottomRadius

float agxRender::HollowTruncatedConeProxy::m_bottomRadius
protected

Definition at line 555 of file agxRender/RenderProxy.h.

◆ m_height

float agxRender::HollowTruncatedConeProxy::m_height
protected

Definition at line 556 of file agxRender/RenderProxy.h.

◆ m_thickness

float agxRender::HollowTruncatedConeProxy::m_thickness
protected

Definition at line 557 of file agxRender/RenderProxy.h.

◆ m_topRadius

float agxRender::HollowTruncatedConeProxy::m_topRadius
protected

Definition at line 554 of file agxRender/RenderProxy.h.


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