OTB  9.0.0
Orfeo Toolbox
List of all members
otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy > Class Template Reference

#include <otbGeometriesToGeometriesFilter.h>

+ Inheritance diagram for otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >:
+ Collaboration diagram for otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >:

Public Types

Standard ITK typedefs
typedef DefaultGeometriesToGeometriesFilter Self
 
typedef GeometriesToGeometriesFilter Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
Class typedefs
typedef TransformationFunctor TransformationFunctorType
 
typedef TransformationFunctor::TransformedElementType TransformedElementType
 
typedef TransformationFunctorDispatcher< TransformationFunctorType, TransformedElementType, FieldTransformationPolicy > TransformationFunctorDispatcherType
 
- Public Types inherited from otb::GeometriesToGeometriesFilter
typedef GeometriesToGeometriesFilter Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef GeometriesSet InputGeometriesType
 
typedef GeometriesSet OutputGeometriesType
 
- Public Types inherited from otb::GeometriesSource
typedef GeometriesSource Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef GeometriesSet OutputGeometriesType
 

Standard macros

static Pointer New ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
 DefaultGeometriesToGeometriesFilter ()
 
 ~DefaultGeometriesToGeometriesFilter () override
 
void DoProcessLayer (ogr::Layer const &source, ogr::Layer &destination) const override
 
void DoDefineNewLayerFields (ogr::Layer const &source, ogr::Layer &dest) const override
 

Additional Inherited Members

- Public Member Functions inherited from otb::GeometriesToGeometriesFilter
virtual void SetInput (const InputGeometriesType *input)
 
const InputGeometriesTypeGetInput (void)
 
- Public Member Functions inherited from otb::GeometriesSource
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual OutputGeometriesTypeGetOutput (void)
 
virtual OutputGeometriesTypeGetOutput (DataObjectPointerArraySizeType idx)
 
virtual void SetOutput (OutputGeometriesType *output, DataObjectPointerArraySizeType idx=0)
 
void PrepareOutputs () override
 
- Static Public Member Functions inherited from otb::GeometriesSource
static Pointer New ()
 
- Protected Member Functions inherited from otb::GeometriesToGeometriesFilter
 GeometriesToGeometriesFilter ()
 
 ~GeometriesToGeometriesFilter () override
 
void GenerateData (void) override
 
- Protected Member Functions inherited from otb::GeometriesSource
 GeometriesSource ()
 
 ~GeometriesSource () override
 
virtual void DoAllocateOutputs ()
 

Detailed Description

template<class TransformationFunctor, class FieldTransformationPolicy = FieldCopyTransformation>
class otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >

Generic helper class to filter geometries sets given a transformation functor. This generic class provides the default behaviour for most filters that we may need to implement.

Thanks to it, we just need to provide a TransformationFunctor, and a FieldTransformationPolicy (if the default no-transformation policy is not what we need).

Since
OTB v 3.14.0
Todo:
Find a better name

Definition at line 367 of file otbGeometriesToGeometriesFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
typedef itk::SmartPointer<const Self> otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::ConstPointer

Definition at line 378 of file otbGeometriesToGeometriesFilter.h.

◆ Pointer

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
typedef itk::SmartPointer<Self> otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::Pointer

Definition at line 377 of file otbGeometriesToGeometriesFilter.h.

◆ Self

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
typedef DefaultGeometriesToGeometriesFilter otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::Self

Definition at line 375 of file otbGeometriesToGeometriesFilter.h.

◆ Superclass

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
typedef GeometriesToGeometriesFilter otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::Superclass

Definition at line 376 of file otbGeometriesToGeometriesFilter.h.

◆ TransformationFunctorDispatcherType

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
typedef TransformationFunctorDispatcher<TransformationFunctorType, TransformedElementType, FieldTransformationPolicy> otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::TransformationFunctorDispatcherType

Definition at line 385 of file otbGeometriesToGeometriesFilter.h.

◆ TransformationFunctorType

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
typedef TransformationFunctor otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::TransformationFunctorType

Definition at line 383 of file otbGeometriesToGeometriesFilter.h.

◆ TransformedElementType

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
typedef TransformationFunctor::TransformedElementType otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::TransformedElementType

Definition at line 384 of file otbGeometriesToGeometriesFilter.h.

Constructor & Destructor Documentation

◆ DefaultGeometriesToGeometriesFilter()

template<class TransformationFunctor , class FieldTransformationPolicy >
otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::DefaultGeometriesToGeometriesFilter
inlineprotected

Default constructor.

Definition at line 33 of file otbGeometriesToGeometriesFilter.hxx.

◆ ~DefaultGeometriesToGeometriesFilter()

template<class TransformationFunctor , class FieldTransformationPolicy >
otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::~DefaultGeometriesToGeometriesFilter
inlineoverrideprotected

Destructor.

Definition at line 40 of file otbGeometriesToGeometriesFilter.hxx.

Member Function Documentation

◆ CreateAnother()

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
virtual::itk::LightObject::Pointer otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::CreateAnother ( void  ) const

Method for creation through the object factory.

◆ DoDefineNewLayerFields()

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
void otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::DoDefineNewLayerFields ( ogr::Layer const &  source,
ogr::Layer dest 
) const
inlineoverrideprotectedvirtual

Hook used to define the fields of the new layer.

Parameters
[in]sourcesource Layer – for reference
[in,out]destdestination Layer

Just forwards the fields definition to the FieldTransformationPolicy inherited from the TransformationFunctorDispatcherType.

Implements otb::GeometriesToGeometriesFilter.

Definition at line 425 of file otbGeometriesToGeometriesFilter.h.

◆ DoProcessLayer()

template<class TransformationFunctor , class FieldTransformationPolicy >
void otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::DoProcessLayer ( ogr::Layer const &  source,
ogr::Layer destination 
) const
inlineoverrideprotectedvirtual

Hook that actually filters an OGR Layer.

Parameters
[in]sourceInput layer
[in,out]destinationOutput layer

This specialization just forwards the transformation to the m_TransformationFunctor.

Note
When source == destination, it means this is an in-place filter.

Implements otb::GeometriesToGeometriesFilter.

Definition at line 48 of file otbGeometriesToGeometriesFilter.hxx.

◆ GetNameOfClass()

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
virtual const char* otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::GeometriesToGeometriesFilter.

◆ New()

template<class TransformationFunctor , class FieldTransformationPolicy = FieldCopyTransformation>
static Pointer otb::DefaultGeometriesToGeometriesFilter< TransformationFunctor, FieldTransformationPolicy >::New ( )
static

Method for creation through the object factory.


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