19 #include <osg/Geometry>
23 class DrawElementsUInt;
28 class DtGeom3dLinesComponent;
42 const osg::Vec4& color,
float maxLength,
float timeout);
60 virtual void traverse(osg::NodeVisitor& nv)
override;
65 virtual void setMaxSegments(
long segments)
override;
68 virtual void setSegmentTimeout(
float duration)
override;
71 virtual void setHeightLinesEnabled(
bool enabled)
override;
74 virtual void setHeightLinesModelSetId(
DtModelSetId modelSetId);
79 virtual void addParticle(osg::Vec3d
const& left,
80 osg::Vec3d
const& right,
double simTime);
83 virtual float currentSegmentLength();
85 virtual void setCurrentSegmentLength(
float len );
88 virtual void extendCurrentSegment(osg::Vec3d
const& left,
89 osg::Vec3d
const& right,
double simTime);
94 virtual void cleanupOldSegments(
double simTime);
99 virtual osg::Drawable* getDrawable();
102 virtual int particleIndexAtOffset(
int offset);
106 virtual void update()
override;
109 virtual void setColor(
const osg::Vec4& color);
115 virtual void updateBounds(
const osg::Vec3& point);
135 const osg::CopyOp& copyop);
147 virtual osg::BoundingBox computeBound(
const osg::Drawable& g)
const;
165 const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
172 virtual void expandBoundBy(
const osg::Vec3d& point);
222 const osg::Vec4& color,
float maxLength,
float timeout);
bool myDirtyBound
Definition: DtOsgTrackHistoryRibbon.h:154
osg::ref_ptr< DtSharedDrawElementsUInt > myTopLine
Definition: DtOsgTrackHistoryRibbon.h:181
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:187
int myParticleStartIndex
Definition: DtOsgTrackHistoryRibbon.h:193
Definition: DtOsgTrackHistoryRibbon.h:201
Contains makVrv::DtVirtualBaseClass class.
Bounding box computation callback. Calculates the bounding box of the current track history ribbon...
Definition: DtOsgTrackHistoryRibbon.h:125
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:121
float myLength
Definition: DtOsgTrackHistoryRibbon.h:188
Definition: DtOsgTrackHistoryRibbon.h:185
osg::ref_ptr< DtSharedDrawElementsUInt > myRibbon
Definition: DtOsgTrackHistoryRibbon.h:179
Base class for OSG ribbon implementations.
Definition: DtOsgRibbon.h:27
DtGeom3dLinesComponent * myLinesComponent
Definition: DtOsgTrackHistoryRibbon.h:195
osg::ref_ptr< DtSharedDrawElementsUInt > myBottomLine
Definition: DtOsgTrackHistoryRibbon.h:180
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:183
std::vector< SegementInfo > mySegmentInfoVector
Definition: DtOsgTrackHistoryRibbon.h:190
Contains various enum classes relating to model sets.
osg::ref_ptr< osg::Vec3Array > myPoints
Definition: DtOsgTrackHistoryRibbon.h:177
int myParticleIndex
Definition: DtOsgTrackHistoryRibbon.h:192