This class draws markers at trajectory points.
More...
#include <MarkerArtist.hpp>
|
|
Trajectory::DataSource | _dataSource [3] |
| |
|
unsigned int | _markers |
| |
|
IntermediateType | _intermediateType |
| |
|
double | _intermediateSpacing |
| |
|
DrawnMarkers | _intermediateDirection |
| |
|
float | _startColor [3] |
| |
|
float | _endColor [3] |
| |
|
float | _intermediateColor [3] |
| |
|
bool | _dataValid |
| |
|
bool | _dataZero |
| |
|
bool | _shouldAttenuate |
| |
|
osg::ref_ptr< osg::Shader > | _fragShader |
| |
|
osg::ref_ptr< const Trajectory > | _traj |
| |
|
osg::ref_ptr< osg::Program > | _program |
| |
This class draws markers at trajectory points.
The MarkerArtist is a type of TrajectoryArtist that draws markers at points of a trajectory. Markers can be standard OpenGL points or point sprites that use a specified image. Markers can be drawn at the beginning or end of a Trajectory, or at specified intermediate points.
◆ DrawnMarkers
Indicates which data points should be drawn as markers.
◆ IntermediateType
Indicates how intermediate marker spacing is determined.
◆ cloneType()
| virtual Object* OpenFrames::MarkerArtist::cloneType |
( |
| ) |
const |
|
inlinevirtual |
Standard OSG node methods.
◆ computeAttenuation()
| void OpenFrames::MarkerArtist::computeAttenuation |
( |
| ) |
|
Compute the auto attenuation coefficients.
◆ computeBoundingBox()
| virtual osg::BoundingBox OpenFrames::MarkerArtist::computeBoundingBox |
( |
| ) |
const |
|
protectedvirtual |
◆ dataAdded()
| virtual void OpenFrames::MarkerArtist::dataAdded |
( |
Trajectory * |
traj | ) |
|
|
virtual |
◆ dataCleared()
| virtual void OpenFrames::MarkerArtist::dataCleared |
( |
Trajectory * |
traj | ) |
|
|
virtual |
◆ drawImplementation()
| virtual void OpenFrames::MarkerArtist::drawImplementation |
( |
osg::RenderInfo & |
renderInfo | ) |
const |
|
virtual |
◆ resetMarkerShader()
| void OpenFrames::MarkerArtist::resetMarkerShader |
( |
| ) |
|
|
protected |
Reset shader to default state (circular point)
◆ setAutoAttenuate()
| void OpenFrames::MarkerArtist::setAutoAttenuate |
( |
bool |
attenuate | ) |
|
Specify whether to automatically shrink/grow the marker size as the camera gets closer or farther from the marker.
◆ setIntermediateDirection()
| void OpenFrames::MarkerArtist::setIntermediateDirection |
( |
DrawnMarkers |
direction | ) |
|
Specify if the markers should be computed forward from the start of the trajectory, or backward from the end of the trajectory. Use MarkerType enum values START or END
◆ setIntermediateSpacing()
| void OpenFrames::MarkerArtist::setIntermediateSpacing |
( |
double |
spacing | ) |
|
Set the intermediate marker spacing
◆ setIntermediateType()
Set the intermediate marker parameters
◆ setMarkers()
| void OpenFrames::MarkerArtist::setMarkers |
( |
unsigned int |
markers | ) |
|
Set the markers to be used, from enum DrawnMarkers
◆ setTrajectory()
| virtual void OpenFrames::MarkerArtist::setTrajectory |
( |
const Trajectory * |
traj | ) |
|
|
virtual |
◆ setXData()
Set the data to be used for plotting x/y/z components
◆ verifyData()
| void OpenFrames::MarkerArtist::verifyData |
( |
| ) |
const |
|
protected |
Verify whether the requested data is valid.
The documentation for this class was generated from the following file: