Classes | Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes | List of all members
PJ::PlotWidgetBase Class Reference

#include <plotwidget_base.h>

Inheritance diagram for PJ::PlotWidgetBase:
Inheritance graph
[legend]

Classes

struct  CurveInfo
 

Public Types

enum  CurveStyle {
  LINES, DOTS, LINES_AND_DOTS, STICKS,
  STEPS, STEPSINV
}
 

Public Slots

virtual void removeAllCurves ()
 
void replot ()
 

Signals

void curveListChanged ()
 
void dragEnterSignal (QDragEnterEvent *event)
 
void dragLeaveSignal (QDragLeaveEvent *event)
 
void dropSignal (QDropEvent *event)
 
void legendSizeChanged (int new_size)
 
void viewResized (const QRectF &)
 
void widgetResized ()
 

Public Member Functions

virtual CurveInfoaddCurve (const std::string &name, PlotDataXY &src_data, QColor color=Qt::transparent)
 
void changeCurvesStyle (CurveStyle style)
 
virtual QwtSeriesWrappercreateTimeSeries (const PlotData *data, const QString &transform_ID={})
 
QRectF currentBoundingRect () const
 
CurveInfocurveFromTitle (const QString &title)
 
std::list< CurveInfo > & curveList ()
 
const std::list< CurveInfo > & curveList () const
 
CurveStyle curveStyle () const
 
QColor getColorHint (PlotDataXY *data)
 
std::map< QString, QColor > getCurveColors () const
 
virtual PJ::Range getVisualizationRangeX () const
 
virtual PJ::Range getVisualizationRangeY (PJ::Range range_X) const
 
bool isEmpty () const
 
bool isXYPlot () const
 
bool isZoomEnabled () const
 
bool keepRatioXY () const
 
QRectF maxZoomRect () const
 
 PlotWidgetBase (QWidget *parent)
 
virtual void removeCurve (const QString &title)
 
virtual void resetZoom ()
 
void setAcceptDrops (bool accept)
 
void setKeepRatioXY (bool active)
 
void setLegendAlignment (Qt::Alignment alignment)
 
void setLegendSize (int size)
 
virtual void setModeXY (bool enable)
 
void setZoomEnabled (bool enabled)
 
virtual ~PlotWidgetBase ()
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)
 
PlotLegendlegend ()
 
PlotMagnifiermagnifier ()
 
QwtPlotqwtPlot ()
 
const QwtPlotqwtPlot () const
 
void updateMaximumZoomArea ()
 
PlotZoomerzoomer ()
 

Static Protected Member Functions

static void setStyle (QwtPlotCurve *curve, CurveStyle style)
 

Protected Attributes

QwtPlotPimpl * p = nullptr
 

Private Attributes

bool _keep_aspect_ratio
 
QRectF _max_zoom_rect
 
bool _xy_mode
 

Detailed Description

Definition at line 25 of file plotwidget_base.h.

Member Enumeration Documentation

◆ CurveStyle

Enumerator
LINES 
DOTS 
LINES_AND_DOTS 
STICKS 
STEPS 
STEPSINV 

Definition at line 30 of file plotwidget_base.h.

Constructor & Destructor Documentation

◆ PlotWidgetBase()

PJ::PlotWidgetBase::PlotWidgetBase ( QWidget *  parent)

Definition at line 309 of file plotwidget_base.cpp.

◆ ~PlotWidgetBase()

PJ::PlotWidgetBase::~PlotWidgetBase ( )
virtual

Definition at line 382 of file plotwidget_base.cpp.

Member Function Documentation

◆ addCurve()

PlotWidgetBase::CurveInfo * PJ::PlotWidgetBase::addCurve ( const std::string &  name,
PlotDataXY src_data,
QColor  color = Qt::transparent 
)
virtual

Definition at line 391 of file plotwidget_base.cpp.

◆ changeCurvesStyle()

void PJ::PlotWidgetBase::changeCurvesStyle ( CurveStyle  style)

Definition at line 727 of file plotwidget_base.cpp.

◆ createTimeSeries()

QwtSeriesWrapper * PJ::PlotWidgetBase::createTimeSeries ( const PlotData data,
const QString &  transform_ID = {} 
)
virtual

Reimplemented in PlotWidget.

Definition at line 490 of file plotwidget_base.cpp.

◆ currentBoundingRect()

QRectF PJ::PlotWidgetBase::currentBoundingRect ( ) const

Definition at line 294 of file plotwidget_base.cpp.

◆ curveFromTitle()

PlotWidgetBase::CurveInfo * PJ::PlotWidgetBase::curveFromTitle ( const QString &  title)

Definition at line 737 of file plotwidget_base.cpp.

◆ curveList() [1/2]

std::list<CurveInfo>& PJ::PlotWidgetBase::curveList ( )

◆ curveList() [2/2]

std::list< PlotWidgetBase::CurveInfo > & PJ::PlotWidgetBase::curveList ( ) const

Definition at line 480 of file plotwidget_base.cpp.

◆ curveListChanged

void PJ::PlotWidgetBase::curveListChanged ( )
signal

◆ curveStyle()

PlotWidgetBase::CurveStyle PJ::PlotWidgetBase::curveStyle ( ) const

Definition at line 499 of file plotwidget_base.cpp.

◆ dragEnterSignal

void PJ::PlotWidgetBase::dragEnterSignal ( QDragEnterEvent *  event)
signal

◆ dragLeaveSignal

void PJ::PlotWidgetBase::dragLeaveSignal ( QDragLeaveEvent *  event)
signal

◆ dropSignal

void PJ::PlotWidgetBase::dropSignal ( QDropEvent *  event)
signal

