$search

TomGine::tgPlot2D Class Reference

#include <tgPlot2D.h>

List of all members.

Public Member Functions

void axis (float x_min, float x_max, float y_min, float y_max)
virtual void draw ()
void plot (const std::vector< float > &x, const std::vector< float > &y) const
void push (float y1, float y2, float y3, float y4)
void push (float y1, float y2, float y3)
void push (float y1, float y2)
void push (float y1)
void setBufferSize (unsigned size)
 tgPlot2D (int x, int y, unsigned w, unsigned h)
 ~tgPlot2D ()

Protected Member Functions

float findmax (const std::vector< float > &x) const
float findmin (const std::vector< float > &x) const
void updateBuffer (float y1, float y2=0.0f, float y3=0.0f, float y4=0.0f)

Protected Attributes

TomGine::tgFont font
unsigned h
unsigned m_buffer_size
std::vector< float > m_buffer_x
std::vector< float > m_buffer_y_1
std::vector< float > m_buffer_y_2
std::vector< float > m_buffer_y_3
std::vector< float > m_buffer_y_4
TomGine::tgTimer m_timer
unsigned w
int x
float x_max
float x_min
float x_scale
int y
float y_max
float y_min
float y_scale

Detailed Description

Definition at line 21 of file tgPlot2D.h.


Constructor & Destructor Documentation

tgPlot2D::tgPlot2D ( int  x,
int  y,
unsigned  w,
unsigned  h 
)

Definition at line 17 of file tgPlot2D.cpp.

tgPlot2D::~tgPlot2D (  ) 

Definition at line 35 of file tgPlot2D.cpp.


Member Function Documentation

void tgPlot2D::axis ( float  x_min,
float  x_max,
float  y_min,
float  y_max 
)

Definition at line 105 of file tgPlot2D.cpp.

void tgPlot2D::draw (  )  [virtual]

Definition at line 117 of file tgPlot2D.cpp.

float tgPlot2D::findmax ( const std::vector< float > &  x  )  const [protected]

Definition at line 40 of file tgPlot2D.cpp.

float tgPlot2D::findmin ( const std::vector< float > &  x  )  const [protected]

Definition at line 53 of file tgPlot2D.cpp.

void tgPlot2D::plot ( const std::vector< float > &  x,
const std::vector< float > &  y 
) const

Definition at line 168 of file tgPlot2D.cpp.

void tgPlot2D::push ( float  y1,
float  y2,
float  y3,
float  y4 
)

Definition at line 233 of file tgPlot2D.cpp.

void tgPlot2D::push ( float  y1,
float  y2,
float  y3 
)

Definition at line 213 of file tgPlot2D.cpp.

void tgPlot2D::push ( float  y1,
float  y2 
)

Definition at line 197 of file tgPlot2D.cpp.

void tgPlot2D::push ( float  y1  ) 

Definition at line 185 of file tgPlot2D.cpp.

void TomGine::tgPlot2D::setBufferSize ( unsigned  size  )  [inline]

Definition at line 53 of file tgPlot2D.h.

void tgPlot2D::updateBuffer ( float  y1,
float  y2 = 0.0f,
float  y3 = 0.0f,
float  y4 = 0.0f 
) [protected]

Definition at line 66 of file tgPlot2D.cpp.


Member Data Documentation

Definition at line 37 of file tgPlot2D.h.

unsigned TomGine::tgPlot2D::h [protected]

Definition at line 25 of file tgPlot2D.h.

unsigned TomGine::tgPlot2D::m_buffer_size [protected]

Definition at line 32 of file tgPlot2D.h.

std::vector<float> TomGine::tgPlot2D::m_buffer_x [protected]

Definition at line 27 of file tgPlot2D.h.

std::vector<float> TomGine::tgPlot2D::m_buffer_y_1 [protected]

Definition at line 28 of file tgPlot2D.h.

std::vector<float> TomGine::tgPlot2D::m_buffer_y_2 [protected]

Definition at line 29 of file tgPlot2D.h.

std::vector<float> TomGine::tgPlot2D::m_buffer_y_3 [protected]

Definition at line 30 of file tgPlot2D.h.

std::vector<float> TomGine::tgPlot2D::m_buffer_y_4 [protected]

Definition at line 31 of file tgPlot2D.h.

Definition at line 38 of file tgPlot2D.h.

unsigned TomGine::tgPlot2D::w [protected]

Definition at line 25 of file tgPlot2D.h.

int TomGine::tgPlot2D::x [protected]

Definition at line 24 of file tgPlot2D.h.

float TomGine::tgPlot2D::x_max [protected]

Definition at line 34 of file tgPlot2D.h.

float TomGine::tgPlot2D::x_min [protected]

Definition at line 34 of file tgPlot2D.h.

float TomGine::tgPlot2D::x_scale [protected]

Definition at line 35 of file tgPlot2D.h.

int TomGine::tgPlot2D::y [protected]

Definition at line 24 of file tgPlot2D.h.

float TomGine::tgPlot2D::y_max [protected]

Definition at line 34 of file tgPlot2D.h.

float TomGine::tgPlot2D::y_min [protected]

Definition at line 34 of file tgPlot2D.h.

float TomGine::tgPlot2D::y_scale [protected]

Definition at line 35 of file tgPlot2D.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Fri Mar 1 16:57:58 2013