OTB  6.7.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>

+ Collaboration diagram for otb::internal::ReprojectTransformationFunctor:

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 (OGRPoint &g) const
 
void do_transform (OGRLineString &g) const
 
void do_transform (OGRPolygon &g) const
 
void do_transform (OGRGeometryCollection &g) const
 

Private Attributes

InternalTransformPointerType m_Transform
 

Detailed Description

Internal functor used to reproject an OGRGeometry.

Definition at line 50 of file otbGeometriesProjectionFilter.h.

Member Typedef Documentation

Definition at line 87 of file otbGeometriesProjectionFilter.h.

Definition at line 86 of file otbGeometriesProjectionFilter.h.

Definition at line 52 of file otbGeometriesProjectionFilter.h.

Member Function Documentation

void otb::internal::ReprojectTransformationFunctor::apply_inplace ( OGRGeometry *  inout) const
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()().

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()
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()
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()
ogr::UniqueGeometryPtr otb::internal::ReprojectTransformationFunctor::operator() ( OGRGeometry const *  in) const
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 57 of file otbGeometriesProjectionFilter.hxx.

References m_Transform.

Member Data Documentation

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

Transformation functor that operates on one single OGRPoint.

Definition at line 134 of file otbGeometriesProjectionFilter.h.

Referenced by SetOnePointTransformation().


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