OTB
9.0.0
Orfeo Toolbox
|
#include <otbVectorData.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< Self > | Pointer |
typedef VectorData | Self |
typedef itk::DataObject | Superclass |
typedef TPrecision | PrecisionType |
typedef TValuePrecision | ValuePrecisionType |
typedef otb::DataNode< TPrecision, VDimension, TValuePrecision > | DataNodeType |
typedef DataNodeType::Pointer | DataNodePointerType |
typedef itk::TreeContainer< DataNodePointerType > | DataTreeType |
typedef DataTreeType::Pointer | DataTreePointerType |
typedef DataNodeType::PointType | PointType |
typedef DataNodeType::LineType | LineType |
typedef DataNodeType::PolygonType | PolygonType |
typedef itk::Vector< double, 2 > | SpacingType |
typedef itk::Point< double, 2 > | OriginType |
static const unsigned int | Dimension = VDimension |
DataTreePointerType | m_DataTree |
SpacingType | m_Spacing |
OriginType | m_Origin |
static Pointer | New () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
itkGetObjectMacro (DataTree, DataTreeType) | |
virtual const DataTreeType * | GetDataTree () const |
virtual void | SetProjectionRef (const std::string &projectionRef) |
virtual std::string | GetProjectionRef () const |
virtual void | SetOrigin (OriginType _arg) |
virtual void | SetOrigin (const double origin[2]) |
virtual void | SetOrigin (const float origin[2]) |
virtual const OriginType & | GetOrigin () const |
virtual void | SetSpacing (const SpacingType &spacing) |
virtual void | SetSpacing (const double spacing[2]) |
virtual void | SetSpacing (const float spacing[2]) |
virtual const SpacingType & | GetSpacing () const |
virtual bool | Clear () |
virtual int | Size () const |
void | TransformPointToPhysicalPoint (const PointType &point, PointType &physicalPoint) const |
void | Graft (const itk::DataObject *data) override |
VectorData () | |
~VectorData () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
VectorData (const Self &)=delete | |
void | operator= (const Self &)=delete |
This class represents a hierarchy of vector data.
This class contains an itk::TreeContainer templated with otb::DataNode. It represents a tree structure of vector data. These data can be read from shapefiles or kml files for instance.
The internal tree can be walked with itk::TreeIteratorBase subclasses.
The three templates indicate
The elements in the VectorData have their coordinates in the projection specified by the WKT string. This class also offer the possibility to store the coordinates directly into an image coordinate system, using the origin and spacing in a similar way as the corresponding image.
Definition at line 58 of file otbVectorData.h.
typedef itk::SmartPointer<const Self> otb::VectorData< TPrecision, VDimension, TValuePrecision >::ConstPointer |
Definition at line 65 of file otbVectorData.h.
typedef DataNodeType::Pointer otb::VectorData< TPrecision, VDimension, TValuePrecision >::DataNodePointerType |
Template parameters typedef
Definition at line 78 of file otbVectorData.h.
typedef otb::DataNode<TPrecision, VDimension, TValuePrecision> otb::VectorData< TPrecision, VDimension, TValuePrecision >::DataNodeType |
Template parameters typedef
Definition at line 77 of file otbVectorData.h.
typedef DataTreeType::Pointer otb::VectorData< TPrecision, VDimension, TValuePrecision >::DataTreePointerType |
Template parameters typedef
Definition at line 80 of file otbVectorData.h.
typedef itk::TreeContainer<DataNodePointerType> otb::VectorData< TPrecision, VDimension, TValuePrecision >::DataTreeType |
Template parameters typedef
Definition at line 79 of file otbVectorData.h.
typedef DataNodeType::LineType otb::VectorData< TPrecision, VDimension, TValuePrecision >::LineType |
Template parameters typedef
Definition at line 83 of file otbVectorData.h.
typedef itk::Point<double, 2> otb::VectorData< TPrecision, VDimension, TValuePrecision >::OriginType |
Template parameters typedef
Definition at line 87 of file otbVectorData.h.
typedef itk::SmartPointer<Self> otb::VectorData< TPrecision, VDimension, TValuePrecision >::Pointer |
Definition at line 64 of file otbVectorData.h.
typedef DataNodeType::PointType otb::VectorData< TPrecision, VDimension, TValuePrecision >::PointType |
Template parameters typedef
Definition at line 82 of file otbVectorData.h.
typedef DataNodeType::PolygonType otb::VectorData< TPrecision, VDimension, TValuePrecision >::PolygonType |
Template parameters typedef
Definition at line 84 of file otbVectorData.h.
typedef TPrecision otb::VectorData< TPrecision, VDimension, TValuePrecision >::PrecisionType |
Template parameters typedef
Definition at line 74 of file otbVectorData.h.
typedef VectorData otb::VectorData< TPrecision, VDimension, TValuePrecision >::Self |
Standard class typedefs
Definition at line 62 of file otbVectorData.h.
typedef itk::Vector<double, 2> otb::VectorData< TPrecision, VDimension, TValuePrecision >::SpacingType |
Template parameters typedef
Definition at line 86 of file otbVectorData.h.
typedef itk::DataObject otb::VectorData< TPrecision, VDimension, TValuePrecision >::Superclass |
Definition at line 63 of file otbVectorData.h.
typedef TValuePrecision otb::VectorData< TPrecision, VDimension, TValuePrecision >::ValuePrecisionType |
Template parameters typedef
Definition at line 75 of file otbVectorData.h.
|
protected |
Constructor
Definition at line 32 of file otbVectorData.hxx.
|
inlineoverrideprotected |
Destructor
Definition at line 141 of file otbVectorData.h.
|
privatedelete |
Template parameters typedef
|
virtual |
Clear the vector data
Definition at line 106 of file otbVectorData.hxx.
virtual::itk::LightObject::Pointer otb::VectorData< TPrecision, VDimension, TValuePrecision >::CreateAnother | ( | void | ) | const |
Template parameters typedef
|
virtual |
Template parameters typedef
Referenced by otb::VectorData< TPrecision, VDimension, TValuePrecision >::Graft().
|
virtual |
Template parameters typedef
|
virtual |
Template parameters typedef
Referenced by otb::VectorData< TPrecision, VDimension, TValuePrecision >::Graft().
|
virtual |
Template parameters typedef
Definition at line 52 of file otbVectorData.hxx.
References otb::MetaDataKey::ProjectionRefKey.
Referenced by otb::VectorData< TPrecision, VDimension, TValuePrecision >::Graft().
|
virtual |
Template parameters typedef
Referenced by otb::VectorData< TPrecision, VDimension, TValuePrecision >::Graft().
|
override |
Graft the data and information from one VectorData to another. This is a convenience method to setup a second VectorData with all the meta information of another VectorData and use the same DataTree Note that this method is different than just using two SmartPointers to the same VectorData since separate DataObjects are still maintained. This method is similar to VectorDataSource::GraftOutput().
Definition at line 141 of file otbVectorData.hxx.
References otb::VectorData< TPrecision, VDimension, TValuePrecision >::GetDataTree(), otb::VectorData< TPrecision, VDimension, TValuePrecision >::GetOrigin(), otb::VectorData< TPrecision, VDimension, TValuePrecision >::GetProjectionRef(), and otb::VectorData< TPrecision, VDimension, TValuePrecision >::GetSpacing().
otb::VectorData< TPrecision, VDimension, TValuePrecision >::itkGetObjectMacro | ( | DataTree | , |
DataTreeType | |||
) |
Template parameters typedef
|
static |
Standard macros
|
privatedelete |
Template parameters typedef
|
overrideprotected |
PrintSelf method
Definition at line 118 of file otbVectorData.hxx.
|
virtual |
Template parameters typedef
Definition at line 90 of file otbVectorData.hxx.
|
virtual |
Template parameters typedef
Definition at line 97 of file otbVectorData.hxx.
|
virtual |
Set the origin of the vector data to put it in the corresponding image coordinates
|
virtual |
Template parameters typedef
Definition at line 43 of file otbVectorData.hxx.
References otb::MetaDataKey::ProjectionRefKey.
Referenced by otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::GenerateData().
|
virtual |
Template parameters typedef
Definition at line 74 of file otbVectorData.hxx.
|
virtual |
Template parameters typedef
Definition at line 81 of file otbVectorData.hxx.
|
virtual |
Set the spacing of the vector data to put it in the corresponding image coordinates
Definition at line 63 of file otbVectorData.hxx.
|
virtual |
Return the number of element in the tree
Definition at line 112 of file otbVectorData.hxx.
|
inline |
Template parameters typedef
Definition at line 121 of file otbVectorData.h.
References otb::VectorData< TPrecision, VDimension, TValuePrecision >::m_Origin, and otb::VectorData< TPrecision, VDimension, TValuePrecision >::m_Spacing.
|
static |
Template parameters typedef
Definition at line 70 of file otbVectorData.h.
|
private |
Data tree
Definition at line 153 of file otbVectorData.h.
|
private |
Template parameters typedef
Definition at line 156 of file otbVectorData.h.
Referenced by otb::VectorData< TPrecision, VDimension, TValuePrecision >::TransformPointToPhysicalPoint().
|
private |
Template parameters typedef
Definition at line 155 of file otbVectorData.h.
Referenced by otb::VectorData< TPrecision, VDimension, TValuePrecision >::TransformPointToPhysicalPoint().