 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
30 #include <osg/Geometry>
80 const osg::Program*
getProgram()
const {
return m_program; }
102 void setUseRedShiftScale(
bool);
143 virtual void update();
197 virtual void removeNotification();
202 virtual void addNotification();
204 void initialize(osg::Group*
root);
void setNumSegmentsPerUnitLength(agx::Real segmentsPerUnitLength)
Assign how many cylinder segments that should be used per unit length.
Derive from this class to implement a listener for simulation step events.
osg::ref_ptr< osg::Group > m_node
const osg::Uniform * getCylinderColorUniform() const
virtual void last(const agx::TimeStamp &)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
agxUtil::Spline * getSplineModel()
osg::Vec3Array * m_vertexArray
agxUtil::SplineRef m_spline
SplineShaderRef m_splineGeometry
Class to encapsulate reading shader files and setting up rendering of a Spline.
osg::ref_ptr< SplineShader > SplineShaderRef
void setNumActiveElements(size_t numActiveElements)
A class holding 4 dimensional vectors and providing basic arithmetic.
osg::Vec3Array * getVertexArray()
osg::FloatArray * m_redShiftArray
agx::ref_ptr< SplineRenderer > SplineRendererRef
void setSplineModel(agxUtil::Spline *spline)
Assign spline model.
osg::ref_ptr< osg::Uniform > m_useRedShiftUniform
agx::RealVector & getRedShiftScales()
Smart pointer for handling referenced counted objects.
const osg::Uniform * getCircleResolutionUniform() const
osg::Program * getProgram()
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
void setRadius(agx::Real radius)
Assign new radius of the cylinder segments.
const osg::Uniform * getCircleNormalUniform() const
osg::ref_ptr< osg::Uniform > m_circleNormalUniform
osg::Vec4Array * m_quatsInColorArray
osg::Uniform * getCircleNormalUniform()
size_t m_numActiveElements
The geometry representation used by the collision detection engine.
agx::RealVector m_redShiftScales
Values from 0 to 1 how red the color of the node is (0 default color, 1 red color,...
virtual ~SplineRenderer()
osg::FloatArray * m_radiusArray
AGXCORE_EXPORT Component * root()
Class for rendering a spline model.
const agx::RealVector & getRedShiftScales() const
osg::ref_ptr< osg::Uniform > m_cylinderColorUniform
This namespace consists of a set of classes for handling geometric intersection tests including boole...
osg::FloatArray * getRadiusArray()
osg::Uniform * getCylinderColorUniform()
osg::FloatArray * m_xTexCoordArray
agxData::Array< agx::Vec4 > Vec4Array
agx::Real getRadius() const
osg::Uniform * getCircleResolutionUniform()
const agxUtil::Spline * getSplineModel() const
osg::ref_ptr< osg::Uniform > m_circleResolutionUniform
agx::Real getNumSegmentsPerUnitLength() const
osg::DrawArrays * m_primitiveSet
agxData::Array< agx::Vec3 > Vec3Array
const osg::Program * getProgram() const
agx::Real m_numSegmentsPerUnitLength
osg::Vec4Array * getQuatsInColorArray()