A dock widget for ChartDisplayWidget objects. More...
#include <ChartDisplayDockWidget.h>
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::AbstractLayer * | getLayer () 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 | |
| ApplicationController * | m_app |
| te::qt::widgets::ChartDisplayWidget * | m_displayWidget |
| The widget containing the display. More... | |
| te::map::AbstractLayer * | m_layer |
| Layer being visualized. More... | |
A dock widget for ChartDisplayWidget objects.
Definition at line 66 of file ChartDisplayDockWidget.h.
| te::qt::af::ChartDisplayDockWidget::ChartDisplayDockWidget | ( | te::qt::widgets::ChartDisplayWidget * | displayWidget, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
| display | The widget's chart display. |
| parent | The widget's parent. |
Definition at line 52 of file ChartDisplayDockWidget.cpp.
References m_displayWidget, and selectionChanged().
| te::qt::af::ChartDisplayDockWidget::~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.
Definition at line 98 of file ChartDisplayDockWidget.cpp.
References m_layer.
|
protectedslot |
Used to capture events sent by the application framework.
Definition at line 103 of file ChartDisplayDockWidget.cpp.
References te::map::AbstractLayer::getId(), te::qt::widgets::ChartDisplayWidget::highlightOIds(), te::qt::af::evt::LAYER_REMOVED, te::qt::af::evt::LAYER_SELECTED_OBJECTS_CHANGED, m_displayWidget, te::qt::af::evt::Event::m_id, m_layer, te::qt::af::evt::LayerSelectedObjectsChanged::m_layer, and te::qt::af::evt::LayerRemoved::m_layers.
|
protectedslot |
Used to handle a selection change.
| oids | The selected object ids. |
| add | True to add to previous selection, false to discard older selection. |
Definition at line 133 of file ChartDisplayDockWidget.cpp.
References te::da::ObjectIdSet::add(), te::da::ObjectIdSet::addProperty(), te::da::ObjectIdSet::begin(), te::da::ObjectIdSet::clear(), te::map::AbstractLayer::clearSelected(), te::da::ObjectIdSet::clone(), computeDataSetEnvelope(), te::da::ObjectIdSet::contains(), te::map::AbstractLayer::deselect(), ds, te::da::ObjectIdSet::end(), te::dt::GEOMETRY_TYPE, te::map::AbstractLayer::getData(), te::da::GetOIDPropertyPos(), te::map::AbstractLayer::getSchema(), te::map::AbstractLayer::getSelected(), m_layer, te::da::ObjectIdSet::remove(), te::map::AbstractLayer::select(), te::da::ObjectIdSet::size(), and triggered().
Referenced by ChartDisplayDockWidget().
| 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.
| app | The 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::setLayer | ( | te::map::AbstractLayer * | layer | ) |
Sets the layer to be showed on view. This DOES NOT takes the ownership of layer.
| layer | The layer to be showed. |
Definition at line 71 of file ChartDisplayDockWidget.cpp.
References te::qt::widgets::ChartConfigurer::config(), te::map::AbstractLayer::getSchema(), te::map::AbstractLayer::getSelected(), te::map::AbstractLayer::getTitle(), te::qt::widgets::ChartDisplayWidget::highlightOIds(), m_displayWidget, and m_layer.
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.
| selColor | The 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().
|
signal |
Referenced by selectionChanged().
|
protected |
Definition at line 147 of file ChartDisplayDockWidget.h.
Referenced by setAppController().
|
protected |
The widget containing the display.
Definition at line 143 of file ChartDisplayDockWidget.h.
Referenced by ChartDisplayDockWidget(), onApplicationTriggered(), setLayer(), and setSelectionColor().
|
protected |
Layer being visualized.
Definition at line 145 of file ChartDisplayDockWidget.h.
Referenced by getLayer(), onApplicationTriggered(), selectionChanged(), and setLayer().