Choreonoid  1.8
Public Types | Public Member Functions | Friends | List of all members
cnoid::GraphDataHandler Class Reference

#include <GraphWidget.h>

Public Types

typedef std::function< void(int frame, int size, double *out_values)> DataRequestCallback
 
typedef std::function< void(int frame, int size, double *values)> DataModifiedCallback
 

Public Member Functions

 GraphDataHandler ()
 
 ~GraphDataHandler ()
 
void setID (int id)
 
int getID () const
 
void setColor (float r, float g, float b)
 
void setLabel (const std::string &label)
 
void setFrameProperties (int numFrames, double frameRate, double offset=0.0)
 
void setValueLimits (double lower, double upper)
 
void setVelocityLimits (double lower, double upper)
 
void addVerticalLine (double x, const std::string &label)
 
void addHorizontalLine (double y, const std::string &label)
 
void clearLines ()
 
void update ()
 
void setDataRequestCallback (DataRequestCallback callback)
 
void setDataModifiedCallback (DataModifiedCallback callback)
 

Friends

class GraphWidgetImpl
 

Member Typedef Documentation

◆ DataModifiedCallback

typedef std::function<void(int frame, int size, double* values)> cnoid::GraphDataHandler::DataModifiedCallback

◆ DataRequestCallback

typedef std::function<void(int frame, int size, double* out_values)> cnoid::GraphDataHandler::DataRequestCallback

Constructor & Destructor Documentation

◆ GraphDataHandler()

GraphDataHandler::GraphDataHandler ( )

◆ ~GraphDataHandler()

GraphDataHandler::~GraphDataHandler ( )

Member Function Documentation

◆ addHorizontalLine()

void GraphDataHandler::addHorizontalLine ( double  y,
const std::string &  label 
)

◆ addVerticalLine()

void GraphDataHandler::addVerticalLine ( double  x,
const std::string &  label 
)

◆ clearLines()

void GraphDataHandler::clearLines ( )

◆ getID()

int cnoid::GraphDataHandler::getID ( ) const
inline

◆ setColor()

void GraphDataHandler::setColor ( float  r,
float  g,
float  b 
)

◆ setDataModifiedCallback()

void GraphDataHandler::setDataModifiedCallback ( DataModifiedCallback  callback)

◆ setDataRequestCallback()

void GraphDataHandler::setDataRequestCallback ( DataRequestCallback  callback)

◆ setFrameProperties()

void GraphDataHandler::setFrameProperties ( int  numFrames,
double  frameRate,
double  offset = 0.0 
)

◆ setID()

void cnoid::GraphDataHandler::setID ( int  id)
inline

◆ setLabel()

void GraphDataHandler::setLabel ( const std::string &  label)

◆ setValueLimits()

void GraphDataHandler::setValueLimits ( double  lower,
double  upper 
)

◆ setVelocityLimits()

void GraphDataHandler::setVelocityLimits ( double  lower,
double  upper 
)

◆ update()

void GraphDataHandler::update ( )

Friends And Related Function Documentation

◆ GraphWidgetImpl

friend class GraphWidgetImpl
friend

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