27 #include "../../../attributefill/qt/VectorToVectorDialog.h" 
   28 #include "../../af/ApplicationController.h" 
   29 #include "../../af/events/LayerEvents.h" 
   30 #include "../../af/Project.h" 
   35 #include <QMessageBox> 
   43   createAction(tr(
"Vector to Vector...").toStdString(), 
"attributefill-vector2vector-icon");
 
   44   m_action->setObjectName(
"Processing.Attribute Fill.Vector to Vector");
 
   61     std::list<te::map::AbstractLayerPtr> layers = prj->
getSingleLayers(
false);
 
   65       QMessageBox::warning(0, tr(
"Vector To Vector"), tr(
"It is necessary at least two layers to perform the operations!"));
 
   72   logPath += 
"/log/terralib_attributefill.log";
 
   76   if(dlg.exec() != QDialog::Accepted)
 
   84   int reply = QMessageBox::question(0, tr(
"Attribute Fill Result"), tr(
"The operation was concluded successfully. Would you like to add the layer to the project?"), QMessageBox::No, QMessageBox::Yes);
 
   86   if(prj && reply == QMessageBox::Yes)
 
This event signals that a new layer was created. 
 
virtual ~VectorToVectorAction()
 
te::map::AbstractLayerPtr getLayer()
Get the generated layer. 
 
virtual void onActionActivated(bool checked)
 
VectorToVectorAction(QMenu *menu)
 
static ApplicationController & getInstance()
It returns a reference to the singleton instance. 
 
This is an abstract class used to register actions into Attribute Fill pluging. 
 
std::list< te::map::AbstractLayerPtr > getSingleLayers(bool invalid=true)
It gets all the single layers of the project. 
 
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used. 
 
void setLogPath(const std::string &path)
 
This class models the concept of a project for the TerraLib Application Framework. 
 
QAction * m_action
Action used to call the process. 
 
This file defines the RasterToVector class. 
 
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
 
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.