te::qt::plugins::cellspace::CreateCellLayerAction Class Reference

This class register the contrast action into Cellular Space Plugin. More...

#include <CreateCellLayerAction.h>

Inheritance diagram for te::qt::plugins::cellspace::CreateCellLayerAction:
te::qt::plugins::cellspace::AbstractAction QObject

Signals

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

Public Member Functions

 CreateCellLayerAction (QMenu *menu)
 
virtual ~CreateCellLayerAction ()
 

Protected Slots

virtual void onActionActivated (bool checked)
 

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...
 
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...
 

Detailed Description

This class register the contrast action into Cellular Space Plugin.

Definition at line 47 of file CreateCellLayerAction.h.

Constructor & Destructor Documentation

te::qt::plugins::cellspace::CreateCellLayerAction::CreateCellLayerAction ( QMenu *  menu)
te::qt::plugins::cellspace::CreateCellLayerAction::~CreateCellLayerAction ( )
virtualdefault

Referenced by CreateCellLayerAction().

Member Function Documentation

void te::qt::plugins::cellspace::AbstractAction::addNewLayer ( te::map::AbstractLayerPtr  layer)
protectedinherited

Add a new layer into layer explorer widget.

Parameters
layerThe layer auto pointer

Definition at line 60 of file cellspace/AbstractAction.cpp.

References te::qt::plugins::cellspace::AbstractAction::triggered().

void te::qt::plugins::cellspace::AbstractAction::createAction ( std::string  name,
std::string  pixmap = "" 
)
protectedinherited
std::list< te::map::AbstractLayerPtr > te::qt::plugins::cellspace::AbstractAction::getLayers ( )
protectedinherited

Get the list of layers from app.

Returns
The list pf layer auto pointers

Definition at line 67 of file cellspace/AbstractAction.cpp.

References te::qt::af::evt::GetLayerSelected::m_layer, te::qt::af::evt::GetAvailableLayers::m_layers, and te::qt::plugins::cellspace::AbstractAction::triggered().

Referenced by onActionActivated().

Member Data Documentation

QAction* te::qt::plugins::cellspace::AbstractAction::m_action
protectedinherited

Action used to call the process.

Definition at line 122 of file cellspace/AbstractAction.h.

Referenced by te::qt::plugins::cellspace::AbstractAction::createAction(), and CreateCellLayerAction().

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

Parent Menu.

Definition at line 121 of file cellspace/AbstractAction.h.

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


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