OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | List of all members
otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy > Struct Template Reference

#include <otbGeometriesToGeometriesFilter.h>

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

Public Types

typedef TransformationFunctor::TransformedElementType TransformedElementType
 

Public Member Functions

 BOOST_MPL_ASSERT ((boost::is_same< OGRGeometry, TransformedElementType >))
 
void operator() (ogr::Layer &inout) const
 
void operator() (ogr::Layer const &in, ogr::Layer &out) const
 
TransformationFunctor * operator-> ()
 
 TransformationFunctorDispatcher ()
 
 TransformationFunctorDispatcher (TransformationFunctor functor)
 

Private Attributes

TransformationFunctor m_functor
 

Detailed Description

template<class TransformationFunctor, class FieldTransformationPolicy>
struct otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >

Specialization for OGRGeometry.

Template Parameters
TransformationFunctoractual transformation functor

In this case, the TransformationFunctor works on OGRGeometry (instead of ogr::Layer). The default behaviour provided is to loop on all the ogr::Feature s of the original layer, and for each feature:

Note
In the case of the by-copy policy, fields transformation cannot change the number of fields nor their nature. Only field values may be modified.
Since
OTB v 3.14.0

Definition at line 328 of file otbGeometriesToGeometriesFilter.h.

Member Typedef Documentation

◆ TransformedElementType

template<class TransformationFunctor , class FieldTransformationPolicy >
typedef TransformationFunctor::TransformedElementType otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >::TransformedElementType

Definition at line 330 of file otbGeometriesToGeometriesFilter.h.

Constructor & Destructor Documentation

◆ TransformationFunctorDispatcher() [1/2]

template<class TransformationFunctor , class FieldTransformationPolicy >
otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >::TransformationFunctorDispatcher ( )
inline

Definition at line 332 of file otbGeometriesToGeometriesFilter.h.

◆ TransformationFunctorDispatcher() [2/2]

template<class TransformationFunctor , class FieldTransformationPolicy >
otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >::TransformationFunctorDispatcher ( TransformationFunctor  functor)
inline

Definition at line 335 of file otbGeometriesToGeometriesFilter.h.

Member Function Documentation

◆ BOOST_MPL_ASSERT()

template<class TransformationFunctor , class FieldTransformationPolicy >
otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >::BOOST_MPL_ASSERT ( (boost::is_same< OGRGeometry, TransformedElementType >)  )

◆ operator()() [1/2]

template<class TransformationFunctor , class FieldTransformationPolicy >
void otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >::operator() ( ogr::Layer inout) const
inline

◆ operator()() [2/2]

template<class TransformationFunctor , class FieldTransformationPolicy >
void otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >::operator() ( ogr::Layer const &  in,
ogr::Layer out 
) const
inline

◆ operator->()

template<class TransformationFunctor , class FieldTransformationPolicy >
TransformationFunctor* otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >::operator-> ( )
inline

Definition at line 342 of file otbGeometriesToGeometriesFilter.h.

Member Data Documentation

◆ m_functor

template<class TransformationFunctor , class FieldTransformationPolicy >
TransformationFunctor otb::TransformationFunctorDispatcher< TransformationFunctor, OGRGeometry, FieldTransformationPolicy >::m_functor
private

Definition at line 348 of file otbGeometriesToGeometriesFilter.h.


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