This class register the action into Cloud Detection Plugin. More...
#include <CloudDetectionAction.h>
Signals | |
| void | triggered (te::qt::af::evt::Event *e) |
Public Member Functions | |
| CloudDetectionAction (QMenu *menu, QMenu *popupMenu) | |
| QAction * | getAction () |
| virtual | ~CloudDetectionAction () |
Protected Slots | |
| void | addLayer (te::map::AbstractLayerPtr outputLayer) |
| void | closeTool () |
| virtual void | onActionActivated (bool checked) |
| virtual void | onPopUpActionActivated (bool checked) |
| Slot function used when a action was selected from layer pop up. More... | |
Protected Member Functions | |
| void | addNewLayer (te::map::AbstractLayerPtr layer) |
| Add a new layer into layer explorer widget. More... | |
| void | createAction (std::string name, std::string pixmap="") |
| Create and set the actions parameters. More... | |
| void | createPopUpAction (std::string name, std::string pixmap="") |
| Create and set the actions parameters. More... | |
| te::map::AbstractLayerPtr | getCurrentLayer () |
| Get the selected layer from layer explorer in app. More... | |
| std::list< te::map::AbstractLayerPtr > | getLayers () |
| Get the list of layers from app. More... | |
Protected Attributes | |
| QAction * | m_action |
| Action used to call the process. More... | |
| std::unique_ptr< te::qt::widgets::CloudDetectionDialog > | m_dlg |
| QMenu * | m_menu |
| Parent Menu. More... | |
| QAction * | m_popupAction |
| Action used to call the process from pop up layer. More... | |
| QMenu * | m_popupMenu |
| Parent popMenu. More... | |
This class register the action into Cloud Detection Plugin.
Definition at line 64 of file CloudDetectionAction.h.
| te::qt::plugins::rp::CloudDetectionAction::CloudDetectionAction | ( | QMenu * | menu, |
| QMenu * | popupMenu | ||
| ) |
Definition at line 41 of file CloudDetectionAction.cpp.
References te::qt::plugins::rp::AbstractAction::createAction(), te::qt::plugins::rp::AbstractAction::m_action, and ~CloudDetectionAction().
|
virtualdefault |
Referenced by CloudDetectionAction().
|
protectedslot |
Definition at line 84 of file CloudDetectionAction.cpp.
References te::qt::plugins::rp::AbstractAction::triggered().
Referenced by onActionActivated().
|
protected |
Add a new layer into layer explorer widget.
| layer | The layer auto pointer |
Definition at line 91 of file CloudDetectionAction.cpp.
References te::qt::plugins::rp::AbstractAction::triggered().
|
protectedslot |
Definition at line 125 of file CloudDetectionAction.cpp.
References m_dlg.
Referenced by onActionActivated().
|
protectedinherited |
Create and set the actions parameters.
| name | The action name. |
| pixmap | The action pixmap name. |
Definition at line 53 of file rp/AbstractAction.cpp.
References te::qt::plugins::rp::AbstractAction::m_action, te::qt::plugins::rp::AbstractAction::m_menu, te::qt::plugins::rp::AbstractAction::onActionActivated(), and te::qt::plugins::rp::AbstractAction::triggered().
Referenced by te::qt::plugins::rp::ArithmeticOpAction::ArithmeticOpAction(), te::qt::plugins::rp::ClassifierAction::ClassifierAction(), te::qt::plugins::rp::ClippingAction::ClippingAction(), CloudDetectionAction(), te::qt::plugins::rp::ColorTransformAction::ColorTransformAction(), te::qt::plugins::rp::ComposeBandsAction::ComposeBandsAction(), te::qt::plugins::rp::ContrastAction::ContrastAction(), te::qt::plugins::rp::FilterAction::FilterAction(), te::qt::plugins::rp::FusionAction::FusionAction(), te::qt::plugins::rp::MixtureModelAction::MixtureModelAction(), te::qt::plugins::rp::MosaicAction::MosaicAction(), te::qt::plugins::rp::PCAAction::PCAAction(), te::qt::plugins::rp::PostClassificationAction::PostClassificationAction(), te::qt::plugins::rp::RasterizationAction::RasterizationAction(), te::qt::plugins::rp::RasterSlicingAction::RasterSlicingAction(), te::qt::plugins::rp::RegisterAction::RegisterAction(), te::qt::plugins::rp::SegmenterAction::SegmenterAction(), and te::qt::plugins::rp::VectorizationAction::VectorizationAction().
|
protectedinherited |
Create and set the actions parameters.
| name | The action name. |
| pixmap | The action pixmap name. |
Definition at line 69 of file rp/AbstractAction.cpp.
References te::qt::plugins::rp::AbstractAction::m_popupAction, te::qt::plugins::rp::AbstractAction::m_popupMenu, te::qt::plugins::rp::AbstractAction::onPopUpActionActivated(), and te::qt::plugins::rp::AbstractAction::triggered().
Referenced by te::qt::plugins::rp::ClippingAction::ClippingAction(), and te::qt::plugins::rp::PCAAction::PCAAction().
|
inlineinherited |
Definition at line 145 of file rp/AbstractAction.h.
Referenced by te::qt::plugins::rp::Plugin::registerActions().
|
protectedinherited |
Get the selected layer from layer explorer in app.
Definition at line 92 of file rp/AbstractAction.cpp.
References te::qt::af::evt::GetLayerSelected::m_layer, and te::qt::plugins::rp::AbstractAction::triggered().
Referenced by te::qt::plugins::rp::FilterAction::onActionActivated(), te::qt::plugins::rp::ContrastAction::onActionActivated(), onActionActivated(), te::qt::plugins::rp::SegmenterAction::onPopUpActionActivated(), te::qt::plugins::rp::RasterSlicingAction::onPopUpActionActivated(), te::qt::plugins::rp::ContrastAction::onPopUpActionActivated(), te::qt::plugins::rp::MixtureModelAction::onPopUpActionActivated(), te::qt::plugins::rp::PCAAction::onPopUpActionActivated(), and te::qt::plugins::rp::ClippingAction::onPopUpActionActivated().
|
protected |
Get the list of layers from app.
Definition at line 98 of file CloudDetectionAction.cpp.
References te::qt::af::evt::GetLayerSelected::m_layer, te::qt::af::evt::GetAvailableLayers::m_layers, and te::qt::plugins::rp::AbstractAction::triggered().
Referenced by onActionActivated().
|
protectedvirtualslot |
Definition at line 49 of file CloudDetectionAction.cpp.
References addLayer(), closeTool(), te::qt::plugins::rp::AbstractAction::getCurrentLayer(), te::common::Singleton< ApplicationController >::getInstance(), getLayers(), m_dlg, and te::map::VISIBLE.
|
protectedvirtualslotinherited |
Slot function used when a action was selected from layer pop up.
| checked | Flag used in case a toggle action. |
Definition at line 48 of file rp/AbstractAction.cpp.
Referenced by te::qt::plugins::rp::AbstractAction::createPopUpAction().
|
signalinherited |
Referenced by addLayer(), addNewLayer(), te::qt::plugins::rp::AbstractAction::addNewLayer(), te::qt::plugins::rp::AbstractAction::createAction(), te::qt::plugins::rp::AbstractAction::createPopUpAction(), te::qt::plugins::rp::AbstractAction::getCurrentLayer(), getLayers(), and te::qt::plugins::rp::AbstractAction::getLayers().
|
protectedinherited |
Action used to call the process.
Definition at line 154 of file rp/AbstractAction.h.
Referenced by te::qt::plugins::rp::ArithmeticOpAction::ArithmeticOpAction(), te::qt::plugins::rp::ClassifierAction::ClassifierAction(), te::qt::plugins::rp::ClippingAction::ClippingAction(), CloudDetectionAction(), te::qt::plugins::rp::ColorTransformAction::ColorTransformAction(), te::qt::plugins::rp::ComposeBandsAction::ComposeBandsAction(), te::qt::plugins::rp::ContrastAction::ContrastAction(), te::qt::plugins::rp::AbstractAction::createAction(), te::qt::plugins::rp::FilterAction::FilterAction(), te::qt::plugins::rp::FusionAction::FusionAction(), te::qt::plugins::rp::MixtureModelAction::MixtureModelAction(), te::qt::plugins::rp::MosaicAction::MosaicAction(), te::qt::plugins::rp::PCAAction::PCAAction(), te::qt::plugins::rp::PostClassificationAction::PostClassificationAction(), te::qt::plugins::rp::RasterizationAction::RasterizationAction(), te::qt::plugins::rp::RasterSlicingAction::RasterSlicingAction(), te::qt::plugins::rp::RegisterAction::RegisterAction(), te::qt::plugins::rp::SegmenterAction::SegmenterAction(), and te::qt::plugins::rp::VectorizationAction::VectorizationAction().
|
protected |
Definition at line 102 of file CloudDetectionAction.h.
Referenced by closeTool(), and onActionActivated().
|
protectedinherited |
Parent Menu.
Definition at line 152 of file rp/AbstractAction.h.
Referenced by te::qt::plugins::rp::AbstractAction::createAction().
|
protectedinherited |
Action used to call the process from pop up layer.
Definition at line 155 of file rp/AbstractAction.h.
Referenced by te::qt::plugins::rp::AbstractAction::createPopUpAction().
|
protectedinherited |
Parent popMenu.
Definition at line 153 of file rp/AbstractAction.h.
Referenced by te::qt::plugins::rp::AbstractAction::createPopUpAction().