|
AGXDynamics
2.31.1.0
|
#include <FrameTrajectoryDrawable.h>
Inheritance diagram for agxOSG::FrameTrajectoryDrawable:Public Member Functions | |
| FrameTrajectoryDrawable (agxSDK::Simulation *simulation) | |
| bool | addTrajectory (agx::Frame *frame) |
| Add a trajectory to be drawn given a frame. More... | |
| bool | addTrajectory (agx::Frame *frame, agx::Vec4f color) |
| Add a trajectory to be drawn given a frame and a color. More... | |
| virtual const char * | className () const |
| virtual osg::Object * | clone (const osg::CopyOp &) const |
| virtual osg::Object * | cloneType () const |
| virtual osg::BoundingBox | computeBound () const |
| Compute the bounding box around Drawables's geometry. More... | |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| The actual draw method for the particle system. More... | |
| bool | getEnable () const |
| Return true of the drawable is enabled. More... | |
| agx::UInt | getNumTrajectoryPositions () const |
| Get the number of positions used in the trajectories. More... | |
| agxSDK::Simulation * | getSimulation () |
| Get the simulation related to the drawable. More... | |
| virtual bool | isSameKindAs (const osg::Object *obj) const |
| virtual const char * | libraryName () const |
| bool | removeTrajectory (agx::Frame *frame) |
| Remove the current stored trajectory from the drawable for a particle with given id. More... | |
| void | resetTrajectories () |
| Reset trajectories. More... | |
| void | setDefaultTrajectoryColor (const agx::Vec4f &color) |
| Set default color of trajectories. More... | |
| void | setEnable (bool enable) |
| Enable the drawable. More... | |
| void | setNumTrajectoryPositions (agx::UInt num) |
| Set the number of positions used in the trajectories. More... | |
| void | updateTrajectories () |
| Update the trajectory structures. More... | |
Protected Member Functions | |
| virtual | ~FrameTrajectoryDrawable () |
| void | popOldPositionsInDeadTrajectories () |
| void | updateKernelBuffers () |
Protected Attributes | |
| agx::Vector< std::tuple < agx::FrameRef, agx::Vec4f, TrajectoryData > > | m_activeTrajectories |
| agxData::BufferRef | m_colorBuffer |
| agxData::BufferRef | m_countBuffer |
| agx::Vec4f | m_defaultTrajectoryColor |
| agx::Vector< TrajectoryData > | m_destroyedTrajectories |
| bool | m_enable |
| agxData::BufferRef | m_firstsBuffer |
| agx::UInt | m_maxPosCounts |
| agx::TaskGroupRef | m_renderTask |
| agxSDK::SimulationObserver | m_simulation |
| agxData::BufferRef | m_verticesBuffer |
Definition at line 34 of file FrameTrajectoryDrawable.h.
| agxOSG::FrameTrajectoryDrawable::FrameTrajectoryDrawable | ( | agxSDK::Simulation * | simulation | ) |
|
protectedvirtual |
| bool agxOSG::FrameTrajectoryDrawable::addTrajectory | ( | agx::Frame * | frame | ) |
Add a trajectory to be drawn given a frame.
| bool agxOSG::FrameTrajectoryDrawable::addTrajectory | ( | agx::Frame * | frame, |
| agx::Vec4f | color | ||
| ) |
Add a trajectory to be drawn given a frame and a color.
|
inlinevirtual |
Definition at line 49 of file FrameTrajectoryDrawable.h.
|
inlinevirtual |
Definition at line 46 of file FrameTrajectoryDrawable.h.
|
inlinevirtual |
Definition at line 45 of file FrameTrajectoryDrawable.h.
|
virtual |
Compute the bounding box around Drawables's geometry.
|
virtual |
The actual draw method for the particle system.
| bool agxOSG::FrameTrajectoryDrawable::getEnable | ( | ) | const |
Return true of the drawable is enabled.
Definition at line 126 of file FrameTrajectoryDrawable.h.
References m_enable.
| agx::UInt agxOSG::FrameTrajectoryDrawable::getNumTrajectoryPositions | ( | ) | const |
Get the number of positions used in the trajectories.
Definition at line 130 of file FrameTrajectoryDrawable.h.
References m_maxPosCounts.
| agxSDK::Simulation * agxOSG::FrameTrajectoryDrawable::getSimulation | ( | ) |
Get the simulation related to the drawable.
Definition at line 124 of file FrameTrajectoryDrawable.h.
References m_simulation.
|
inlinevirtual |
Definition at line 47 of file FrameTrajectoryDrawable.h.
|
inlinevirtual |
Definition at line 48 of file FrameTrajectoryDrawable.h.
|
protected |
| bool agxOSG::FrameTrajectoryDrawable::removeTrajectory | ( | agx::Frame * | frame | ) |
Remove the current stored trajectory from the drawable for a particle with given id.
| void agxOSG::FrameTrajectoryDrawable::resetTrajectories | ( | ) |
Reset trajectories.
| void agxOSG::FrameTrajectoryDrawable::setDefaultTrajectoryColor | ( | const agx::Vec4f & | color | ) |
Set default color of trajectories.
Definition at line 132 of file FrameTrajectoryDrawable.h.
References m_defaultTrajectoryColor.
| void agxOSG::FrameTrajectoryDrawable::setEnable | ( | bool | enable | ) |
Set the number of positions used in the trajectories.
|
protected |
| void agxOSG::FrameTrajectoryDrawable::updateTrajectories | ( | ) |
Update the trajectory structures.
|
protected |
Definition at line 112 of file FrameTrajectoryDrawable.h.
|
protected |
Definition at line 116 of file FrameTrajectoryDrawable.h.
|
protected |
Definition at line 117 of file FrameTrajectoryDrawable.h.
|
protected |
Definition at line 113 of file FrameTrajectoryDrawable.h.
Referenced by setDefaultTrajectoryColor().
|
protected |
Definition at line 111 of file FrameTrajectoryDrawable.h.
|
protected |
Definition at line 120 of file FrameTrajectoryDrawable.h.
Referenced by getEnable(), and setEnable().
|
protected |
Definition at line 118 of file FrameTrajectoryDrawable.h.
|
protected |
Definition at line 119 of file FrameTrajectoryDrawable.h.
Referenced by getNumTrajectoryPositions().
|
protected |
Definition at line 109 of file FrameTrajectoryDrawable.h.
|
mutableprotected |
Definition at line 108 of file FrameTrajectoryDrawable.h.
Referenced by getSimulation().
|
protected |
Definition at line 115 of file FrameTrajectoryDrawable.h.