te::qt::widgets::ChartDisplay Class Reference

A class to represent a chart display. More...

#include <ChartDisplay.h>

Inheritance diagram for te::qt::widgets::ChartDisplay:

Signals

void leftPointSelected (const QPointF &pos)
 Emmit when a clicked with left button was made. More...
 
void rigthPointSelected (const QPointF &pos)
 Emmit when a clicked with rigth button was made. More...
 
void selected (te::da::ObjectIdSet *, const bool &)
 Emmit when objects were selected. More...
 

Public Member Functions

void adjustDisplay ()
 Updates the general display settings according to the ChartStyle. The adjusted properties are: Title; Axis titles (x and Y); Weather to display the grid or not; Background color;. More...
 
 ChartDisplay (QWidget *parent=NULL, QString title="", ChartStyle *style=0)
 Constructor. More...
 
void enableLeftPicker (bool enabled)
 Enables or disables the tool used to execute the selection functions. More...
 
void enableMagnifier (bool enabled)
 Enables or disables the tool used to execute zoom functions. More...
 
void enableMultiSelection (bool enabled)
 Enables or disables the tool used to execute the multi selection functions. More...
 
void enablePan (bool enabled)
 Enables or disables the tool used to execute pan functions. More...
 
void enablePickers (bool enabled)
 Enables or disables the tools used to execute selection functions. More...
 
void enablePointPickers (bool enabled)
 Enables or disables the pickers used tbroadcast point selection signals. More...
 
void enableTools (bool enabled)
 Enables or disables all the tools used to execute certain mouse actions. Such as selection, pan and zoomn;. More...
 
te::qt::widgets::ChartStylegetStyle ()
 Returns a pointer to the display's style. More...
 
void highlightOIds (const te::da::ObjectIdSet *oids, te::da::DataSetType *dataType)
 Highlights the objects identified by oids. More...
 
void setSelectionColor (QColor selColor)
 color used to hgihlight selected objects on this display. More...
 
void setStyle (te::qt::widgets::ChartStyle *newStyle)
 It sets the display's style. More...
 
 ~ChartDisplay ()
 Destructor. More...
 

Protected Slots

void onRectPicked (const QRectF &rect)
 Called when the user selects an area of the canvas. Will highlight the data, if possible, depending on the type of chart being displayed (f.e. histogram, scatter, etc). More...
 

Private Attributes

ChartStylem_chartStyle
 The display's style. More...
 
QwtPlotPicker * m_ctrlPicker
 The display's control button picker. More...
 
QwtPlotGrid * m_grid
 The display's grid. More...
 
QwtPlotPicker * m_leftPicker
 The display's left button picker. More...
 
QwtPlotPicker * m_leftPointPicker
 The display's left button picker. More...
 
QwtPlotMagnifier * m_magnifier
 The display's magnifinifier. More...
 
QwtPlotPanner * m_panner
 The display's panner. More...
 
QwtPlotPicker * m_rigthPointPicker
 The display's rigth button picker. More...
 
QwtPlotPicker * m_shiftPicker
 The display's shift button picker. More...
 

Detailed Description

A class to represent a chart display.

Definition at line 65 of file ChartDisplay.h.

Constructor & Destructor Documentation

◆ ChartDisplay()

te::qt::widgets::ChartDisplay::ChartDisplay ( QWidget *  parent = NULL,
QString  title = "",
ChartStyle style = 0 
)

Constructor.

It constructs a ChartDisplay with the given title and style.

Parameters
parentthis widget's parent
titlethis widget's title.
Note
it will take the ownership of the pointer "style". If style is null, the display will be constructed with a default style.

◆ ~ChartDisplay()

te::qt::widgets::ChartDisplay::~ChartDisplay ( )

Destructor.

Member Function Documentation

◆ adjustDisplay()

void te::qt::widgets::ChartDisplay::adjustDisplay ( )

Updates the general display settings according to the ChartStyle. The adjusted properties are: Title; Axis titles (x and Y); Weather to display the grid or not; Background color;.

◆ enableLeftPicker()

void te::qt::widgets::ChartDisplay::enableLeftPicker ( bool  enabled)

Enables or disables the tool used to execute the selection functions.

◆ enableMagnifier()

void te::qt::widgets::ChartDisplay::enableMagnifier ( bool  enabled)

Enables or disables the tool used to execute zoom functions.

◆ enableMultiSelection()

