#include <otbGeometriesSet.h>
|
|
virtual const char * | GetNameOfClass () const |
|
|
void | Set (ogr::DataSource::Pointer datasource) |
|
void | Set (ogr::Layer layer) |
|
|
template<typename Visitor > |
Visitor::result_type | apply (Visitor const &visitor) |
|
template<typename Visitor > |
Visitor::result_type | apply (Visitor const &visitor) const |
|
template<typename Visitor > |
Visitor::result_type | apply (Visitor const &visitor, Self &visitable) |
|
template<typename Visitor > |
Visitor::result_type | apply (Visitor const &visitor, Self &visitable) const |
|
bool | IsSet () const |
|
Common ITK type to manipulate any set of geometries: a otb::ogr::DataSource
, or a otb::ogr::Layer
.
- Since
- OTB v 3.14.0
Definition at line 38 of file otbGeometriesSet.h.
◆ AnyGeometriesSetType
◆ ConstPointer
◆ ImageReference
◆ Pointer
◆ Self
◆ Superclass
◆ GeometriesSet() [1/3]
otb::GeometriesSet::GeometriesSet |
( |
| ) |
|
|
protected |
Default constructor. This actual geometries set is an in-memory otb::ogr::DataSource
. It needs to be set to a set of geometries if you expect to serialize it or work on a otb::Layer
.
When using this construction path, you'll likelly need to Set()
the actual geometries set.
◆ GeometriesSet() [2/3]
Init constructor from a otb::DataSource
.
◆ GeometriesSet() [3/3]
otb::GeometriesSet::GeometriesSet |
( |
ogr::Layer |
layer | ) |
|
|
protected |
Init constructor from a otb::Layer
.
◆ ~GeometriesSet()
otb::GeometriesSet::~GeometriesSet |
( |
| ) |
|
|
overrideprotected |
◆ apply() [1/4]
template<typename Visitor >
Visitor::result_type otb::GeometriesSet::apply |
( |
Visitor const & |
visitor | ) |
|
|
inline |
Unary visiting function to apply a visitor on any kind of geometies set.
As a GeometriesSet
contains either a otb::ogr::DataSource
, or a otb::ogr::Layer
, one needs to apply a function on either kind of data. This can be done thanks to a specialization of boost::static_visitor<>
that has a const operator()
that takes either one (or two in case of binary visitors) otb::DataSource
or otb::Layer
as parameter(s).
- Exceptions
-
Whatever | is thrown by the actual visitor. |
- Template Parameters
-
Visitor | type of the visitor functor. |
- Parameters
-
[in] | visitor | Functor visitor that shal derive from boost::static_visitor . |
Definition at line 96 of file otbGeometriesSet.h.
◆ apply() [2/4]
template<typename Visitor >
Visitor::result_type otb::GeometriesSet::apply |
( |
Visitor const & |
visitor | ) |
const |
|
inline |
Unary visiting function to apply a visitor on any kind of geometies set.
As a GeometriesSet
contains either a otb::ogr::DataSource
, or a otb::ogr::Layer
, one needs to apply a function on either kind of data. This can be done thanks to a specialization of boost::static_visitor<>
that has a const operator()
that takes either one (or two in case of binary visitors) otb::DataSource
or otb::Layer
as parameter(s).
- Exceptions
-
Whatever | is thrown by the actual visitor. |
- Template Parameters
-
Visitor | type of the visitor functor. |
- Parameters
-
[in] | visitor | Functor visitor that shal derive from boost::static_visitor . |
Definition at line 105 of file otbGeometriesSet.h.
◆ apply() [3/4]
template<typename Visitor >
Visitor::result_type otb::GeometriesSet::apply |
( |
Visitor const & |
visitor, |
|
|
Self & |
visitable |
|
) |
| |
|
inline |
Binary visiting function to apply a visitor on any kind of geometies set. Unary visiting function to apply a visitor on any kind of geometies set.
As a GeometriesSet
contains either a otb::ogr::DataSource
, or a otb::ogr::Layer
, one needs to apply a function on either kind of data. This can be done thanks to a specialization of boost::static_visitor<>
that has a const operator()
that takes either one (or two in case of binary visitors) otb::DataSource
or otb::Layer
as parameter(s).
- Exceptions
-
Whatever | is thrown by the actual visitor. |
- Template Parameters
-
Visitor | type of the visitor functor. |
- Parameters
-
[in] | visitor | Functor visitor that shal derive from boost::static_visitor . |
[in] | visitable | other geometries set to visit along side with the current geometries set instance. |
Definition at line 117 of file otbGeometriesSet.h.
References m_GeometriesSet.
◆ apply() [4/4]
template<typename Visitor >
Visitor::result_type otb::GeometriesSet::apply |
( |
Visitor const & |
visitor, |
|
|
Self & |
visitable |
|
) |
| const |
|
inline |
Binary visiting function to apply a visitor on any kind of geometies set. Unary visiting function to apply a visitor on any kind of geometies set.
As a GeometriesSet
contains either a otb::ogr::DataSource
, or a otb::ogr::Layer
, one needs to apply a function on either kind of data. This can be done thanks to a specialization of boost::static_visitor<>
that has a const operator()
that takes either one (or two in case of binary visitors) otb::DataSource
or otb::Layer
as parameter(s).
- Exceptions
-
Whatever | is thrown by the actual visitor. |
- Template Parameters
-
Visitor | type of the visitor functor. |
- Parameters
-
[in] | visitor | Functor visitor that shal derive from boost::static_visitor . |
[in] | visitable | other geometries set to visit along side with the current geometries set instance. |
Definition at line 126 of file otbGeometriesSet.h.
References m_GeometriesSet.
◆ CreateAnother()
virtual::itk::LightObject::Pointer otb::GeometriesSet::CreateAnother |
( |
void |
| ) |
const |
ITK method for creation through the object factory.
◆ GetImageReference()
◆ GetNameOfClass()
virtual const char* otb::GeometriesSet::GetNameOfClass |
( |
| ) |
const |
|
virtual |
Run-time type information (and related methods).
◆ IsSet()
bool otb::GeometriesSet::IsSet |
( |
| ) |
const |
Does it contain a geometries set ?.
◆ New() [1/3]
static Pointer otb::GeometriesSet::New |
( |
| ) |
|
|
static |
ITK method for creation through the object factory.
◆ New() [2/3]
Direct builder from an existing otb::DataSource
.
◆ New() [3/3]
Direct builder from an existing otb::Layer
.
◆ PrintSelf()
void otb::GeometriesSet::PrintSelf |
( |
std::ostream & |
os, |
|
|
itk::Indent |
indent |
|
) |
| const |
|
overrideprotected |
◆ Set() [1/2]
◆ Set() [2/2]
◆ SetImageReference()
void otb::GeometriesSet::SetImageReference |
( |
ImageReference const & |
imageReference | ) |
|
|
inline |
◆ m_GeometriesSet
◆ m_ImageReference
The documentation for this class was generated from the following file: