OpenFrames
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenFrames::CurveArtist Class Reference

This class draws Trajectory points connected by lines. More...

#include <CurveArtist.hpp>

Inheritance diagram for OpenFrames::CurveArtist:
OpenFrames::TrajectoryArtist OpenFrames::TrajectorySubscriber

Public Member Functions

 CurveArtist (const Trajectory *traj=NULL)
 
 CurveArtist (const CurveArtist &ca, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
virtual Object * cloneType () const
 
virtual Object * clone (const osg::CopyOp &copyop) const
 
virtual bool isSameKindAs (const osg::Object *obj) const
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
virtual void setTrajectory (const Trajectory *traj)
 
bool setXData (const Trajectory::DataSource &src)
 
bool setYData (const Trajectory::DataSource &src)
 
bool setZData (const Trajectory::DataSource &src)
 
void setColor (float r, float g, float b)
 
void setWidth (float width)
 
void setPattern (GLint factor, GLushort pattern)
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 
virtual void dataCleared (Trajectory *traj)
 
virtual void dataAdded (Trajectory *traj)
 
- Public Member Functions inherited from OpenFrames::TrajectoryArtist
 TrajectoryArtist (const TrajectoryArtist &ta, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
virtual bool isSameKindAs (const Object *obj) const
 
const TrajectorygetTrajectory () const
 

Protected Member Functions

virtual osg::BoundingBox computeBoundingBox () const
 
void verifyData () const
 
- Protected Member Functions inherited from OpenFrames::TrajectoryArtist
void RTE_glVertex (osg::Vec3d &point, osg::GLExtensions &glext) const
 

Protected Attributes

Trajectory::DataSource _dataSource [3]
 
osg::ref_ptr< osg::LineWidth > _lineWidth
 
osg::ref_ptr< osg::LineStipple > _linePattern
 
float _lineColor [3]
 
bool _dataValid
 
bool _dataZero
 
- Protected Attributes inherited from OpenFrames::TrajectoryArtist
osg::ref_ptr< const Trajectory_traj
 
osg::ref_ptr< osg::Program > _program
 

Detailed Description

This class draws Trajectory points connected by lines.

This class draws a series of Trajectory points connected by lines. The x,y,z components of the points can be independently specified to be any elements of the Trajectory.

Member Function Documentation

◆ cloneType()

virtual Object* OpenFrames::CurveArtist::cloneType ( ) const
inlinevirtual

Standard OSG node methods.

◆ computeBoundingBox()

virtual osg::BoundingBox OpenFrames::CurveArtist::computeBoundingBox ( ) const
protectedvirtual

Inhereted from TrajectoryArtist

Reimplemented from OpenFrames::TrajectoryArtist.

◆ dataAdded()

virtual void OpenFrames::CurveArtist::dataAdded ( Trajectory traj)
virtual

Called by the trajectory when data is added to it. Must be implemented by derived classes.

Implements OpenFrames::TrajectoryArtist.

◆ dataCleared()

virtual void OpenFrames::CurveArtist::dataCleared ( Trajectory traj)
virtual

Data was cleared from or added to the trajectory. Inherited from TrajectoryArtist

Implements OpenFrames::TrajectoryArtist.

◆ drawImplementation()

virtual void OpenFrames::CurveArtist::drawImplementation ( osg::RenderInfo &  renderInfo) const
virtual

Do the actual drawing

◆ setColor()

void OpenFrames::CurveArtist::setColor ( float  r,
float  g,
float  b 
)

Specify line attributes that should be used.

◆ setTrajectory()

virtual void OpenFrames::CurveArtist::setTrajectory ( const Trajectory traj)
virtual

Set the trajectory to be drawn.

Reimplemented from OpenFrames::TrajectoryArtist.

◆ setXData()

bool OpenFrames::CurveArtist::setXData ( const Trajectory::DataSource src)

Set the data to be used for plotting x/y/z components

Member Data Documentation

◆ _lineWidth

osg::ref_ptr<osg::LineWidth> OpenFrames::CurveArtist::_lineWidth
protected

Line width, stipple pattern, and color.


The documentation for this class was generated from the following file: