17 #include <osg/Geometry>
21 class DrawElementsUInt;
40 const osg::Vec4& color,
float maxLength,
float timeout);
58 virtual void traverse(osg::NodeVisitor& nv)
override;
63 virtual void setMaxSegments(
long segments)
override;
68 virtual void addParticle(osg::Vec3d
const& left,
69 osg::Vec3d
const& right,
double simTime);
72 virtual float currentSegmentLength();
75 virtual void extendCurrentSegment(osg::Vec3d
const& left,
76 osg::Vec3d
const& right,
double simTime);
81 virtual void cleanupOldSegments(
double simTime);
86 virtual osg::Drawable* getDrawable();
89 virtual int particleIndexAtOffset(
int offset);
93 virtual void update()
override;
96 virtual void setColor(
const osg::Vec4& color);
102 virtual void updateBounds(
const osg::Vec3& point);
122 const osg::CopyOp& copyop);
134 virtual osg::BoundingBox computeBound(
const osg::Drawable& g)
const;
152 const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
159 virtual void expandBoundBy(
const osg::Vec3d& point);
203 const osg::Vec4& color,
float maxLength,
float timeout);
bool myDirtyBound
Definition: DtOsgTrackHistoryRibbon.h:141
osg::ref_ptr< DtSharedDrawElementsUInt > myTopLine
Definition: DtOsgTrackHistoryRibbon.h:168
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Contains makVrv::DtSharedDrawElementsUInt class.
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
int myActiveParticleCount
Definition: DtOsgTrackHistoryRibbon.h:176
int myParticleStartIndex
Definition: DtOsgTrackHistoryRibbon.h:175
Definition: DtOsgTrackHistoryRibbon.h:182
Contains makVrv::DtVirtualBaseClass class.
Bounding box computation callback. Calculates the bounding box of the current track history ribbon...
Definition: DtOsgTrackHistoryRibbon.h:112
Geometry for the track history. Allows expansion of the geometry's bounding box as the ribbon grows w...
Definition: DtOsgTrackHistoryRibbon.h:108
osg::ref_ptr< DtSharedDrawElementsUInt > myRibbon
Definition: DtOsgTrackHistoryRibbon.h:166
Base class for OSG ribbon implementations.
Definition: DtOsgRibbon.h:25
osg::ref_ptr< DtSharedDrawElementsUInt > myBottomLine
Definition: DtOsgTrackHistoryRibbon.h:167
std::vector< double > mySegmentCreationTimes
Definition: DtOsgTrackHistoryRibbon.h:172
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
voidpf uLong offset
Definition: ioapi.h:42
OSG implementation of a track history ribbon.
Definition: DtOsgTrackHistoryRibbon.h:31
osg::ref_ptr< TrackHistoryGeometry > myGeometry
Definition: DtOsgTrackHistoryRibbon.h:170
osg::ref_ptr< osg::Vec3Array > myPoints
Definition: DtOsgTrackHistoryRibbon.h:164
int myParticleIndex
Definition: DtOsgTrackHistoryRibbon.h:174