OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
AbstractPlot Class Referenceabstract

#include "AbstractPlot.h"

Public Types

enum  PlotType { Cartesian , Polar }
 

Public Member Functions

 AbstractPlot (PlotType _type)
 
virtual ~AbstractPlot ()
 
void SetLegendVisible (bool _isVisible=true, bool _repaint=true)
 
virtual void RepaintLegend (void)=0
 
virtual void RefreshWholePlot (void)=0
 
virtual void Clear (void)=0
 
void SetAxis (AbstractPlotAxis *_axisXBottom, AbstractPlotAxis *_axisXTop, AbstractPlotAxis *_axisYLeft, AbstractPlotAxis *_axisYRight)
 
AbstractPlotAxisGetAxis (AbstractPlotAxis::AxisID _id)
 
void SetAxisTitle (AbstractPlotAxis::AxisID _axis, const QString &_title)
 
void SetAxisAutoScale (AbstractPlotAxis::AxisID _axis, bool _isAutoScale)
 
void SetAxisLogScale (AbstractPlotAxis::AxisID _axis, bool _isLogScale)
 
void SetAxisMin (AbstractPlotAxis::AxisID _axis, double _minValue)
 
void SetAxisMax (AbstractPlotAxis::AxisID _axis, double _maxValue)
 
void RepaintAxis (AbstractPlotAxis::AxisID _axis)
 
void SetGridVisible (bool _isVisible, bool _repaint=true)
 
void SetGridColor (const QColor &_color, bool _repaint=true)
 
void SetGridLineWidth (double _width, bool _repaint=true)
 
virtual void RepaintGrid (void)=0
 
PlotType Type (void) const
 

Static Public Member Functions

static std::string plotTypeString (PlotType _type)
 
static PlotType plotTypeFromString (const std::string &_string, bool &_isComplex)
 

Protected Attributes

AbstractPlotAxism_axisXBottom
 
AbstractPlotAxism_axisXTop
 
AbstractPlotAxism_axisYLeft
 
AbstractPlotAxism_axisYRight
 
PlotConfiguration m_config
 
PlotType m_type
 

Member Enumeration Documentation

◆ PlotType

Enumerator
Cartesian 
Polar 

Constructor & Destructor Documentation

◆ AbstractPlot()

AbstractPlot::AbstractPlot ( PlotType _type)

◆ ~AbstractPlot()

AbstractPlot::~AbstractPlot ( )
virtual

Member Function Documentation

◆ Clear()

virtual void AbstractPlot::Clear ( void )
pure virtual

◆ GetAxis()

AbstractPlotAxis * AbstractPlot::GetAxis ( AbstractPlotAxis::AxisID _id)

◆ plotTypeFromString()

AbstractPlot::PlotType AbstractPlot::plotTypeFromString ( const std::string & _string,
bool & _isComplex )
static

◆ plotTypeString()

std::string AbstractPlot::plotTypeString ( PlotType _type)
static

◆ RefreshWholePlot()

virtual void AbstractPlot::RefreshWholePlot ( void )
pure virtual

◆ RepaintAxis()

void AbstractPlot::RepaintAxis ( AbstractPlotAxis::AxisID _axis)

◆ RepaintGrid()

virtual void AbstractPlot::RepaintGrid ( void )
pure virtual

◆ RepaintLegend()

virtual void AbstractPlot::RepaintLegend ( void )
pure virtual

◆ SetAxis()

void AbstractPlot::SetAxis ( AbstractPlotAxis * _axisXBottom,
AbstractPlotAxis * _axisXTop,
AbstractPlotAxis * _axisYLeft,
AbstractPlotAxis * _axisYRight )

◆ SetAxisAutoScale()

void AbstractPlot::SetAxisAutoScale ( AbstractPlotAxis::AxisID _axis,
bool _isAutoScale )

◆ SetAxisLogScale()

void AbstractPlot::SetAxisLogScale ( AbstractPlotAxis::AxisID _axis,
bool _isLogScale )

◆ SetAxisMax()

void AbstractPlot::SetAxisMax ( AbstractPlotAxis::AxisID _axis,
double _maxValue )

◆ SetAxisMin()

void AbstractPlot::SetAxisMin ( AbstractPlotAxis::AxisID _axis,
double _minValue )

◆ SetAxisTitle()

void AbstractPlot::SetAxisTitle ( AbstractPlotAxis::AxisID _axis,
const QString & _title )

◆ SetGridColor()

void AbstractPlot::SetGridColor ( const QColor & _color,
bool _repaint = true )

◆ SetGridLineWidth()

void AbstractPlot::SetGridLineWidth ( double _width,
bool _repaint = true )

◆ SetGridVisible()

void AbstractPlot::SetGridVisible ( bool _isVisible,
bool _repaint = true )

◆ SetLegendVisible()

void AbstractPlot::SetLegendVisible ( bool _isVisible = true,
bool _repaint = true )

◆ Type()

PlotType AbstractPlot::Type ( void ) const
inline

Member Data Documentation

◆ m_axisXBottom

AbstractPlotAxis* AbstractPlot::m_axisXBottom
protected

◆ m_axisXTop

AbstractPlotAxis* AbstractPlot::m_axisXTop
protected

◆ m_axisYLeft

AbstractPlotAxis* AbstractPlot::m_axisYLeft
protected

◆ m_axisYRight

AbstractPlotAxis* AbstractPlot::m_axisYRight
protected

◆ m_config

PlotConfiguration AbstractPlot::m_config
protected

◆ m_type

PlotType AbstractPlot::m_type
protected

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