te::qt::af::ChartDisplayDockWidget Class Reference

A dock widget for ChartDisplayWidget objects. More...

#include <ChartDisplayDockWidget.h>

Inheritance diagram for te::qt::af::ChartDisplayDockWidget:
QDockWidget

Signals

void closed (te::qt::af::ChartDisplayDockWidget *)
 Emitted before this widget was closed. More...
 
void triggered (te::qt::af::evt::Event *e)
 

Public Member Functions

 ChartDisplayDockWidget (te::qt::widgets::ChartDisplayWidget *displayWidget, QWidget *parent=0)
 Constructor. More...
 
te::map::AbstractLayergetLayer () const
 Returns the layer being used. More...
 
void setAppController (ApplicationController *app)
 Sets the app controller to emit signal to app. This DOES NOT takes the ownership of app controller. More...
 
void setLayer (te::map::AbstractLayer *layer)
 Sets the layer to be showed on view. This DOES NOT takes the ownership of layer. More...
 
void setSelectionColor (QColor selColor)
 color used to hgihlight selected objects on this display. More...
 
 ~ChartDisplayDockWidget ()
 Destructor. More...
 

Protected Slots

void onApplicationTriggered (te::qt::af::evt::Event *evt)
 Used to capture events sent by the application framework. More...
 
void selectionChanged (te::da::ObjectIdSet *oids, const bool &add)
 Used to handle a selection change. More...
 

Protected Attributes

ApplicationControllerm_app
 
te::qt::widgets::ChartDisplayWidgetm_displayWidget
 The widget containing the display. More...
 
te::map::AbstractLayerm_layer
 Layer being visualized. More...
 

Detailed Description

A dock widget for ChartDisplayWidget objects.

Definition at line 66 of file ChartDisplayDockWidget.h.

Constructor & Destructor Documentation

te::qt::af::ChartDisplayDockWidget::ChartDisplayDockWidget ( te::qt::widgets::ChartDisplayWidget displayWidget,
QWidget parent = 0 
)

Constructor.

Parameters
displayThe widget's chart display.
parentThe widget's parent.

Definition at line 52 of file ChartDisplayDockWidget.cpp.

References m_displayWidget, and selectionChanged().

te::qt::af::ChartDisplayDockWidget::~ChartDisplayDockWidget ( )

Destructor.

Definition at line 66 of file ChartDisplayDockWidget.cpp.

References closed().

Member Function Documentation

void te::qt::af::ChartDisplayDockWidget::closed ( te::qt::af::ChartDisplayDockWidget )
signal

Emitted before this widget was closed.

Referenced by ~ChartDisplayDockWidget().

te::map::AbstractLayer * te::qt::af::ChartDisplayDockWidget::getLayer ( ) const

Returns the layer being used.

Returns
Layer being used.

Definition at line 98 of file ChartDisplayDockWidget.cpp.

References m_layer.

void te::qt::af::ChartDisplayDockWidget::selectionChanged ( te::da::ObjectIdSet oids,
const bool add 
)
protectedslot
void te::qt::af::ChartDisplayDockWidget::setAppController ( ApplicationController app)

Sets the app controller to emit signal to app. This DOES NOT takes the ownership of app controller.

Parameters
appThe app controller instance from application.

Definition at line 88 of file ChartDisplayDockWidget.cpp.

References m_app.

Referenced by te::qt::af::BaseApplication::onChartDisplayCreated(), TerraView::onLayerHistogramTriggered(), and TerraView::onLayerScatterTriggered().

void te::qt::af::ChartDisplayDockWidget::setSelectionColor ( QColor  selColor)

color used to hgihlight selected objects on this display.

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

Definition at line 93 of file ChartDisplayDockWidget.cpp.

References m_displayWidget, and te::qt::widgets::ChartDisplayWidget::setSelectionColor().

Referenced by te::qt::af::BaseApplication::onChartDisplayCreated(), TerraView::onLayerHistogramTriggered(), and TerraView::onLayerScatterTriggered().

void te::qt::af::ChartDisplayDockWidget::triggered ( te::qt::af::evt::Event e)
signal

Referenced by selectionChanged().

Member Data Documentation

ApplicationController* te::qt::af::ChartDisplayDockWidget::m_app
protected

Definition at line 147 of file ChartDisplayDockWidget.h.

Referenced by setAppController().

te::qt::widgets::ChartDisplayWidget* te::qt::af::ChartDisplayDockWidget::m_displayWidget
protected

The widget containing the display.

Definition at line 143 of file ChartDisplayDockWidget.h.

Referenced by ChartDisplayDockWidget(), onApplicationTriggered(), setLayer(), and setSelectionColor().

te::map::AbstractLayer* te::qt::af::ChartDisplayDockWidget::m_layer
protected

Layer being visualized.

Definition at line 145 of file ChartDisplayDockWidget.h.

Referenced by getLayer(), onApplicationTriggered(), selectionChanged(), and setLayer().


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