te::qt::widgets::ChartDisplayWidget Class Reference

A wdiget used to display a chart. More...

#include <ChartDisplayWidget.h>

Inheritance diagram for te::qt::widgets::ChartDisplayWidget:

Signals

void selected (te::da::ObjectIdSet *, const bool &)
 Emmit when objects were selected. More...
 

Public Member Functions

 ChartDisplayWidget (QwtPlotSeriesItem *chart, int type, te::qt::widgets::ChartDisplay *display, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
QwtPlotSeriesItem * getChart ()
 Returns a pointer to the chart being displayed. More...
 
te::qt::widgets::ChartDisplaygetDisplay ()
 Returns a pointer to the display being used. More...
 
int getType ()
 
void highlightOIds (const te::da::ObjectIdSet *oids, te::da::DataSetType *dataType)
 Highlights the objects identified by oids. More...
 
void setChart (QwtPlotSeriesItem *newChart)
 It sets the chart that will be displayed More...
 
void setDisplay (te::qt::widgets::ChartDisplay *newDisplay)
 It sets the display that will be used More...
 
void setSelectionColor (QColor selColor)
 color used to hgihlight selected objects on this display. More...
 
 ~ChartDisplayWidget ()
 Destructor. More...
 

Protected Slots

void onSettingsToolButtonnClicked ()
 Called when the user clicks on the Settings tool button. More...
 
void selectionChanged (te::da::ObjectIdSet *oids, const bool &add)
 Called when objects were selected. More...
 

Private Attributes

QwtPlotSeriesItem * m_chart
 The chart that will be plotted by this widget. More...
 
ChartDisplaym_display
 The display that will be used to plot the chart. More...
 
int m_type
 The type of the chart that will be plotted by this widget. More...
 
std::auto_ptr< Ui::ChartDisplayWidgetForm > m_ui
 The widget form. More...
 

Detailed Description

A wdiget used to display a chart.

Definition at line 62 of file ChartDisplayWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::ChartDisplayWidget::ChartDisplayWidget ( QwtPlotSeriesItem *  chart,
int  type,
te::qt::widgets::ChartDisplay display,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
chartThe chart that will be displayed by this widget.
displayThe display that will be used by this widget to display the chart
parentthis widget's parent
fWindow flags used to configure this widget
te::qt::widgets::ChartDisplayWidget::~ChartDisplayWidget ( )

Destructor.

Member Function Documentation

QwtPlotSeriesItem* te::qt::widgets::ChartDisplayWidget::getChart ( )

Returns a pointer to the chart being displayed.

Returns
A QwtPlotSeriesItem type pointer to the chart being used.
Note
The caller will not take ownership of the returned pointer.
te::qt::widgets::ChartDisplay* te::qt::widgets::ChartDisplayWidget::getDisplay ( )

Returns a pointer to the display being used.

Returns
A ChartDisplay type pointer to the display being used.
Note
The caller will not take ownership of the returned pointer.
int te::qt::widgets::ChartDisplayWidget::getType ( )
void te::qt::widgets::ChartDisplayWidget::highlightOIds ( const te::da::ObjectIdSet oids,
te::da::DataSetType dataType 
)

Highlights the objects identified by oids.

Parameters
oidsThe identifiers of plotitems to be highlighted.
void te::qt::widgets::ChartDisplayWidget::onSettingsToolButtonnClicked ( )
protectedslot

Called when the user clicks on the Settings tool button.

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

Emmit when objects were selected.

void te::qt::widgets::ChartDisplayWidget::selectionChanged ( te::da::ObjectIdSet oids,
const bool &  add 
)
protectedslot

Called when objects were selected.

void te::qt::widgets::ChartDisplayWidget::setChart ( QwtPlotSeriesItem *  newChart)

It sets the chart that will be displayed

Parameters
newChartThe new chart.
Note
It will take ownership of the given pointer
void te::qt::widgets::ChartDisplayWidget::setDisplay ( te::qt::widgets::ChartDisplay newDisplay)

It sets the display that will be used

Parameters
newDisplayThe new display.
Note
It will take ownership of the given pointer
void te::qt::widgets::ChartDisplayWidget::setSelectionColor ( QColor  selColor)

color used to hgihlight selected objects on this display.

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

Member Data Documentation

QwtPlotSeriesItem* te::qt::widgets::ChartDisplayWidget::m_chart
private

The chart that will be plotted by this widget.

Definition at line 156 of file ChartDisplayWidget.h.

ChartDisplay* te::qt::widgets::ChartDisplayWidget::m_display
private

The display that will be used to plot the chart.

Definition at line 158 of file ChartDisplayWidget.h.

int te::qt::widgets::ChartDisplayWidget::m_type
private

The type of the chart that will be plotted by this widget.

Definition at line 157 of file ChartDisplayWidget.h.

std::auto_ptr<Ui::ChartDisplayWidgetForm> te::qt::widgets::ChartDisplayWidget::m_ui
private

The widget form.

Definition at line 155 of file ChartDisplayWidget.h.


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