OTB  6.7.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 const &in, ogr::Layer &out) const
 
void operator() (ogr::Layer &inout) 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 315 of file otbGeometriesToGeometriesFilter.h.

Member Typedef Documentation

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

Definition at line 318 of file otbGeometriesToGeometriesFilter.h.

Constructor & Destructor Documentation

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

Definition at line 320 of file otbGeometriesToGeometriesFilter.h.

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

Definition at line 321 of file otbGeometriesToGeometriesFilter.h.

Member Function Documentation

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

Definition at line 326 of file otbGeometriesToGeometriesFilter.h.

Member Data Documentation

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

Definition at line 328 of file otbGeometriesToGeometriesFilter.h.


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