te::vp::SubdivideOperation Class Reference

This operation subdivides geometries ensuring that they don't have more than the given number of coordinates. More...

#include <SubdivideOperation.h>

Inheritance diagram for te::vp::SubdivideOperation:
te::vp::AbstractOperation

Public Member Functions

void abort ()
 Returns TRUE if the operation has been aborted. FALSE otherwise. More...
 
te::da::DataSetTypecreateBasicOutputDataSetType (const std::string &dataSetName, int srid, te::gm::GeomType geometryType, const std::string &geometryColumnName) const override
 < Creates the basic dataSetType for the output containing all the columns that are required More...
 
virtual te::vp::FeaturecreateOutputFeature (std::size_t outputIndex)
 It creates the output feature based on the given output dataaccess index. More...
 
virtual std::vector< te::vp::FeatureSetexecute (const std::vector< te::vp::FeatureSet > &vecInput)
 It executes the operation. More...
 
std::vector< te::vp::FeatureSetexecuteImpl (const std::vector< te::vp::FeatureSet > &vecInput) override
 
virtual std::unique_ptr< te::vp::AbstractOperationCapabilitiesgetCapabilities () const override
 Makes all the necessaries adaptations to the input dataAccess to avoid duplicate column names. More...
 
virtual const te::da::DataSetTypegetDataSetType (std::size_t outputIndex)
 Gets the dataSetType of the 'outputIndex-th' output. More...
 
const std::string & getName () const
 Gets the output geometry type. More...
 
te::gm::GeomType getOutputGeometryType () const
 Aborts the execution of the operation. More...
 
AbstractParametersgetParameters () const
 Gets the operation report. More...
 
OperationReportgetReport () const
 Gets the operation name. More...
 
bool handleOutputPropertyNamesChanges (const te::da::DataSetType *baseOutputDataSetType, const te::da::DataSetType *actualOutputDataSetType)
 
virtual void initialize ()
 
bool isAborted () const
 Get the capabilities of the operation. Basically, operation will have 2 inputs, 1 output, and support subdivision. If it is not the case of the concrete class, this function should be overriden. More...
 
bool prepareInputData ()
 
bool prepareOutputData ()
 
void setParameters (AbstractParameters *params)
 Gets the operation current parameters. More...
 
 SubdivideOperation ()
 Constructor. More...
 
virtual ~SubdivideOperation ()
 

Protected Member Functions

virtual void addOutputColumns (te::da::DataSetType *outputDataSetType)
 Initializes the operation input. More...
 
virtual bool initializeInput ()
 Initializes the operation output. More...
 
virtual bool initializeOutput ()
 Function that effectivelly executes the operation. It must be implemented by the concrete classes. More...
 
std::size_t safeCreateParentId ()
 

Protected Attributes

bool m_aborted
 Becames true if the abort function is called. Concrete classes must check for this value from time to time. More...
 
AbstractOperationImpl * m_impl
 Holds all the attributes of the class. More...
 
std::mutex m_mutex
 
std::size_t m_parentId
 

Detailed Description

This operation subdivides geometries ensuring that they don't have more than the given number of coordinates.

Definition at line 80 of file SubdivideOperation.h.

Constructor & Destructor Documentation

◆ SubdivideOperation()

te::vp::SubdivideOperation::SubdivideOperation ( )

Constructor.

Destructor

◆ ~SubdivideOperation()

virtual te::vp::SubdivideOperation::~SubdivideOperation ( )
virtual

Member Function Documentation

◆ abort()

void te::vp::AbstractOperation::abort ( )
inherited

Returns TRUE if the operation has been aborted. FALSE otherwise.

◆ addOutputColumns()

virtual void te::vp::AbstractOperation::addOutputColumns ( te::da::DataSetType outputDataSetType)
protectedvirtualinherited

Initializes the operation input.

◆ createBasicOutputDataSetType()

te::da::DataSetType* te::vp::SubdivideOperation::createBasicOutputDataSetType ( const std::string &  dataSetName,
int  srid,
te::gm::GeomType  geometryType,
const std::string &  geometryColumnName 
) const
overridevirtual

< Creates the basic dataSetType for the output containing all the columns that are required

Reimplemented from te::vp::AbstractOperation.