void te::qt::widgets::ChartDisplay::enableMultiSelection ( bool  enabled)

Enables or disables the tool used to execute the multi selection functions.

◆ enablePan()

void te::qt::widgets::ChartDisplay::enablePan ( bool  enabled)

Enables or disables the tool used to execute pan functions.

◆ enablePickers()

void te::qt::widgets::ChartDisplay::enablePickers ( bool  enabled)

Enables or disables the tools used to execute selection functions.

◆ enablePointPickers()

void te::qt::widgets::ChartDisplay::enablePointPickers ( bool  enabled)

Enables or disables the pickers used tbroadcast point selection signals.

◆ enableTools()

void te::qt::widgets::ChartDisplay::enableTools ( bool  enabled)

Enables or disables all the tools used to execute certain mouse actions. Such as selection, pan and zoomn;.

◆ getStyle()

te::qt::widgets::ChartStyle* te::qt::widgets::ChartDisplay::getStyle ( )

Returns a pointer to the display's style.

Returns
A ChartStyle type pointer to the display's style.
Note
The caller will not take ownership of the returned pointer.

◆ highlightOIds()

void te::qt::widgets::ChartDisplay::highlightOIds ( const te::da::ObjectIdSet oids,
te::da::DataSetType dataType 
)

Highlights the objects identified by oids.

Parameters
oidsThe identifiers of plotitems to be highlighted.

◆ leftPointSelected

void te::qt::widgets::ChartDisplay::leftPointSelected ( const QPointF &  pos)
signal

Emmit when a clicked with left button was made.

◆ onRectPicked

void te::qt::widgets::ChartDisplay::onRectPicked ( const QRectF &  rect)
protectedslot

Called when the user selects an area of the canvas. Will highlight the data, if possible, depending on the type of chart being displayed (f.e. histogram, scatter, etc).

◆ rigthPointSelected

void te::qt::widgets::ChartDisplay::rigthPointSelected ( const QPointF &  pos)
signal

Emmit when a clicked with rigth button was made.

◆ selected

void te::qt::widgets::ChartDisplay::selected ( te::da::ObjectIdSet ,
const bool &   
)
signal

Emmit when objects were selected.

◆ setSelectionColor()

void te::qt::widgets::ChartDisplay::setSelectionColor ( QColor  selColor)

color used to hgihlight selected objects on this display.

Parameters
selColorThe color used to hgihlight selected objects on this display.

◆ setStyle()

void te::qt::widgets::ChartDisplay::setStyle ( te::qt::widgets::ChartStyle newStyle)

It sets the display's style.

Parameters
newStyleThe new style.
Note
It will take ownership of the given pointer

Member Data Documentation

◆ m_chartStyle

ChartStyle* te::qt::widgets::ChartDisplay::m_chartStyle
private

The display's style.

Definition at line 193 of file ChartDisplay.h.

◆ m_ctrlPicker

QwtPlotPicker* te::qt::widgets::ChartDisplay::m_ctrlPicker
private

The display's control button picker.

Definition at line 200 of file ChartDisplay.h.

◆ m_grid

QwtPlotGrid* te::qt::widgets::ChartDisplay::m_grid
private

The display's grid.

Definition at line 194 of file ChartDisplay.h.

◆ m_leftPicker

QwtPlotPicker* te::qt::widgets::ChartDisplay::m_leftPicker
private

The display's left button picker.

Definition at line 196 of file ChartDisplay.h.

◆ m_leftPointPicker

QwtPlotPicker* te::qt::widgets::ChartDisplay::m_leftPointPicker
private

The display's left button picker.

Definition at line 197 of file ChartDisplay.h.

◆ m_magnifier

QwtPlotMagnifier* te::qt::widgets::ChartDisplay::m_magnifier
private

The display's magnifinifier.

Definition at line 199 of file ChartDisplay.h.

◆ m_panner

QwtPlotPanner* te::qt::widgets::ChartDisplay::m_panner
private

The display's panner.

Definition at line 195 of file ChartDisplay.h.

◆ m_rigthPointPicker

QwtPlotPicker* te::qt::widgets::ChartDisplay::m_rigthPointPicker
private

The display's rigth button picker.

Definition at line 198 of file ChartDisplay.h.

◆ m_shiftPicker

QwtPlotPicker* te::qt::widgets::ChartDisplay::m_shiftPicker
private

The display's shift button picker.

Definition at line 201 of file ChartDisplay.h.


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