Privacy
An open-source, flexible 3D physical simulation framework
osg_plot::CurveP Class Reference

#include <CurveP.h>

Public Member Functions

 CurveP (int c)
 
 ~CurveP ()
 
void setMaxNumPoints (unsigned long n)
 
void setTitle (std::string s)
 
void appendData (double x, double y)
 
void crop (void)
 
void getBounds (double *minX, double *maxX, double *minY, double *maxY)
 
void rescale (double minX, double maxX, double minY, double maxY)
 
void setYBounds (double yMin, double yMax)
 
void dirty (void)
 
- Public Member Functions inherited from osg_plot::Curve
 Curve ()
 
virtual ~Curve ()
 

Private Attributes

unsigned long maxPoints
 
int color
 
float yPos
 
float yMin
 
float yMax
 
bool boundsSet
 
std::string title
 
Color defColors [6]
 
osg::ref_ptr< osg::Vec3Array > points
 
osg::ref_ptr< osg::Geometry > linesGeom
 
osg::ref_ptr< osg::MatrixTransform > curveTransform
 
osg::ref_ptr< osg::DrawArrays > drawArray
 
osg::ref_ptr< osgText::Text > xLabelText
 

Friends

class Plot
 

Detailed Description

Definition at line 46 of file CurveP.h.

Constructor & Destructor Documentation

◆ CurveP()

osg_plot::CurveP::CurveP ( int  c)

Definition at line 37 of file CurveP.cpp.

◆ ~CurveP()

osg_plot::CurveP::~CurveP ( void  )

Definition at line 116 of file CurveP.cpp.

Member Function Documentation

◆ appendData()

void osg_plot::CurveP::appendData ( double  x,
double  y 
)
virtual

Implements osg_plot::Curve.

Definition at line 119 of file CurveP.cpp.

◆ crop()

void osg_plot::CurveP::crop ( void  )

Definition at line 128 of file CurveP.cpp.

◆ dirty()

void osg_plot::CurveP::dirty ( void  )

Definition at line 178 of file CurveP.cpp.

◆ getBounds()

void osg_plot::CurveP::getBounds ( double *  minX,
double *  maxX,
double *  minY,
double *  maxY 
)

Definition at line 137 of file CurveP.cpp.

◆ rescale()

void osg_plot::CurveP::rescale ( double  minX,
double  maxX,
double  minY,
double  maxY 
)

Definition at line 164 of file CurveP.cpp.

◆ setMaxNumPoints()

void osg_plot::CurveP::setMaxNumPoints ( unsigned long  n)
inlinevirtual

Implements osg_plot::Curve.

Definition at line 53 of file CurveP.h.

◆ setTitle()

void osg_plot::CurveP::setTitle ( std::string  s)
inlinevirtual

Implements osg_plot::Curve.

Definition at line 54 of file CurveP.h.

◆ setYBounds()

void osg_plot::CurveP::setYBounds ( double  yMin,
double  yMax 
)
inlinevirtual

Implements osg_plot::Curve.

Definition at line 60 of file CurveP.h.

Friends And Related Function Documentation

◆ Plot

friend class Plot
friend

Definition at line 47 of file CurveP.h.

Member Data Documentation

◆ boundsSet

bool osg_plot::CurveP::boundsSet
private

Definition at line 72 of file CurveP.h.

◆ color

int osg_plot::CurveP::color
private

Definition at line 69 of file CurveP.h.

◆ curveTransform

osg::ref_ptr<osg::MatrixTransform> osg_plot::CurveP::curveTransform
private

Definition at line 78 of file CurveP.h.

◆ defColors

Color osg_plot::CurveP::defColors[6]
private

Definition at line 75 of file CurveP.h.

◆ drawArray

osg::ref_ptr<osg::DrawArrays> osg_plot::CurveP::drawArray
private

Definition at line 79 of file CurveP.h.

◆ linesGeom

osg::ref_ptr<osg::Geometry> osg_plot::CurveP::linesGeom
private

Definition at line 77 of file CurveP.h.

◆ maxPoints

unsigned long osg_plot::CurveP::maxPoints
private

Definition at line 68 of file CurveP.h.

◆ points

osg::ref_ptr<osg::Vec3Array> osg_plot::CurveP::points
private

Definition at line 76 of file CurveP.h.

◆ title

std::string osg_plot::CurveP::title
private

Definition at line 73 of file CurveP.h.

◆ xLabelText

osg::ref_ptr<osgText::Text> osg_plot::CurveP::xLabelText
private

Definition at line 81 of file CurveP.h.

◆ yMax

float osg_plot::CurveP::yMax
private

Definition at line 71 of file CurveP.h.

◆ yMin

float osg_plot::CurveP::yMin
private

Definition at line 71 of file CurveP.h.

◆ yPos

float osg_plot::CurveP::yPos
private

Definition at line 70 of file CurveP.h.


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