◆ createOutputFeature()

virtual te::vp::Feature* te::vp::AbstractOperation::createOutputFeature ( std::size_t  outputIndex)
virtualinherited

It creates the output feature based on the given output dataaccess index.

Parameters
outputIndexThe index of the output dataAccess.

◆ execute()

virtual std::vector<te::vp::FeatureSet> te::vp::AbstractOperation::execute ( const std::vector< te::vp::FeatureSet > &  vecInput)
virtualinherited

It executes the operation.

Parameters
inputInput vector data to be processed.
Precondition
The parameters must be valid (internal check)
Exceptions
ExceptionIt throws an exception if something goes wrong during the execution.

\Return The output memory data processed.

◆ executeImpl()

std::vector<te::vp::FeatureSet> te::vp::SubdivideOperation::executeImpl ( const std::vector< te::vp::FeatureSet > &  vecInput)
overridevirtual

◆ getCapabilities()

virtual std::unique_ptr<te::vp::AbstractOperationCapabilities> te::vp::SubdivideOperation::getCapabilities ( ) const
overridevirtual

Makes all the necessaries adaptations to the input dataAccess to avoid duplicate column names.

Reimplemented from te::vp::AbstractOperation.

◆ getDataSetType()

virtual const te::da::DataSetType* te::vp::AbstractOperation::getDataSetType ( std::size_t  outputIndex)
virtualinherited

Gets the dataSetType of the 'outputIndex-th' output.

Parameters
outputIndexThe index of the output dataAccess. Sets the parameters to be used by the operation

◆ getName()

const std::string& te::vp::AbstractOperation::getName ( ) const
inherited

Gets the output geometry type.

◆ getOutputGeometryType()

te::gm::GeomType te::vp::AbstractOperation::getOutputGeometryType ( ) const
inherited

Aborts the execution of the operation.

◆ getParameters()

AbstractParameters* te::vp::AbstractOperation::getParameters ( ) const
inherited

Gets the operation report.

◆ getReport()

OperationReport* te::vp::AbstractOperation::getReport ( ) const
inherited

Gets the operation name.

◆ handleOutputPropertyNamesChanges()

bool te::vp::AbstractOperation::handleOutputPropertyNamesChanges ( const te::da::DataSetType baseOutputDataSetType,
const te::da::DataSetType actualOutputDataSetType 
)
inherited

◆ initialize()

virtual void te::vp::AbstractOperation::initialize ( )
virtualinherited

◆ initializeInput()

virtual bool te::vp::AbstractOperation::initializeInput ( )
protectedvirtualinherited

Initializes the operation output.

◆ initializeOutput()

virtual bool te::vp::AbstractOperation::initializeOutput ( )
protectedvirtualinherited

Function that effectivelly executes the operation. It must be implemented by the concrete classes.

◆ isAborted()

bool te::vp::AbstractOperation::isAborted ( ) const
inherited

Get the capabilities of the operation. Basically, operation will have 2 inputs, 1 output, and support subdivision. If it is not the case of the concrete class, this function should be overriden.

◆ prepareInputData()

bool te::vp::AbstractOperation::prepareInputData ( )
inherited

◆ prepareOutputData()

bool te::vp::AbstractOperation::prepareOutputData ( )
inherited

◆ safeCreateParentId()

std::size_t te::vp::SubdivideOperation::safeCreateParentId ( )
protected

◆ setParameters()

void te::vp::AbstractOperation::setParameters ( AbstractParameters params)
inherited

Gets the operation current parameters.

Member Data Documentation

◆ m_aborted

bool te::vp::AbstractOperation::m_aborted
protectedinherited

Becames true if the abort function is called. Concrete classes must check for this value from time to time.

Definition at line 297 of file AbstractOperation.h.

◆ m_impl

AbstractOperationImpl* te::vp::AbstractOperation::m_impl
protectedinherited

Holds all the attributes of the class.

Definition at line 296 of file AbstractOperation.h.

◆ m_mutex

std::mutex te::vp::SubdivideOperation::m_mutex
protected

Definition at line 105 of file SubdivideOperation.h.

◆ m_parentId

std::size_t te::vp::SubdivideOperation::m_parentId
protected

Definition at line 104 of file SubdivideOperation.h.


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