te::qt::plugins::rp::PostClassificationAction Class Reference

This class register the Post Classification action into RP Plugin. More...

#include <PostClassificationAction.h>

Inheritance diagram for te::qt::plugins::rp::PostClassificationAction:
te::qt::plugins::rp::AbstractAction QObject

Signals

void triggered (te::qt::af::evt::Event *e)
 

Public Member Functions

QAction * getAction ()
 
 PostClassificationAction (QMenu *menu, QMenu *popupMenu)
 
virtual ~PostClassificationAction ()
 

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::AbstractLayerPtrgetLayers ()
 Get the list of layers from app. More...
 

Protected Attributes

QAction * m_action
 Action used to call the process. More...
 
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...
 

Private Attributes

std::unique_ptr< te::qt::widgets::PostClassificationDialogFormm_postClassDlg
 

Detailed Description

This class register the Post Classification action into RP Plugin.

Definition at line 48 of file PostClassificationAction.h.

Constructor & Destructor Documentation

te::qt::plugins::rp::PostClassificationAction::PostClassificationAction ( QMenu *  menu,
QMenu *  popupMenu 
)
te::qt::plugins::rp::PostClassificationAction::~PostClassificationAction ( )
virtualdefault

Member Function Documentation

void te::qt::plugins::rp::PostClassificationAction::addLayer ( te::map::AbstractLayerPtr  outputLayer)
protectedslot
void te::qt::plugins::rp::AbstractAction::addNewLayer ( te::map::AbstractLayerPtr  layer)
protectedinherited
void te::qt::plugins::rp::PostClassificationAction::closeTool ( )
protectedslot

Definition at line 67 of file PostClassificationAction.cpp.

References m_postClassDlg.

Referenced by onActionActivated().

void te::qt::plugins::rp::AbstractAction::createAction ( std::string  name,
std::string  pixmap = "" 
)
protectedinherited
void te::qt::plugins::rp::AbstractAction::createPopUpAction ( std::string  name,
std::string  pixmap = "" 
)
protectedinherited
QAction* te::qt::plugins::rp::AbstractAction::getAction ( )
inlineinherited

Definition at line 145 of file rp/AbstractAction.h.

Referenced by te::qt::plugins::rp::Plugin::registerActions().

void te::qt::plugins::rp::PostClassificationAction::onActionActivated ( bool  checked)
protectedvirtualslot
void te::qt::plugins::rp::AbstractAction::onPopUpActionActivated ( bool  checked)
protectedvirtualslotinherited

Slot function used when a action was selected from layer pop up.

Parameters
checkedFlag used in case a toggle action.

Definition at line 48 of file rp/AbstractAction.cpp.

Referenced by te::qt::plugins::rp::AbstractAction::createPopUpAction().

Member Data Documentation

QMenu* te::qt::plugins::rp::AbstractAction::m_menu
protectedinherited

Parent Menu.

Definition at line 152 of file rp/AbstractAction.h.

Referenced by te::qt::plugins::rp::AbstractAction::createAction().

QAction* te::qt::plugins::rp::AbstractAction::m_popupAction
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().

QMenu* te::qt::plugins::rp::AbstractAction::m_popupMenu
protectedinherited

Parent popMenu.

Definition at line 153 of file rp/AbstractAction.h.

Referenced by te::qt::plugins::rp::AbstractAction::createPopUpAction().

std::unique_ptr<te::qt::widgets::PostClassificationDialogForm> te::qt::plugins::rp::PostClassificationAction::m_postClassDlg
private

Definition at line 68 of file PostClassificationAction.h.

Referenced by closeTool(), and onActionActivated().


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