SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::gui::qt::GraphWidget< DataType > Class Template Reference

#include <GraphDataWidget.h>

Inheritance diagram for sofa::gui::qt::GraphWidget< DataType >:

Protected Attributes

QChartVieww
 
QChart * m_chart
 Pointer to the chart Data. More...
 
QValueAxis * m_axisX
 x axis pointer More...
 
QValueAxis * m_axisY
 y axis pointer More...
 
std::map< QString, CurveData * > m_curves
 vector of series to be ploted More...
 
data_type currentData
 

Public Member Functions

 GraphWidget (QWidget *parent)
 
virtual ~GraphWidget ()
 
QWidgetgetWidget ()
 
void readFromData (const data_type &d0)
 
void exportGNUPlot (const std::string &baseFileName) const
 
void exportImage (const std::string &baseFileName) const
 
- Public Member Functions inherited from sofa::gui::qt::GraphSetting
virtual ~GraphSetting ()
 

Protected Member Functions

std::string getCurveFilename (unsigned int idx) const
 

Attribute details

◆ currentData

template<class DataType >
data_type sofa::gui::qt::GraphWidget< DataType >::currentData
protected

◆ m_axisX

template<class DataType >
QValueAxis* sofa::gui::qt::GraphWidget< DataType >::m_axisX
protected

x axis pointer

◆ m_axisY

template<class DataType >
QValueAxis* sofa::gui::qt::GraphWidget< DataType >::m_axisY
protected

y axis pointer

◆ m_chart

template<class DataType >
QChart* sofa::gui::qt::GraphWidget< DataType >::m_chart
protected

Pointer to the chart Data.

◆ m_curves

template<class DataType >
std::map<QString, CurveData*> sofa::gui::qt::GraphWidget< DataType >::m_curves
protected

vector of series to be ploted

◆ w

template<class DataType >
QChartView* sofa::gui::qt::GraphWidget< DataType >::w
protected

Constructor details

◆ GraphWidget()

template<class DataType >
sofa::gui::qt::GraphWidget< DataType >::GraphWidget ( QWidget parent)
inline

◆ ~GraphWidget()

template<class DataType >
virtual sofa::gui::qt::GraphWidget< DataType >::~GraphWidget ( )
inlinevirtual

Function details

◆ exportGNUPlot()

template<class DataType >
void sofa::gui::qt::GraphWidget< DataType >::exportGNUPlot ( const std::string &  baseFileName) const
inlinevirtual

◆ exportImage()

template<class DataType >
void sofa::gui::qt::GraphWidget< DataType >::exportImage ( const std::string &  baseFileName) const
inlinevirtual

◆ getCurveFilename()

template<class DataType >
std::string sofa::gui::qt::GraphWidget< DataType >::getCurveFilename ( unsigned int  idx) const
inlineprotected

◆ getWidget()

template<class DataType >
QWidget* sofa::gui::qt::GraphWidget< DataType >::getWidget ( )
inline

◆ readFromData()

template<class DataType >
void sofa::gui::qt::GraphWidget< DataType >::readFromData ( const data_type d0)
inline