17#ifndef AGXOSG_SPLINERENDERER_OLD_H
18#define AGXOSG_SPLINERENDERER_OLD_H
31#include <osg/Geometry>
virtual void removeNotification()
Called when this listener is removed from the simulation.
const agxUtil::Spline * getSplineModel() const
virtual ~SplineRendererOld()
virtual void addNotification()
Called when this listener is added to the simulation.
agxUtil::Spline * getSplineModel()
virtual void update(const agx::RealVector &radiiVector)
Use this update if this spline has variable radii.
osg::ref_ptr< osg::Group > m_node
void setSplineModel(agxUtil::Spline *spline)
Assign spline model.
virtual void update()
Given the current spline control points, data will be pushed for new update.
const agx::RealVector & getRedShiftScales() const
agx::Real getRadius() const
SplineRendererOld(agxUtil::Spline *spline, osg::Group *root)
Construct spline (geometry shader) renderer.
agx::RealVector m_redShiftScales
Values from 0 to 1 how red the color of the node is (0 default color, 1 red color,...
agx::Vec4f getColor() const
void setNumSegmentsPerUnitLength(agx::Real segmentsPerUnitLength)
Assign how many cylinder segments that should be used per unit length.
agx::Real m_numSegmentsPerUnitLength
CylinderGeometryShaderRef m_splineGeometry
agx::RealVector & getRedShiftScales()
agxUtil::SplineRef m_spline
void initialize(osg::Group *root)
agx::Real getNumSegmentsPerUnitLength() const
void setColor(const agx::Vec4f &color)
Assign color to this spline.
void setRadius(agx::Real radius)
Assign new radius of the cylinder segments.
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...
Derive from this class to implement a listener for simulation step events.
A class holding 4 dimensional vectors and providing basic arithmetic.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
osg::ref_ptr< CylinderGeometryShader > CylinderGeometryShaderRef
agx::ref_ptr< SplineRendererOld > SplineRendererOldRef