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

#include <GraphWidget.h>

Inheritance diagram for cnoid::GraphWidget:

Public Types

enum  ScrollMode { OFF, CONTINUOUS, PAGE }
 
enum  Mode { VIEW_MODE, EDIT_MODE }
 
enum  EditMode { FREE_LINE_MODE, LINE_MODE }
 

Public Member Functions

 GraphWidget (View *parentView)
 
 ~GraphWidget ()
 
void addDataHandler (GraphDataHandlerPtr handler)
 
void clearDataHandlers ()
 
void setRenderingTypes (bool showOriginalValues, bool showVelocities, bool showAccelerations)
 
void getRenderingTypes (bool &showOriginalValues, bool &showVelocities, bool &showAccelerations)
 
bool setCursorPosition (double pos)
 
void setTimeBarSyncMode (bool on)
 
bool isTimeBarSyncMode ()
 
void setAutoScrollMode (ScrollMode on)
 
ScrollMode autoScrollMode ()
 
void setVerticalValueRange (double lower, double upper)
 
void getVerticalValueRange (double &lower, double &upper)
 
void setLineWidth (double width)
 
double getLineWidth ()
 
void showRulers (bool show)
 
bool showsRulers ()
 
void showLimits (bool show)
 
bool showsLimits ()
 
void showGrid (bool show)
 
bool showsGrid ()
 
void setGridSize (double width, double height)
 
void getGridSize (double &width, double &height)
 
void setControlPointStep (int step, int offset=0)
 
void getControlPointStep (int &step, int &offset)
 
void highlightControlPoints (bool on)
 
bool highlightsControlPoints ()
 
void changeMode (Mode mode)
 
Mode mode ()
 
void changeEditMode (EditMode mode)
 
EditMode editMode ()
 
QLabel & statusLabel ()
 
bool saveImage (const std::string &filename)
 
virtual bool storeState (Archive &archive)
 
virtual bool restoreState (const Archive &archive)
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event)
 

Friends

class GraphDataHandler
 

Member Enumeration Documentation

◆ EditMode

Enumerator
FREE_LINE_MODE 
LINE_MODE 

◆ Mode

Enumerator
VIEW_MODE 
EDIT_MODE 

◆ ScrollMode

Enumerator
OFF 
CONTINUOUS 
PAGE 

Constructor & Destructor Documentation

◆ GraphWidget()

GraphWidget::GraphWidget ( View parentView)

◆ ~GraphWidget()

GraphWidget::~GraphWidget ( )

Member Function Documentation

◆ addDataHandler()

void GraphWidget::addDataHandler ( GraphDataHandlerPtr  handler)

◆ autoScrollMode()

GraphWidget::ScrollMode GraphWidget::autoScrollMode ( )

◆ changeEditMode()

void GraphWidget::changeEditMode ( EditMode  mode)

◆ changeMode()

void GraphWidget::changeMode ( Mode  mode)

◆ clearDataHandlers()

void GraphWidget::clearDataHandlers ( )

◆ editMode()

GraphWidget::EditMode GraphWidget::editMode ( )

◆ eventFilter()

bool GraphWidget::eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedvirtual

◆ getControlPointStep()

void GraphWidget::getControlPointStep ( int &  step,
int &  offset 
)

◆ getGridSize()

void GraphWidget::getGridSize ( double &  width,
double &  height 
)

◆ getLineWidth()

double GraphWidget::getLineWidth ( )

◆ getRenderingTypes()

void GraphWidget::getRenderingTypes ( bool &  showOriginalValues,
bool &  showVelocities,
bool &  showAccelerations 
)

◆ getVerticalValueRange()

void GraphWidget::getVerticalValueRange ( double &  lower,
double &  upper 
)

◆ highlightControlPoints()

void GraphWidget::highlightControlPoints ( bool  on)

◆ highlightsControlPoints()

bool GraphWidget::highlightsControlPoints ( )

◆ isTimeBarSyncMode()

bool GraphWidget::isTimeBarSyncMode ( )

◆ mode()

GraphWidget::Mode GraphWidget::mode ( )

◆ restoreState()

bool GraphWidget::restoreState ( const Archive archive)
virtual

◆ saveImage()

bool GraphWidget::saveImage ( const std::string &  filename)

◆ setAutoScrollMode()

void GraphWidget::setAutoScrollMode ( ScrollMode  on)

◆ setControlPointStep()

void GraphWidget::setControlPointStep ( int  step,
int  offset = 0 
)

◆ setCursorPosition()

bool GraphWidget::setCursorPosition ( double  x)
Returns
true if posistion is within the range of the data

◆ setGridSize()

void GraphWidget::setGridSize ( double  width,
double  height 
)

◆ setLineWidth()

void GraphWidget::setLineWidth ( double  width)

◆ setRenderingTypes()

void GraphWidget::setRenderingTypes ( bool  showOriginalValues,
bool  showVelocities,
bool  showAccelerations 
)

◆ setTimeBarSyncMode()

void GraphWidget::setTimeBarSyncMode ( bool  on)

◆ setVerticalValueRange()

void GraphWidget::setVerticalValueRange ( double  lower,
double  upper 
)

◆ showGrid()

void GraphWidget::showGrid ( bool  show)

◆ showLimits()

void GraphWidget::showLimits ( bool  show)

◆ showRulers()

void GraphWidget::showRulers ( bool  show)

◆ showsGrid()

bool GraphWidget::showsGrid ( )

◆ showsLimits()

bool GraphWidget::showsLimits ( )

◆ showsRulers()

bool GraphWidget::showsRulers ( )

◆ statusLabel()

QLabel & GraphWidget::statusLabel ( )

◆ storeState()

bool GraphWidget::storeState ( Archive archive)
virtual

Friends And Related Function Documentation

◆ GraphDataHandler

friend class GraphDataHandler
friend

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