AGX Dynamics  2.37.3.2
agxQt::TrajectoryRenderer Class Reference

#include <QtOSGUtils.h>

+ Inheritance diagram for agxQt::TrajectoryRenderer:

Public Member Functions

 TrajectoryRenderer (agxSDK::Simulation *simulation, osg::Group *root, agx::ParticleSystem *ps)
 
agxOSG::ScalarColorMap * getColorMap ()
 
bool getEnable () const
 
agx::UInt getMaxPositionPoints ()
 
agx::Real getSampling () const
 
void reSample ()
 
void resetTrajectoires ()
 
void setColorMap (agxOSG::ScalarColorMap *colorMap)
 
void setEnable (bool enable)
 
void setMaxPositionPoints (agx::UInt posPoints)
 
void setSampling (agx::Real enable)
 
- 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 ~TrajectoryRenderer ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

bool m_enable
 
agx::UInt m_numTrajectoryPositions
 
agx::ParticleSystem * m_particleSystem
 
osg::ref_ptr< agxOSG::ParticleTrajectoriesDrawable > m_particleTrajectoryDrawable
 
osg::ref_ptr< agxOSG::RigidBodyTrajectoryDrawable > m_RBTrajectorydrawable
 
osg::observer_ptr< osg::Group > m_root
 
agx::Real m_sampling
 
osg::ref_ptr< osg::Geode > m_trajectoryGeode
 
- 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...
 

Detailed Description

Definition at line 141 of file QtOSGUtils.h.

Constructor & Destructor Documentation

◆ TrajectoryRenderer()

agxQt::TrajectoryRenderer::TrajectoryRenderer ( agxSDK::Simulation *  simulation,
osg::Group *  root,
agx::ParticleSystem *  ps 
)

◆ ~TrajectoryRenderer()

virtual agxQt::TrajectoryRenderer::~TrajectoryRenderer ( )
protectedvirtual

Member Function Documentation

◆ getColorMap()

agxOSG::ScalarColorMap* agxQt::TrajectoryRenderer::getColorMap ( )

◆ getEnable()

bool agxQt::TrajectoryRenderer::getEnable ( ) const

◆ getMaxPositionPoints()

agx::UInt agxQt::TrajectoryRenderer::getMaxPositionPoints ( )

◆ getSampling()

agx::Real agxQt::TrajectoryRenderer::getSampling ( ) const

◆ reSample()

void agxQt::TrajectoryRenderer::reSample ( )

◆ resetTrajectoires()

void agxQt::TrajectoryRenderer::resetTrajectoires ( )

◆ setColorMap()

void agxQt::TrajectoryRenderer::setColorMap ( agxOSG::ScalarColorMap *  colorMap)

◆ setEnable()

void agxQt::TrajectoryRenderer::setEnable ( bool  enable)

◆ setMaxPositionPoints()

void agxQt::TrajectoryRenderer::setMaxPositionPoints ( agx::UInt  posPoints)

◆ setSampling()

void agxQt::TrajectoryRenderer::setSampling ( agx::Real  enable)

Member Data Documentation

◆ m_enable

bool agxQt::TrajectoryRenderer::m_enable
protected

Definition at line 181 of file QtOSGUtils.h.

◆ m_numTrajectoryPositions

agx::UInt agxQt::TrajectoryRenderer::m_numTrajectoryPositions
protected

Definition at line 179 of file QtOSGUtils.h.

◆ m_particleSystem

agx::ParticleSystem* agxQt::TrajectoryRenderer::m_particleSystem
protected

Definition at line 176 of file QtOSGUtils.h.

◆ m_particleTrajectoryDrawable

osg::ref_ptr< agxOSG::ParticleTrajectoriesDrawable > agxQt::TrajectoryRenderer::m_particleTrajectoryDrawable
protected

Definition at line 183 of file QtOSGUtils.h.

◆ m_RBTrajectorydrawable

osg::ref_ptr< agxOSG::RigidBodyTrajectoryDrawable > agxQt::TrajectoryRenderer::m_RBTrajectorydrawable
protected

Definition at line 184 of file QtOSGUtils.h.

◆ m_root

osg::observer_ptr<osg::Group> agxQt::TrajectoryRenderer::m_root
protected

Definition at line 177 of file QtOSGUtils.h.

◆ m_sampling

agx::Real agxQt::TrajectoryRenderer::m_sampling
protected

Definition at line 180 of file QtOSGUtils.h.

◆ m_trajectoryGeode

osg::ref_ptr<osg::Geode> agxQt::TrajectoryRenderer::m_trajectoryGeode
protected

Definition at line 178 of file QtOSGUtils.h.


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