Version: 9.12.0
Plot2d_Plot2d Class Reference

#include <Plot2d_ViewFrame.h>

Inheritance diagram for Plot2d_Plot2d:
Inheritance graph

Public Member Functions

 Plot2d_Plot2d (QWidget *)
 
virtual ~Plot2d_Plot2d ()
 
void setLogScale (int, bool)
 
void replot ()
 
QwtAbstractLegend * getLegend ()
 
QSize sizeHint () const
 
QSize minimumSizeHint () const
 
void defaultPicker ()
 
void setPickerMousePattern (int, int=Qt::NoButton)
 
void setPicker (Plot2d_QwtPlotPicker *picker)
 
Plot2d_QwtPlotPickergetPicker ()
 
Plot2d_AxisScaleDrawgetScaleDraw ()
 
QList< QwtPlotMarker * > getSeparationLineList ()
 
void clearSeparationLineList ()
 
void setLegendSymbolType (const int)
 
int getLegendSymbolType ()
 
QwtPlotMarker * createMarkerAndTooltip (QwtSymbol *symbol, double X, double Y, QString &tooltip, Plot2d_QwtPlotPicker *picker)
 
QwtPlotGrid * grid () const
 
QwtPlotZoomerzoomer () const
 
virtual void updateYAxisIdentifiers ()
 
void createAxisScaleDraw ()
 
void applyTicks ()
 
void unactivAxisScaleDraw (int numcall)
 
void displayXTicksAndLabels (double XLeftmargin, double XRightMargin, const QList< QPair< QString, QMap< double, QString > > > &devicesPosLabelTicks)
 
void createSeparationLine (double Xpos)
 

Protected Attributes

QwtPlotGrid * myGrid
 
QList< QColor > myColors
 
QwtPlotZoomermyPlotZoomer
 
Plot2d_AxisScaleDrawmyScaleDraw
 
Plot2d_QwtPlotPickermyPicker
 

Private Attributes

QList< QwtPlotMarker * > mySeparationLineList
 
int myLegendSymbolType
 

Constructor & Destructor Documentation

◆ Plot2d_Plot2d()

Plot2d_Plot2d::Plot2d_Plot2d ( QWidget parent)

Constructor

References defaultPicker(), myGrid, myPlotZoomer, myScaleDraw, xBottom, yLeft, and yRight.

◆ ~Plot2d_Plot2d()

Plot2d_Plot2d::~Plot2d_Plot2d ( )
virtual

Member Function Documentation

◆ applyTicks()

void Plot2d_Plot2d::applyTicks ( )

◆ clearSeparationLineList()

void Plot2d_Plot2d::clearSeparationLineList ( )

References mySeparationLineList.

◆ createAxisScaleDraw()

void Plot2d_Plot2d::createAxisScaleDraw ( )

References myScaleDraw.

◆ createMarkerAndTooltip()

QwtPlotMarker * Plot2d_Plot2d::createMarkerAndTooltip ( QwtSymbol *  symbol,
double  X,
double  Y,
QString &  tooltip,
Plot2d_QwtPlotPicker picker 
)

Create marker and tooltip associed with a point

References Plot2d_QwtPlotPicker::pMarkers, and Plot2d_QwtPlotPicker::pMarkersToolTip.

◆ createSeparationLine()

void Plot2d_Plot2d::createSeparationLine ( double  Xpos)

References mySeparationLineList.

◆ defaultPicker()

void Plot2d_Plot2d::defaultPicker ( )

References myPlotZoomer.

◆ displayXTicksAndLabels()

void Plot2d_Plot2d::displayXTicksAndLabels ( double  XLeftmargin,
double  XRightMargin,
const QList< QPair< QString, QMap< double, QString > > > &  devicesPosLabelTicks 
)

◆ getLegend()

QwtAbstractLegend * Plot2d_Plot2d::getLegend ( )

Get legend

◆ getLegendSymbolType()

int Plot2d_Plot2d::getLegendSymbolType ( )

References myLegendSymbolType.

◆ getPicker()

Plot2d_QwtPlotPicker* Plot2d_Plot2d::getPicker ( )
inline

References myPicker.

◆ getScaleDraw()

Plot2d_AxisScaleDraw* Plot2d_Plot2d::getScaleDraw ( )
inline

References myScaleDraw.

◆ getSeparationLineList()

QList<QwtPlotMarker*> Plot2d_Plot2d::getSeparationLineList ( )
inline

References mySeparationLineList.

◆ grid()

QwtPlotGrid * Plot2d_Plot2d::grid ( ) const

References myGrid.

◆ minimumSizeHint()

QSize Plot2d_Plot2d::minimumSizeHint ( ) const

return minimum size for qwt plot

◆ replot()

void Plot2d_Plot2d::replot ( )

Recalculates and redraws Plot 2d view

References xBottom, xTop, yLeft, and yRight.

◆ setLegendSymbolType()

void Plot2d_Plot2d::setLegendSymbolType ( const int  type)

References myLegendSymbolType.

◆ setLogScale()

void Plot2d_Plot2d::setLogScale ( int  axisId,
bool  log10 
)

\set axis scale engine - linear or log10

◆ setPicker()

void Plot2d_Plot2d::setPicker ( Plot2d_QwtPlotPicker picker)

Set the point picker associated with a graphic view

References myPicker.

◆ setPickerMousePattern()

void Plot2d_Plot2d::setPickerMousePattern ( int  button,
int  state = Qt::NoButton 
)

References myPlotZoomer.

◆ sizeHint()

QSize Plot2d_Plot2d::sizeHint ( ) const
Returns
the recommended size for the widget

◆ unactivAxisScaleDraw()

void Plot2d_Plot2d::unactivAxisScaleDraw ( int  numcall)

◆ updateYAxisIdentifiers()

void Plot2d_Plot2d::updateYAxisIdentifiers ( )
virtual

Updates identifiers of Y axis type in the legend.

References yLeft, and yRight.

◆ zoomer()

QwtPlotZoomer * Plot2d_Plot2d::zoomer ( ) const

References myPlotZoomer.

Member Data Documentation

◆ myColors

QList<QColor> Plot2d_Plot2d::myColors
protected

◆ myGrid

QwtPlotGrid* Plot2d_Plot2d::myGrid
protected

◆ myLegendSymbolType

int Plot2d_Plot2d::myLegendSymbolType
private

◆ myPicker

Plot2d_QwtPlotPicker* Plot2d_Plot2d::myPicker
protected

◆ myPlotZoomer

QwtPlotZoomer* Plot2d_Plot2d::myPlotZoomer
protected

◆ myScaleDraw

Plot2d_AxisScaleDraw* Plot2d_Plot2d::myScaleDraw
protected

◆ mySeparationLineList

QList<QwtPlotMarker*> Plot2d_Plot2d::mySeparationLineList
private

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