te::qt::plugins::vp::PolygonToLineAction Class Reference

This class register the polygon to line action into VP Plugin. More...

#include <PolygonToLineAction.h>

Inheritance diagram for te::qt::plugins::vp::PolygonToLineAction:
te::qt::plugins::vp::AbstractAction

Signals

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

Public Member Functions

QAction * getAction ()
 
 PolygonToLineAction (QMenu *menu)
 
virtual ~PolygonToLineAction ()
 

Static Public Member Functions

static te::qt::plugins::vp::AbstractActioncreateAction (QMenu *menu, const std::string &operationName)
 

Protected Slots

virtual void onActionActivated (bool checked)
 

Protected Member Functions

void addNewLayer (te::map::AbstractLayerPtr layer, bool confirmIndexCreation=true)
 Add a new layer into layer explorer widget. More...
 
void configSettings ()
 
void createAction (std::string name, std::string pixmap="")
 Create and set the actions parameters. More...
 
void createActionByName (const std::string &operationName)
 Create and set the actions parameters. More...
 
void createSpatialIndex (te::map::AbstractLayerPtr layer)
 
std::list< te::map::AbstractLayerPtrgetLayers ()
 Get the list of layers from app. More...
 
bool hasShapeFileSpatialIndex (const QString &path)
 
void showDialog (const std::string &operationName)
 

Protected Attributes

QAction * m_action
 Action used to call the process. More...
 
QMenu * m_menu
 Parent Menu. More...
 
std::string m_operationName
 The name of the operation to be used. More...
 

Detailed Description

This class register the polygon to line action into VP Plugin.

Definition at line 47 of file PolygonToLineAction.h.

Constructor & Destructor Documentation

◆ PolygonToLineAction()

te::qt::plugins::vp::PolygonToLineAction::PolygonToLineAction ( QMenu *  menu)

◆ ~PolygonToLineAction()

virtual te::qt::plugins::vp::PolygonToLineAction::~PolygonToLineAction ( )
virtual

Member Function Documentation

◆ addNewLayer()

void te::qt::plugins::vp::AbstractAction::addNewLayer ( te::map::AbstractLayerPtr  layer,
bool  confirmIndexCreation = true 
)
protectedinherited

Add a new layer into layer explorer widget.

Parameters
layerThe layer auto pointer

◆ configSettings()

void te::qt::plugins::vp::AbstractAction::configSettings ( )
protectedinherited

◆ createAction() [1/2]

static te::qt::plugins::vp::AbstractAction* te::qt::plugins::vp::AbstractAction::createAction ( QMenu *  menu,
const std::string &  operationName 
)
staticinherited

◆ createAction() [2/2]

void te::qt::plugins::vp::AbstractAction::createAction ( std::string  name,
std::string  pixmap = "" 
)
protectedinherited

Create and set the actions parameters.

Parameters
nameThe action name.
pixmapThe action pixmap name.

◆ createActionByName()

void te::qt::plugins::vp::AbstractAction::createActionByName ( const std::string &  operationName)
protectedinherited

Create and set the actions parameters.

Parameters
nameThe action name.

◆ createSpatialIndex()

void te::qt::plugins::vp::AbstractAction::createSpatialIndex ( te::map::AbstractLayerPtr  layer)
protectedinherited

◆ getAction()

QAction* te::qt::plugins::vp::AbstractAction::getAction ( )
inlineinherited

Definition at line 145 of file AbstractAction.h.

References te::qt::plugins::vp::AbstractAction::m_action.

◆ getLayers()

std::list<te::map::AbstractLayerPtr> te::qt::plugins::vp::AbstractAction::getLayers ( )
protectedinherited

Get the list of layers from app.

Returns
The list pf layer auto pointers

◆ hasShapeFileSpatialIndex()

bool te::qt::plugins::vp::AbstractAction::hasShapeFileSpatialIndex ( const QString &  path)
protectedinherited

◆ onActionActivated

virtual void te::qt::plugins::vp::PolygonToLineAction::onActionActivated ( bool  checked)
protectedvirtualslot

◆ showDialog()

void te::qt::plugins::vp::AbstractAction::showDialog ( const std::string &  operationName)
protectedinherited

◆ triggered

void te::qt::plugins::vp::AbstractAction::triggered ( te::qt::af::evt::Event e)
signalinherited

Member Data Documentation

◆ m_action

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

Action used to call the process.

Definition at line 153 of file AbstractAction.h.

Referenced by te::qt::plugins::vp::AbstractAction::getAction().

◆ m_menu

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

Parent Menu.

Definition at line 152 of file AbstractAction.h.

◆ m_operationName

std::string te::qt::plugins::vp::AbstractAction::m_operationName
protectedinherited

The name of the operation to be used.

Definition at line 154 of file AbstractAction.h.


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