#include <RigidBodyTrajectoryDrawable.h>
◆ RigidBodyTrajectoryDrawable()
| agxOSG::RigidBodyTrajectoryDrawable::RigidBodyTrajectoryDrawable |
( |
agxSDK::Simulation * |
simulation | ) |
|
◆ ~RigidBodyTrajectoryDrawable()
| virtual agxOSG::RigidBodyTrajectoryDrawable::~RigidBodyTrajectoryDrawable |
( |
| ) |
|
|
protectedvirtual |
◆ addRigidBodyCallback()
◆ className()
| virtual const char* agxOSG::RigidBodyTrajectoryDrawable::className |
( |
| ) |
const |
|
inlinevirtual |
◆ clone()
| virtual osg::Object* agxOSG::RigidBodyTrajectoryDrawable::clone |
( |
const osg::CopyOp & |
| ) |
const |
|
inlinevirtual |
◆ cloneType()
| virtual osg::Object* agxOSG::RigidBodyTrajectoryDrawable::cloneType |
( |
| ) |
const |
|
inlinevirtual |
◆ computeBound()
| virtual osg::BoundingBox agxOSG::RigidBodyTrajectoryDrawable::computeBound |
( |
| ) |
const |
|
virtual |
Compute the bounding box around Drawables's geometry.
◆ drawImplementation()
| virtual void agxOSG::RigidBodyTrajectoryDrawable::drawImplementation |
( |
osg::RenderInfo & |
renderInfo | ) |
const |
|
virtual |
The actual draw method for the particle system.
◆ getColorMap()
| ScalarColorMap* agxOSG::RigidBodyTrajectoryDrawable::getColorMap |
( |
| ) |
const |
- Returns
- the scalar color map that is used to color the rigid body trajectories with respect to speed.
◆ getEnable()
| bool agxOSG::RigidBodyTrajectoryDrawable::getEnable |
( |
| ) |
const |
◆ getNumTrajectoryPositions()
| agx::UInt agxOSG::RigidBodyTrajectoryDrawable::getNumTrajectoryPositions |
( |
| ) |
const |
◆ getOnlyDrawRigidBodyEmitterBodies()
| bool agxOSG::RigidBodyTrajectoryDrawable::getOnlyDrawRigidBodyEmitterBodies |
( |
| ) |
const |
◆ getSampling()
| agx::Real agxOSG::RigidBodyTrajectoryDrawable::getSampling |
( |
| ) |
const |
◆ getSimulation()
◆ handleCreationEvent()
| void agxOSG::RigidBodyTrajectoryDrawable::handleCreationEvent |
( |
agx::Index |
index | ) |
|
|
protected |
◆ handleDestructionEvent()
| void agxOSG::RigidBodyTrajectoryDrawable::handleDestructionEvent |
( |
agx::Index |
index | ) |
|
|
protected |
◆ isSameKindAs()
| virtual bool agxOSG::RigidBodyTrajectoryDrawable::isSameKindAs |
( |
const osg::Object * |
obj | ) |
const |
|
inlinevirtual |
◆ libraryName()
| virtual const char* agxOSG::RigidBodyTrajectoryDrawable::libraryName |
( |
| ) |
const |
|
inlinevirtual |
◆ popOldPositionsInDeadTrajectories()
| void agxOSG::RigidBodyTrajectoryDrawable::popOldPositionsInDeadTrajectories |
( |
| ) |
|
|
protected |
◆ removeRigidBodyCallback()
◆ removeTrajectoryFromId()
| void agxOSG::RigidBodyTrajectoryDrawable::removeTrajectoryFromId |
( |
agx::Index |
particleId | ) |
|
Remove the current stored trajectory from the drawable for a particle with given id.
◆ resample()
| void agxOSG::RigidBodyTrajectoryDrawable::resample |
( |
| ) |
|
◆ resetTrajectories()
| void agxOSG::RigidBodyTrajectoryDrawable::resetTrajectories |
( |
| ) |
|
◆ sample()
| void agxOSG::RigidBodyTrajectoryDrawable::sample |
( |
agx::Index |
index | ) |
|
|
protected |
◆ setColorMap()
| void agxOSG::RigidBodyTrajectoryDrawable::setColorMap |
( |
ScalarColorMap * |
colorMap | ) |
|
Set the scalar color map that will be used color the rigid body trajectories with respect to speed.
- Parameters
-
| colorMap | - the scalar map that will be used to color the body trajectories |
- Note
- - setting a color map overrides the current set trajectory color via
setDefaultTrajectoryColor.
◆ setDefaultTrajectoryColor()
| void agxOSG::RigidBodyTrajectoryDrawable::setDefaultTrajectoryColor |
( |
const agx::Vec4f & |
color | ) |
|
◆ setEnable()
| void agxOSG::RigidBodyTrajectoryDrawable::setEnable |
( |
bool |
enable, |
|
|
bool |
doResample = true |
|
) |
| |
◆ setNumTrajectoryPositions()
| void agxOSG::RigidBodyTrajectoryDrawable::setNumTrajectoryPositions |
( |
agx::UInt |
num | ) |
|
Set the number of positions used in the trajectories.
◆ setOnlyDrawRigidBodyEmitterBodies()
| void agxOSG::RigidBodyTrajectoryDrawable::setOnlyDrawRigidBodyEmitterBodies |
( |
bool |
enable | ) |
|
◆ setSampling()
| void agxOSG::RigidBodyTrajectoryDrawable::setSampling |
( |
agx::Real |
sampling, |
|
|
bool |
doResample = true |
|
) |
| |
◆ updateKernelBuffers()
| void agxOSG::RigidBodyTrajectoryDrawable::updateKernelBuffers |
( |
| ) |
|
|
protected |
◆ updateTrajectories()
| void agxOSG::RigidBodyTrajectoryDrawable::updateTrajectories |
( |
| ) |
|
Update the trajectory structures.
◆ m_activeTrajectories
◆ m_addRigidBodyCallback
◆ m_colorBuffer
◆ m_colorMap
◆ m_countBuffer
◆ m_destroyedTrajectories
| agx::Vector<TrajectoryData> agxOSG::RigidBodyTrajectoryDrawable::m_destroyedTrajectories |
|
protected |
◆ m_enable
| bool agxOSG::RigidBodyTrajectoryDrawable::m_enable |
|
protected |
◆ m_firstsBuffer
◆ m_maxPosCounts
| agx::UInt agxOSG::RigidBodyTrajectoryDrawable::m_maxPosCounts |
|
protected |
◆ m_onlyDrawRigidBodyEmitterBodies
| bool agxOSG::RigidBodyTrajectoryDrawable::m_onlyDrawRigidBodyEmitterBodies |
|
protected |
◆ m_removeRigidBodyCallback
◆ m_renderTask
◆ m_sampling
| agx::Real agxOSG::RigidBodyTrajectoryDrawable::m_sampling |
|
protected |
◆ m_simulation
◆ m_trajectoryColor
| agx::Vec4f agxOSG::RigidBodyTrajectoryDrawable::m_trajectoryColor |
|
protected |
◆ m_verticesBuffer
The documentation for this class was generated from the following file: