te::qt::plugins::rp::AbstractAction Class Referenceabstract

This is an abstract class used to register actions into rp pluging. More...

#include <AbstractAction.h>

Inheritance diagram for te::qt::plugins::rp::AbstractAction:
te::qt::plugins::rp::ArithmeticOpAction te::qt::plugins::rp::ClassifierAction te::qt::plugins::rp::ClippingAction te::qt::plugins::rp::ColorTransformAction te::qt::plugins::rp::ComposeBandsAction te::qt::plugins::rp::ContrastAction te::qt::plugins::rp::FilterAction te::qt::plugins::rp::FusionAction te::qt::plugins::rp::MixtureModelAction te::qt::plugins::rp::MosaicAction te::qt::plugins::rp::RasterizationAction te::qt::plugins::rp::RegisterAction te::qt::plugins::rp::SegmenterAction te::qt::plugins::rp::VectorizationAction

Signals

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

Public Member Functions

 AbstractAction (QMenu *menu, QMenu *popupMenu)
 Constructor. More...
 
QAction * getAction ()
 
virtual ~AbstractAction ()
 Destructor. More...
 

Protected Slots

virtual void onActionActivated (bool checked)=0
 Slot function used when a action was selected. More...
 
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...
 

Detailed Description

This is an abstract class used to register actions into rp pluging.

Definition at line 59 of file AbstractAction.h.

Constructor & Destructor Documentation

te::qt::plugins::rp::AbstractAction::AbstractAction ( QMenu *  menu,
QMenu *  popupMenu 
)

Constructor.

Parameters
menuThe parent menu object.
virtual te::qt::plugins::rp::AbstractAction::~AbstractAction ( )
virtual

Destructor.

Member Function Documentation

void te::qt::plugins::rp::AbstractAction::addNewLayer ( te::map::AbstractLayerPtr  layer)
protected

Add a new layer into layer explorer widget.

Parameters
layerThe layer auto pointer
void te::qt::plugins::rp::AbstractAction::createAction ( std::string  name,
std::string  pixmap = "" 
)
protected

Create and set the actions parameters.

Parameters
nameThe action name.
pixmapThe action pixmap name.
void te::qt::plugins::rp::AbstractAction::createPopUpAction ( std::string  name,
std::string  pixmap = "" 
)
protected

Create and set the actions parameters.

Parameters
nameThe action name.
pixmapThe action pixmap name.
QAction* te::qt::plugins::rp::AbstractAction::getAction ( )
inline

Definition at line 143 of file AbstractAction.h.

References m_action.

te::map::AbstractLayerPtr te::qt::plugins::rp::AbstractAction::getCurrentLayer ( )
protected

Get the selected layer from layer explorer in app.

Returns
The layer auto pointer
std::list<te::map::AbstractLayerPtr> te::qt::plugins::rp::AbstractAction::getLayers ( )
protected

Get the list of layers from app.

Returns
The list pf layer auto pointers
virtual void te::qt::plugins::rp::AbstractAction::onActionActivated ( bool  checked)
protectedpure virtualslot

Slot function used when a action was selected.

Parameters
checkedFlag used in case a toggle action.
virtual void te::qt::plugins::rp::AbstractAction::onPopUpActionActivated ( bool  checked)
protectedvirtualslot

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

Parameters
checkedFlag used in case a toggle action.
void te::qt::plugins::rp::AbstractAction::triggered ( te::qt::af::evt::Event e)
signal

Member Data Documentation

QAction* te::qt::plugins::rp::AbstractAction::m_action
protected

Action used to call the process.

Definition at line 152 of file AbstractAction.h.

Referenced by getAction().

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

Parent Menu.

Definition at line 150 of file AbstractAction.h.

QAction* te::qt::plugins::rp::AbstractAction::m_popupAction
protected

Action used to call the process from pop up layer.

Definition at line 153 of file AbstractAction.h.

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

Parent popMenu.

Definition at line 151 of file AbstractAction.h.


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