Privacy
An open-source, flexible 3D physical simulation framework
mars::plugins::Plot3D::GeneralPlot Class Reference

#include <GeneralPlot.h>

Classes

class  CurveData
 

Public Member Functions

 GeneralPlot (interfaces::ControlCenter *c)
 
 ~GeneralPlot ()
 
virtual void preGraphicsUpdate (void)
 
void addCurve (std::string name)
 
void addData (int curve, double time, double data)
 
void setPosition (double x, double y, double z)
 
void setScale (double x, double y)
 
void setYBounds (int curve, double yMin, double yMax)
 
- Public Member Functions inherited from mars::interfaces::GraphicsUpdateInterface
 GraphicsUpdateInterface (void)
 
virtual ~GraphicsUpdateInterface (void)
 
virtual void postGraphicsUpdate (void)
 

Private Attributes

interfaces::ControlCenterc
 
osg::ref_ptr< osg_plot::Plotplot
 
std::vector< osg_plot::Curve * > curveVector
 
osg::ref_ptr< osg::Group > scene
 
osg::ref_ptr< osg::MatrixTransform > scaleTransform
 
osg::ref_ptr< osg::AutoTransform > posTransform
 
unsigned long motorID
 
unsigned long hudID
 
utils::Vector plotPos
 
utils::Mutex mutex
 
std::vector< CurveDatadataVector
 

Detailed Description

Definition at line 54 of file GeneralPlot.h.

Constructor & Destructor Documentation

◆ GeneralPlot()

mars::plugins::Plot3D::GeneralPlot::GeneralPlot ( interfaces::ControlCenter c)

Definition at line 45 of file GeneralPlot.cpp.

◆ ~GeneralPlot()

mars::plugins::Plot3D::GeneralPlot::~GeneralPlot ( )

Definition at line 103 of file GeneralPlot.cpp.

Member Function Documentation

◆ addCurve()

void mars::plugins::Plot3D::GeneralPlot::addCurve ( std::string  name)

Definition at line 72 of file GeneralPlot.cpp.

◆ addData()

void mars::plugins::Plot3D::GeneralPlot::addData ( int  curve,
double  time,
double  data 
)

Definition at line 93 of file GeneralPlot.cpp.

◆ preGraphicsUpdate()

void mars::plugins::Plot3D::GeneralPlot::preGraphicsUpdate ( void  )
virtual

Reimplemented from mars::interfaces::GraphicsUpdateInterface.

Definition at line 109 of file GeneralPlot.cpp.

◆ setPosition()

void mars::plugins::Plot3D::GeneralPlot::setPosition ( double  x,
double  y,
double  z 
)

Definition at line 84 of file GeneralPlot.cpp.

◆ setScale()

void mars::plugins::Plot3D::GeneralPlot::setScale ( double  x,
double  y 
)

Definition at line 88 of file GeneralPlot.cpp.

◆ setYBounds()

void mars::plugins::Plot3D::GeneralPlot::setYBounds ( int  curve,
double  yMin,
double  yMax 
)

Definition at line 78 of file GeneralPlot.cpp.

Member Data Documentation

◆ c

interfaces::ControlCenter* mars::plugins::Plot3D::GeneralPlot::c
private

Definition at line 74 of file GeneralPlot.h.

◆ curveVector

std::vector<osg_plot::Curve*> mars::plugins::Plot3D::GeneralPlot::curveVector
private

Definition at line 76 of file GeneralPlot.h.

◆ dataVector

std::vector<CurveData> mars::plugins::Plot3D::GeneralPlot::dataVector
private

Definition at line 84 of file GeneralPlot.h.

◆ hudID

unsigned long mars::plugins::Plot3D::GeneralPlot::hudID
private

Definition at line 81 of file GeneralPlot.h.

◆ motorID

unsigned long mars::plugins::Plot3D::GeneralPlot::motorID
private

Definition at line 81 of file GeneralPlot.h.

◆ mutex

utils::Mutex mars::plugins::Plot3D::GeneralPlot::mutex
private

Definition at line 83 of file GeneralPlot.h.

◆ plot

osg::ref_ptr<osg_plot::Plot> mars::plugins::Plot3D::GeneralPlot::plot
private

Definition at line 75 of file GeneralPlot.h.

◆ plotPos

utils::Vector mars::plugins::Plot3D::GeneralPlot::plotPos
private

Definition at line 82 of file GeneralPlot.h.

◆ posTransform

osg::ref_ptr<osg::AutoTransform> mars::plugins::Plot3D::GeneralPlot::posTransform
private

Definition at line 79 of file GeneralPlot.h.

◆ scaleTransform

osg::ref_ptr<osg::MatrixTransform> mars::plugins::Plot3D::GeneralPlot::scaleTransform
private

Definition at line 78 of file GeneralPlot.h.

◆ scene

osg::ref_ptr<osg::Group> mars::plugins::Plot3D::GeneralPlot::scene
private

Definition at line 77 of file GeneralPlot.h.


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