◆ eventFilter()

bool PJ::PlotWidgetBase::eventFilter ( QObject *  obj,
QEvent *  event 
)
protected

Definition at line 527 of file plotwidget_base.cpp.

◆ getColorHint()

QColor PJ::PlotWidgetBase::getColorHint ( PlotDataXY data)

Definition at line 627 of file plotwidget_base.cpp.

◆ getCurveColors()

std::map< QString, QColor > PJ::PlotWidgetBase::getCurveColors ( ) const

Definition at line 687 of file plotwidget_base.cpp.

◆ getVisualizationRangeX()

Range PJ::PlotWidgetBase::getVisualizationRangeX ( ) const
virtual

Definition at line 189 of file plotwidget_base.cpp.

◆ getVisualizationRangeY()

Range PJ::PlotWidgetBase::getVisualizationRangeY ( PJ::Range  range_X) const
virtual

Reimplemented in PlotWidget.

Definition at line 229 of file plotwidget_base.cpp.

◆ isEmpty()

bool PJ::PlotWidgetBase::isEmpty ( ) const

Definition at line 456 of file plotwidget_base.cpp.

◆ isXYPlot()

bool PJ::PlotWidgetBase::isXYPlot ( ) const

Definition at line 289 of file plotwidget_base.cpp.

◆ isZoomEnabled()

bool PJ::PlotWidgetBase::isZoomEnabled ( ) const

Definition at line 775 of file plotwidget_base.cpp.

◆ keepRatioXY()

bool PJ::PlotWidgetBase::keepRatioXY ( ) const

Definition at line 504 of file plotwidget_base.cpp.

◆ legend()

PlotLegend * PJ::PlotWidgetBase::legend ( )
protected

Definition at line 804 of file plotwidget_base.cpp.

◆ legendSizeChanged

void PJ::PlotWidgetBase::legendSizeChanged ( int  new_size)
signal

◆ magnifier()

PlotMagnifier * PJ::PlotWidgetBase::magnifier ( )
protected

Definition at line 813 of file plotwidget_base.cpp.

◆ maxZoomRect()

QRectF PJ::PlotWidgetBase::maxZoomRect ( ) const

Definition at line 299 of file plotwidget_base.cpp.

◆ qwtPlot() [1/2]

const QwtPlot * PJ::PlotWidgetBase::qwtPlot ( )
protected

Definition at line 165 of file plotwidget_base.cpp.

◆ qwtPlot() [2/2]

const QwtPlot* PJ::PlotWidgetBase::qwtPlot ( ) const
protected

◆ removeAllCurves

void PJ::PlotWidgetBase::removeAllCurves ( )
virtualslot

Definition at line 789 of file plotwidget_base.cpp.

◆ removeCurve()

void PJ::PlotWidgetBase::removeCurve ( const QString &  title)
virtual

Reimplemented in PlotWidget.

Definition at line 461 of file plotwidget_base.cpp.

◆ replot

void PJ::PlotWidgetBase::replot ( )
slot

Definition at line 780 of file plotwidget_base.cpp.

◆ resetZoom()

void PJ::PlotWidgetBase::resetZoom ( )
virtual

Definition at line 175 of file plotwidget_base.cpp.

◆ setAcceptDrops()

void PJ::PlotWidgetBase::setAcceptDrops ( bool  accept)

Definition at line 522 of file plotwidget_base.cpp.

◆ setKeepRatioXY()

void PJ::PlotWidgetBase::setKeepRatioXY ( bool  active)

Definition at line 509 of file plotwidget_base.cpp.

◆ setLegendAlignment()

void PJ::PlotWidgetBase::setLegendAlignment ( Qt::Alignment  alignment)

Definition at line 761 of file plotwidget_base.cpp.

◆ setLegendSize()

void PJ::PlotWidgetBase::setLegendSize ( int  size)

Definition at line 753 of file plotwidget_base.cpp.

◆ setModeXY()

void PJ::PlotWidgetBase::setModeXY ( bool  enable)
virtual

Definition at line 304 of file plotwidget_base.cpp.

◆ setStyle()

void PJ::PlotWidgetBase::setStyle ( QwtPlotCurve curve,
CurveStyle  style 
)
staticprotected

Definition at line 698 of file plotwidget_base.cpp.

◆ setZoomEnabled()

void PJ::PlotWidgetBase::setZoomEnabled ( bool  enabled)

Definition at line 766 of file plotwidget_base.cpp.

◆ updateMaximumZoomArea()

void PJ::PlotWidgetBase::updateMaximumZoomArea ( )
protected

Definition at line 818 of file plotwidget_base.cpp.

◆ viewResized

void PJ::PlotWidgetBase::viewResized ( const QRectF &  )
signal

◆ widgetResized

void PJ::PlotWidgetBase::widgetResized ( )
signal

◆ zoomer()

PlotZoomer * PJ::PlotWidgetBase::zoomer ( )
protected

Definition at line 808 of file plotwidget_base.cpp.

Member Data Documentation

◆ _keep_aspect_ratio

bool PJ::PlotWidgetBase::_keep_aspect_ratio
private

Definition at line 145 of file plotwidget_base.h.

◆ _max_zoom_rect

QRectF PJ::PlotWidgetBase::_max_zoom_rect
private

Definition at line 143 of file plotwidget_base.h.

◆ _xy_mode

bool PJ::PlotWidgetBase::_xy_mode
private

Definition at line 141 of file plotwidget_base.h.

◆ p

QwtPlotPimpl* PJ::PlotWidgetBase::p = nullptr
protected

Definition at line 125 of file plotwidget_base.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52