Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( QWidget parent)

Constructor

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

Plot2d_Plot2d::~Plot2d_Plot2d ( )
virtual

Member Function Documentation

void Plot2d_Plot2d::applyTicks ( )
void Plot2d_Plot2d::clearSeparationLineList ( )

References mySeparationLineList.

void Plot2d_Plot2d::createAxisScaleDraw ( )

References myScaleDraw.

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.

void Plot2d_Plot2d::createSeparationLine ( double  Xpos)

References mySeparationLineList.

void Plot2d_Plot2d::defaultPicker ( )

References myPlotZoomer.

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

Get legend

int Plot2d_Plot2d::getLegendSymbolType ( )

References myLegendSymbolType.

Plot2d_QwtPlotPicker* Plot2d_Plot2d::getPicker ( )
inline

References myPicker.

Plot2d_AxisScaleDraw* Plot2d_Plot2d::getScaleDraw ( )
inline

References myScaleDraw.

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

References mySeparationLineList.

QwtPlotGrid * Plot2d_Plot2d::grid ( ) const

References myGrid.

QSize Plot2d_Plot2d::minimumSizeHint ( ) const

return minimum size for qwt plot

void Plot2d_Plot2d::replot ( )

Recalculates and redraws Plot 2d view

References xBottom, xTop, yLeft, and yRight.

void Plot2d_Plot2d::setLegendSymbolType ( const int  type)

References myLegendSymbolType.

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

axis scale engine - linear or log10

void Plot2d_Plot2d::setPicker ( Plot2d_QwtPlotPicker picker)

Set the point picker associated with a graphic view

References myPicker.

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

References myPlotZoomer.

QSize Plot2d_Plot2d::sizeHint ( ) const
Returns
the recommended size for the widget
void Plot2d_Plot2d::unactivAxisScaleDraw ( int  numcall)
void Plot2d_Plot2d::updateYAxisIdentifiers ( )
virtual

Updates identifiers of Y axis type in the legend.

References yLeft, and yRight.

QwtPlotZoomer * Plot2d_Plot2d::zoomer ( ) const

References myPlotZoomer.

Member Data Documentation

QList<QColor> Plot2d_Plot2d::myColors
protected
QwtPlotGrid* Plot2d_Plot2d::myGrid
protected
int Plot2d_Plot2d::myLegendSymbolType
private
Plot2d_QwtPlotPicker* Plot2d_Plot2d::myPicker
protected
QwtPlotZoomer* Plot2d_Plot2d::myPlotZoomer
protected
Plot2d_AxisScaleDraw* Plot2d_Plot2d::myScaleDraw
protected
QList<QwtPlotMarker*> Plot2d_Plot2d::mySeparationLineList
private

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