te::process::qt::DefaultTaskPropertyHandler Class Reference

A default handler to list task properties into a property browser. More...

#include <DefaultTaskPropertyHandler.h>

Inheritance diagram for te::process::qt::DefaultTaskPropertyHandler:
te::process::qt::TaskPropertyHandler

Public Member Functions

 DefaultTaskPropertyHandler ()
 Default constructor. More...
 
const std::string & getType () const
 
virtual void setDefaultProperties (QtProperty *parent)
 
virtual void setInputProperties (QtProperty *parent)
 
virtual void setOutputProperties (QtProperty *parent)
 
void setTask (const std::string &taskId, ProcessManager *manager)
 Gets the type of the task. More...
 
void valueChanged (QtProperty *p, const QVariant &qVariant)
 
virtual ~DefaultTaskPropertyHandler ()
 Virtual destructor. More...
 

Protected Member Functions

virtual QtProperty * createProperty (te::process::TaskSharedPtr task, te::process::ParameterDescriptor &paramDesc) override
 Function used to create the right property type given a param descriptor. More...
 
virtual te::dt::AbstractDatacreatePropertyData (te::process::ParameterDescriptor &paramDesc, const QVariant &var)
 Function used to create a terralib object data from a QtProperty contents (QVariant). More...
 
virtual te::dt::AbstractDatagetParamData (const std::string &paramName)
 Function used to get a terralib object data from a Task param. More...
 
QString getParameterToolTip (te::process::TaskSharedPtr task, te::process::ParameterDescriptor &paramDesc)
 
void setProperty (QtProperty *parent, te::process::ParameterDescriptor::Direction dir)
 
virtual void setPropertyData (const te::dt::AbstractData *data, QtProperty *property, int dataType) override
 Function used to set into qt property a terralib data. More...
 

Protected Attributes

ProcessManagerm_manager
 
std::map< std::string, QtProperty * > m_propertyMap
 A map between string property name and property objects. More...
 
std::string m_taskId
 
std::string m_taskType
 The type of the task. Used by the factory. More...
 

Detailed Description

A default handler to list task properties into a property browser.

Definition at line 54 of file DefaultTaskPropertyHandler.h.

Constructor & Destructor Documentation

◆ DefaultTaskPropertyHandler()

te::process::qt::DefaultTaskPropertyHandler::DefaultTaskPropertyHandler ( )

Default constructor.

◆ ~DefaultTaskPropertyHandler()

virtual te::process::qt::DefaultTaskPropertyHandler::~DefaultTaskPropertyHandler ( )
virtual

Virtual destructor.

Member Function Documentation

◆ createProperty()

virtual QtProperty* te::process::qt::DefaultTaskPropertyHandler::createProperty ( te::process::TaskSharedPtr  task,
te::process::ParameterDescriptor paramDesc 
)
overrideprotectedvirtual

Function used to create the right property type given a param descriptor.

Parameters
paramDescParam descriptor used to create the property
Returns
QtProperty object.

Implements te::process::qt::TaskPropertyHandler.

◆ createPropertyData()

virtual te::dt::AbstractData* te::process::qt::TaskPropertyHandler::createPropertyData ( te::process::ParameterDescriptor paramDesc,
const QVariant &  var 
)
protectedvirtualinherited

Function used to create a terralib object data from a QtProperty contents (QVariant).

Parameters
paramDescParameters descriptor, used to get the data type
varQt object with data
Returns
TerraLib data object, if a valid type was founded.

◆ getParamData()

virtual te::dt::AbstractData* te::process::qt::TaskPropertyHandler::getParamData ( const std::string &  paramName)
protectedvirtualinherited

Function used to get a terralib object data from a Task param.

Parameters
paramNameParameter name
Returns
TerraLib data object, if a valid type was founded.

◆ getParameterToolTip()

QString te::process::qt::TaskPropertyHandler::getParameterToolTip ( te::process::TaskSharedPtr  task,
te::process::ParameterDescriptor paramDesc 
)
protectedinherited

◆ getType()

const std::string& te::process::qt::TaskPropertyHandler::getType ( ) const
inherited

◆ setDefaultProperties()

virtual void te::process::qt::TaskPropertyHandler::setDefaultProperties ( QtProperty *  parent)
virtualinherited

◆ setInputProperties()

virtual void te::process::qt::TaskPropertyHandler::setInputProperties ( QtProperty *  parent)
virtualinherited

◆ setOutputProperties()

virtual void te::process::qt::TaskPropertyHandler::setOutputProperties ( QtProperty *  parent)
virtualinherited

◆ setProperty()

void te::process::qt::TaskPropertyHandler::setProperty ( QtProperty *  parent,
te::process::ParameterDescriptor::Direction  dir 
)
protectedinherited

◆ setPropertyData()

virtual void te::process::qt::DefaultTaskPropertyHandler::setPropertyData ( const te::dt::AbstractData data,
QtProperty *  property,
int  dataType 
)
overrideprotectedvirtual

Function used to set into qt property a terralib data.

Parameters
dataTerraLib object data
propertyQt property object
dataTypeTerraLib object data type

Implements te::process::qt::TaskPropertyHandler.

◆ setTask()

void te::process::qt::TaskPropertyHandler::setTask ( const std::string &  taskId,
ProcessManager manager 
)
inherited

Gets the type of the task.

◆ valueChanged()

void te::process::qt::TaskPropertyHandler::valueChanged ( QtProperty *  p,
const QVariant &  qVariant 
)
inherited

Member Data Documentation

◆ m_manager

ProcessManager* te::process::qt::TaskPropertyHandler::m_manager
protectedinherited

Definition at line 138 of file TaskPropertyHandler.h.

◆ m_propertyMap

std::map<std::string, QtProperty*> te::process::qt::TaskPropertyHandler::m_propertyMap
protectedinherited

A map between string property name and property objects.

Definition at line 140 of file TaskPropertyHandler.h.

◆ m_taskId

std::string te::process::qt::TaskPropertyHandler::m_taskId
protectedinherited

Definition at line 136 of file TaskPropertyHandler.h.

◆ m_taskType

std::string te::process::qt::TaskPropertyHandler::m_taskType
protectedinherited

The type of the task. Used by the factory.

Definition at line 134 of file TaskPropertyHandler.h.


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