19 #include <osg/Geometry>
23 class DrawElementsUInt;
28 class DtGeom3dLinesComponent;
43 const osg::Vec4& color,
float maxLength,
float timeout);
61 virtual void traverse(osg::NodeVisitor& nv)
override;
66 virtual void setMaxSegments(
long segments)
override;
69 virtual void setSegmentTimeout(
float duration)
override;
72 virtual void setHeightLinesEnabled(
bool enabled)
override;
75 virtual void setHeightLinesModelSetId(
DtModelSetId modelSetId);
80 virtual void addParticle(osg::Vec3d
const& left,
81 osg::Vec3d
const& right,
double simTime);
84 virtual float currentSegmentLength();
86 virtual void setCurrentSegmentLength(
float len );
89 virtual void extendCurrentSegment(osg::Vec3d
const& left,
90 osg::Vec3d
const& right,
double simTime);
95 virtual void cleanupOldSegments(
double simTime);
100 virtual osg::Drawable* getDrawable();
103 virtual int particleIndexAtOffset(
int offset);
107 virtual void update()
override;
110 virtual void setColor(
const osg::Vec4& color);
116 virtual void updateBounds(
const osg::Vec3& point);
136 const osg::CopyOp& copyop);
148 virtual osg::BoundingBox computeBound(
const osg::Drawable& g)
const;
166 const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
173 virtual void expandBoundBy(
const osg::Vec3d& point);
223 const osg::Vec4& color,
float maxLength,
float timeout);
bool myDirtyBound
Definition: DtOsgTrackHistoryRibbon.h:155
osg::ref_ptr< DtSharedDrawElementsUInt > myTopLine
Definition: DtOsgTrackHistoryRibbon.h:182
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
double mySegmentCreationTime
Definition: DtOsgTrackHistoryRibbon.h:188
int myParticleStartIndex
Definition: DtOsgTrackHistoryRibbon.h:194
Definition: DtOsgTrackHistoryRibbon.h:202
Contains makVrv::DtVirtualBaseClass class.
Bounding box computation callback. Calculates the bounding box of the current track history ribbon...
Definition: DtOsgTrackHistoryRibbon.h:126
A class which represents a component for a set of 3d lines.
Definition: DtGeom3dLinesComponent.h:51
Geometry for the track history. Allows expansion of the geometry's bounding box as the ribbon grows w...
Definition: DtOsgTrackHistoryRibbon.h:122
float myLength
Definition: DtOsgTrackHistoryRibbon.h:189
Definition: DtOsgTrackHistoryRibbon.h:186
osg::ref_ptr< DtSharedDrawElementsUInt > myRibbon
Definition: DtOsgTrackHistoryRibbon.h:180
Base class for OSG ribbon implementations.
Definition: DtOsgRibbon.h:27
DtGeom3dLinesComponent * myLinesComponent
Definition: DtOsgTrackHistoryRibbon.h:196
osg::ref_ptr< DtSharedDrawElementsUInt > myBottomLine
Definition: DtOsgTrackHistoryRibbon.h:181
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:76
DtModelSetId
Definition: DtModelSetEnums.h:19
voidpf uLong offset
Definition: ioapi.h:42
OSG implementation of a track history ribbon.
Definition: DtOsgTrackHistoryRibbon.h:33
osg::ref_ptr< TrackHistoryGeometry > myGeometry
Definition: DtOsgTrackHistoryRibbon.h:184
std::vector< SegementInfo > mySegmentInfoVector
Definition: DtOsgTrackHistoryRibbon.h:191
Contains various enum classes relating to model sets.
osg::ref_ptr< osg::Vec3Array > myPoints
Definition: DtOsgTrackHistoryRibbon.h:178
int myParticleIndex
Definition: DtOsgTrackHistoryRibbon.h:193