OTB  9.0.0
Orfeo Toolbox
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
otb::internal::ReprojectTransformationFunctor Struct Reference

#include <otbGeometriesProjectionFilter.h>

Classes

struct  ByCopy
 
struct  InPlace
 

Public Types

typedef InternalTransformType::Pointer InternalTransformPointerType
 
typedef otb::GenericRSTransform< double, 2, 2 > InternalTransformType
 
typedef OGRGeometry TransformedElementType
 

Public Member Functions

void apply_inplace (OGRGeometry *inout) const
 
ogr::UniqueGeometryPtr operator() (OGRGeometry const *in) const
 
void SetOnePointTransformation (InternalTransformPointerType transform)
 

Private Member Functions

void do_transform (OGRGeometryCollection &g) const
 
void do_transform (OGRLineString &g) const
 
void do_transform (OGRPoint &g) const
 
void do_transform (OGRPolygon &g) const
 

Private Attributes

InternalTransformPointerType m_Transform
 

Detailed Description

Internal functor used to reproject an OGRGeometry.

Definition at line 51 of file otbGeometriesProjectionFilter.h.

Member Typedef Documentation

◆ InternalTransformPointerType

Definition at line 92 of file otbGeometriesProjectionFilter.h.

◆ InternalTransformType

Definition at line 91 of file otbGeometriesProjectionFilter.h.

◆ TransformedElementType

Definition at line 53 of file otbGeometriesProjectionFilter.h.

Member Function Documentation

◆ apply_inplace()

void otb::internal::ReprojectTransformationFunctor::apply_inplace ( OGRGeometry *  inout) const

◆ do_transform() [1/4]

void otb::internal::ReprojectTransformationFunctor::do_transform ( OGRGeometryCollection &  g) const
private

Transforms all the geometries from a geometreis collection.

Parameters
[in,out]gpolygon to transform
Exceptions
Whateveris thrown by m_Transform::operator()

◆ do_transform() [2/4]

void otb::internal::ReprojectTransformationFunctor::do_transform ( OGRLineString &  g) const
private

Transforms all the points from a line-string, thanks to m_Transform.

Parameters
[in,out]gline-string to transform
Exceptions
Whateveris thrown by m_Transform::operator()

◆ do_transform() [3/4]

void otb::internal::ReprojectTransformationFunctor::do_transform ( OGRPoint &  g) const
private

Transforms one single point thanks to m_Transform.

Parameters
[in,out]gpoint to transform
Exceptions
Whateveris thrown by m_Transform::operator()

Referenced by otb::internal::ReprojectTransformationFunctor::ByCopy::operator()().

◆ do_transform() [4/4]

void otb::internal::ReprojectTransformationFunctor::do_transform ( OGRPolygon &  g) const
private

Transforms all the rings from a polygon.

Parameters
[in,out]gpolygon to transform
Exceptions
Whateveris thrown by m_Transform::operator()

◆ operator()()

ogr::UniqueGeometryPtr otb::internal::ReprojectTransformationFunctor::operator() ( OGRGeometry const *  in) const

◆ SetOnePointTransformation()

void otb::internal::ReprojectTransformationFunctor::SetOnePointTransformation ( InternalTransformPointerType  transform)
inline

Setter for the 1-point transformation functor.

Parameters
[in]transformtransformation functor to apply on single points.
Exceptions
None

Definition at line 52 of file otbGeometriesProjectionFilter.hxx.

References m_Transform.

Member Data Documentation

◆ m_Transform

InternalTransformPointerType otb::internal::ReprojectTransformationFunctor::m_Transform
private

Transformation functor that operates on one single OGRPoint.

Definition at line 139 of file otbGeometriesProjectionFilter.h.

Referenced by SetOnePointTransformation().


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