50 ALL = MOTOR1D | RANGE1D | LOCK1D,
110 void setSmoothFactor(
agx::Real smoothFactor);
150 virtual void update(
float x,
float y);
188 RendererStatistic* s,
194 statisticsMask(mask),
212 for (
int i = 0; i < NUM_FORCES; i++)
213 statistics.push_back(
new RendererStatistic(smoothFactor));
BodyData(agx::RigidBody *b, agx::Real smoothFactor, const agx::Vec3 &r, const agxRender::Color &c)
agx::Vector< agx::ref_ptr< RendererStatistic > > statistics
Statistic< agxUtil::ExponentialMovingAverageStatistic > RendererStatistic
ConstraintForceStatistics
Specifies which secondary constraints that should be included in the statistics.
agx::HashVector< agx::RigidBody *, agx::ref_ptr< BodyData > > RigidBodyHashVector
Utility color class with "common colors".
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic...
agx::HashVector< agx::Constraint1DOF *, agx::ref_ptr< ConstraintData > > ConstraintHashVector
Base class providing referencing counted objects.
agx::RigidBodyObserver body
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
ConstraintData(agx::Constraint1DOF *c, RendererStatistic *s, const agx::Vec3 &r, const agxRender::Color &col, ConstraintForceStatistics mask)
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
Derive from this class to implement a listener for simulation GuiEvents.
Smart pointer for handling referenced counted objects.
agx::Constraint1DOFObserver constraint
The rigid body class, combining a geometric model and a frame of reference.
ConstraintForceStatistics statisticsMask
ConstraintHashVector m_constraints
agx::ref_ptr< RendererStatistic > statistic
static agxRender::Color Red()
Creates an arrow visualizing force, either contact force (for added bodies), or motor force for added...
ContactForceStatistics
Contact force directions.
RigidBodyHashVector m_bodies