17 #ifndef AGXOSG_SPLINERENDERER_OLD_H 18 #define AGXOSG_SPLINERENDERER_OLD_H 31 #include <osg/Geometry> 58 virtual void update();
112 virtual void removeNotification();
117 virtual void addNotification();
119 void initialize( osg::Group* root );
CylinderGeometryShaderRef m_splineGeometry
osg::ref_ptr< osg::Group > m_node
Derive from this class to implement a listener for simulation step events.
agx::Real m_numSegmentsPerUnitLength
agx::RealVector m_redShiftScales
Values from 0 to 1 how red the color of the node is (0 default color, 1 red color, redShiftScale.size == spline->getNumPoints())
This namespace consists of a set of classes for handling geometric intersection tests including boole...
A class holding 4 dimensional vectors and providing basic arithmetic.
const agx::RealVector & getRedShiftScales() const
void setRadius(agx::Real radius)
Assign new radius of the cylinder segments.
agxUtil::Spline * getSplineModel()
agx::Real getNumSegmentsPerUnitLength() const
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
virtual ~SplineRendererOld()
agx::RealVector & getRedShiftScales()
agxUtil::SplineRef m_spline
agx::ref_ptr< SplineRendererOld > SplineRendererOldRef
agx::Real getRadius() const
void setSplineModel(agxUtil::Spline *spline)
Assign spline model.
osg::ref_ptr< CylinderGeometryShader > CylinderGeometryShaderRef
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...
AGXCORE_EXPORT Component * root()
const agxUtil::Spline * getSplineModel() const
void setNumSegmentsPerUnitLength(agx::Real segmentsPerUnitLength)
Assign how many cylinder segments that should be used per unit length.