Orfeo Toolbox  4.0
Public Member Functions | Private Attributes | List of all members
otb::internal::ProcessVisitor Struct Reference
+ Inheritance diagram for otb::internal::ProcessVisitor:
+ Collaboration diagram for otb::internal::ProcessVisitor:

Public Member Functions

 ProcessVisitor (otb::GeometriesToGeometriesFilter const &filter)
 
void operator() (otb::ogr::Layer const &source, otb::ogr::Layer &destination) const
 
void operator() (otb::ogr::DataSource::Pointer source, otb::ogr::DataSource::Pointer destination) const
 
void operator() (otb::ogr::Layer &inout) const
 
void operator() (otb::ogr::DataSource::Pointer inout) const
 
template<typename GT1 , typename GT2 >
void operator() (GT1 const &, GT2 &) const
 

Private Attributes

otb::GeometriesToGeometriesFilter
const & 
m_filter
 

Detailed Description

Definition at line 41 of file otbGeometriesToGeometriesFilter.cxx.

Constructor & Destructor Documentation

otb::internal::ProcessVisitor::ProcessVisitor ( otb::GeometriesToGeometriesFilter const &  filter)
inline

Definition at line 43 of file otbGeometriesToGeometriesFilter.cxx.

Member Function Documentation

void otb::internal::ProcessVisitor::operator() ( otb::ogr::Layer const &  source,
otb::ogr::Layer destination 
) const
inline

Processes layers (by-copy).

Parameters
[in]sourcesource layer
[in,out]destinationdestination layer.
Exceptions
WhatEverthe filter throws.

This is the leaf operation that forwards the call to the polymorphic GeometriesToGeometriesFilter::DoProcessLayer() function.

Definition at line 54 of file otbGeometriesToGeometriesFilter.cxx.

References otb::GeometriesToGeometriesFilter::DoProcessLayer(), and m_filter.

void otb::internal::ProcessVisitor::operator() ( otb::ogr::DataSource::Pointer  source,
otb::ogr::DataSource::Pointer  destination 
) const
inline

Processes data sources (by-copy).

Parameters
[in]sourcesource data source
[in,out]destinationdestination data source
Exceptions
WhatEverthe filter throws.
itk::ExceptionObjectif the construction of a new layer fails

For each layer in the source, this operation:

Definition at line 75 of file otbGeometriesToGeometriesFilter.cxx.

References b, otb::GeometriesToGeometriesFilter::DoDefineNewLayerFields(), otb::GeometriesToGeometriesFilter::DoDefineNewLayerGeometryType(), otb::GeometriesToGeometriesFilter::DoDefineNewLayerOptions(), otb::GeometriesToGeometriesFilter::DoDefineNewLayerSpatialReference(), otb::GeometriesToGeometriesFilter::DoProcessLayer(), itk::Math::e, otb::ogr::Layer::GetName(), and m_filter.

void otb::internal::ProcessVisitor::operator() ( otb::ogr::Layer inout) const
inline

Processes layers (in-place).

Parameters
[in,out]inoutlayer to modify
Exceptions
WhatEverthe filter throws.

This is the leaf operation that forwards the call to the polymorphic GeometriesToGeometriesFilter::DoProcessLayer() function.

Definition at line 105 of file otbGeometriesToGeometriesFilter.cxx.

References otb::GeometriesToGeometriesFilter::DoProcessLayer(), and m_filter.

void otb::internal::ProcessVisitor::operator() ( otb::ogr::DataSource::Pointer  inout) const
inline

Processes data sources (in-place).

Parameters
[in,out]inoutdata source to modify
Exceptions
WhatEverthe filter throws.

This operation finally processes each layer of the source thanks to the polymorphic GeometriesToGeometriesFilter::DoProcessLayer() function.

Definition at line 118 of file otbGeometriesToGeometriesFilter.cxx.

References b, otb::GeometriesToGeometriesFilter::DoProcessLayer(), itk::Math::e, and m_filter.

template<typename GT1 , typename GT2 >
void otb::internal::ProcessVisitor::operator() ( GT1 const &  ,
GT2 &   
) const
inline

Fall-back visiting function for invalid mixed tranformations (layer -> datasource). The only transformations accepted are

  • layer -> layer,
  • and data source -> data source.

Definition at line 136 of file otbGeometriesToGeometriesFilter.cxx.

Member Data Documentation

otb::GeometriesToGeometriesFilter const& otb::internal::ProcessVisitor::m_filter
private

Definition at line 142 of file otbGeometriesToGeometriesFilter.cxx.

Referenced by operator()().


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

Generated at Sat Mar 8 2014 19:08:34 for Orfeo Toolbox with doxygen 1.8.3.1