OTB  9.0.0
Orfeo Toolbox
Classes | Public Types | List of all members
otb::DataNode< TPrecision, VDimension, TValuePrecision > Class Template Reference

#include <otbDataNode.h>

+ Inheritance diagram for otb::DataNode< TPrecision, VDimension, TValuePrecision >:
+ Collaboration diagram for otb::DataNode< TPrecision, VDimension, TValuePrecision >:

Classes

struct  DataType
 

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef DataNode Self
 
typedef itk::Object Superclass
 
typedef TPrecision PrecisionType
 
typedef TValuePrecision ValuePrecisionType
 
typedef itk::Point< PrecisionType, VDimension > PointType
 
typedef otb::PolyLineParametricPathWithValue< ValuePrecisionType, VDimension > LineType
 
typedef LineType::Pointer LinePointerType
 
typedef LineType::ConstPointer LineConstPointerType
 
typedef Polygon< ValuePrecisionTypePolygonType
 
typedef PolygonType::VertexListType VertexListType
 
typedef VertexListType::ConstPointer VertexListConstPointerType
 
typedef PolygonType::Pointer PolygonPointerType
 
typedef PolygonType::ConstPointer PolygonConstPointerType
 
typedef ObjectList< PolygonTypePolygonListType
 
typedef PolygonListType::Pointer PolygonListPointerType
 
typedef PolygonListType::ConstPointer PolygonListConstPointerType
 
static const unsigned int Dimension = VDimension
 
NodeType m_NodeType
 
std::string m_NodeId
 
DataType m_Data
 
static Pointer New ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual NodeType GetNodeType () const
 
virtual const char * GetNodeId () const
 
virtual void SetNodeId (const char *_arg)
 
void SetNodeType (NodeType type)
 
std::string GetNodeTypeAsString () const
 
PointType GetPoint () const
 
LinePointerType GetLine () const
 
PolygonPointerType GetPolygonExteriorRing () const
 
PolygonListPointerType GetPolygonInteriorRings () const
 
void SetPoint (PointType point)
 
void SetLine (LineType *line)
 
void SetPolygonExteriorRing (PolygonType *polygon)
 
void SetPolygonInteriorRings (PolygonListType *polygonList)
 
bool IsDocument () const
 
bool IsRoot () const
 
bool IsFolder () const
 
bool IsPointFeature () const
 
bool IsLineFeature () const
 
bool IsPolygonFeature () const
 
bool IsMultiPointFeature () const
 
bool IsMultiLineFeature () const
 
bool IsMultiPolygonFeature () const
 
bool IsCollectionFeature () const
 
void SetFieldAsString (const std::string &key, const std::string &value)
 
std::string GetFieldAsString (const std::string &key) const
 
void SetFieldAsInt (const std::string &key, int value)
 
int GetFieldAsInt (const std::string &key) const
 
void SetFieldAsDouble (const std::string &key, double value)
 
double GetFieldAsDouble (const std::string &key) const
 
bool HasField (const std::string &key) const
 
void CopyFieldList (const DataNode *dataNode)
 
std::vector< std::string > GetFieldList () const
 
double EuclideanDistanceMetric (const DataNode *node)
 
double EuclideanDistanceMetric (const PointType point)
 
bool Intersects (const DataNode *node)
 
bool Within (const DataNode *node)
 
 DataNode ()
 
 ~DataNode () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
OGRGeometry * ConvertDataNodeToOGRGeometry (const DataNode *dataNode)
 
 DataNode (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
class otb::DataNode< TPrecision, VDimension, TValuePrecision >

This class represents a node of data in a vector data hierarchy.

A DataNode has a type represented by the NodeType enumeration. Depending on its type, it can have associated data such as Point, Line or Polygon.

A flag indicates if the data are valid or not.

A DataNode has also a dictionary of fields which can be used to store associated data. Depending on the writing vector data file format, fields will be used by the writing driver.

The three templates indicate

See also
VectorData

Definition at line 73 of file otbDataNode.h.

Member Typedef Documentation

◆ ConstPointer

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef itk::SmartPointer<const Self> otb::DataNode< TPrecision, VDimension, TValuePrecision >::ConstPointer

Definition at line 80 of file otbDataNode.h.

◆ LineConstPointerType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef LineType::ConstPointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::LineConstPointerType

Template parameters typedefs

Definition at line 96 of file otbDataNode.h.

◆ LinePointerType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef LineType::Pointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::LinePointerType

Template parameters typedefs

Definition at line 95 of file otbDataNode.h.

◆ LineType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef otb::PolyLineParametricPathWithValue<ValuePrecisionType, VDimension> otb::DataNode< TPrecision, VDimension, TValuePrecision >::LineType

Template parameters typedefs

Definition at line 94 of file otbDataNode.h.

◆ Pointer

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef itk::SmartPointer<Self> otb::DataNode< TPrecision, VDimension, TValuePrecision >::Pointer

Definition at line 79 of file otbDataNode.h.

◆ PointType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef itk::Point<PrecisionType, VDimension> otb::DataNode< TPrecision, VDimension, TValuePrecision >::PointType

Internal data typedef

Definition at line 93 of file otbDataNode.h.

◆ PolygonConstPointerType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef PolygonType::ConstPointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::PolygonConstPointerType

Template parameters typedefs

Definition at line 101 of file otbDataNode.h.

◆ PolygonListConstPointerType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef PolygonListType::ConstPointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::PolygonListConstPointerType

Template parameters typedefs

Definition at line 104 of file otbDataNode.h.

◆ PolygonListPointerType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef PolygonListType::Pointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::PolygonListPointerType

Template parameters typedefs

Definition at line 103 of file otbDataNode.h.

◆ PolygonListType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef ObjectList<PolygonType> otb::DataNode< TPrecision, VDimension, TValuePrecision >::PolygonListType

Template parameters typedefs

Definition at line 102 of file otbDataNode.h.

◆ PolygonPointerType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef PolygonType::Pointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::PolygonPointerType

Template parameters typedefs

Definition at line 100 of file otbDataNode.h.

◆ PolygonType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef Polygon<ValuePrecisionType> otb::DataNode< TPrecision, VDimension, TValuePrecision >::PolygonType

Template parameters typedefs

Definition at line 97 of file otbDataNode.h.

◆ PrecisionType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef TPrecision otb::DataNode< TPrecision, VDimension, TValuePrecision >::PrecisionType

Template parameters typedefs

Definition at line 84 of file otbDataNode.h.

◆ Self

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef DataNode otb::DataNode< TPrecision, VDimension, TValuePrecision >::Self

Standard class typedef

Definition at line 77 of file otbDataNode.h.

◆ Superclass

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef itk::Object otb::DataNode< TPrecision, VDimension, TValuePrecision >::Superclass

Definition at line 78 of file otbDataNode.h.

◆ ValuePrecisionType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef TValuePrecision otb::DataNode< TPrecision, VDimension, TValuePrecision >::ValuePrecisionType

Template parameters typedefs

Definition at line 89 of file otbDataNode.h.

◆ VertexListConstPointerType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef VertexListType::ConstPointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::VertexListConstPointerType

Template parameters typedefs

Definition at line 99 of file otbDataNode.h.

◆ VertexListType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
typedef PolygonType::VertexListType otb::DataNode< TPrecision, VDimension, TValuePrecision >::VertexListType

Template parameters typedefs

Definition at line 98 of file otbDataNode.h.

Constructor & Destructor Documentation

◆ DataNode() [1/2]

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
otb::DataNode< TPrecision, VDimension, TValuePrecision >::DataNode
protected

Clear all fields. Constructor

Definition at line 30 of file otbDataNode.hxx.

References otb::ROOT.

◆ ~DataNode()

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
otb::DataNode< TPrecision, VDimension, TValuePrecision >::~DataNode ( )
inlineoverrideprotected

Destructor

Definition at line 315 of file otbDataNode.h.

◆ DataNode() [2/2]

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
otb::DataNode< TPrecision, VDimension, TValuePrecision >::DataNode ( const Self )
privatedelete

Template parameters typedefs

Member Function Documentation

◆ ConvertDataNodeToOGRGeometry()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
OGRGeometry * otb::DataNode< TPrecision, VDimension, TValuePrecision >::ConvertDataNodeToOGRGeometry ( const DataNode< TPrecision, VDimension, TValuePrecision > *  dataNode)
protected

◆ CopyFieldList()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::CopyFieldList ( const DataNode< TPrecision, VDimension, TValuePrecision > *  dataNode)

Copy the field list from a DataNode

Parameters
dataNodedatanode where to get the keywordlist to copy.

Definition at line 361 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::CopyFieldList(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ CreateAnother()

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
virtual::itk::LightObject::Pointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::CreateAnother ( void  ) const

Template parameters typedefs

◆ EuclideanDistanceMetric() [1/2]

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
double otb::DataNode< TPrecision, VDimension, TValuePrecision >::EuclideanDistanceMetric ( const DataNode< TPrecision, VDimension, TValuePrecision > *  node)
Returns
the distance to a point

Definition at line 524 of file otbDataNode.hxx.

◆ EuclideanDistanceMetric() [2/2]

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
double otb::DataNode< TPrecision, VDimension, TValuePrecision >::EuclideanDistanceMetric ( const PointType  point)

Template parameters typedefs

Definition at line 535 of file otbDataNode.hxx.

◆ GetFieldAsDouble()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
double otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetFieldAsDouble ( const std::string &  key) const

Returns the value associated with a field name.

Parameters
keyThe name of the field.
Returns
The value of the field. A default value is returned if the key was not found.

Definition at line 250 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::GetFieldAsDouble(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ GetFieldAsInt()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
int otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetFieldAsInt ( const std::string &  key) const

Returns the value associated with a field name.

Parameters
keyThe name of the field.
Returns
The value of the field. A default value is returned if the key was not found.

Definition at line 291 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::GetFieldAsInt(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ GetFieldAsString()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
std::string otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetFieldAsString ( const std::string &  key) const

Returns the value associated with a field name.

Parameters
keyThe name of the field.
Returns
The value of the field. A default value is returned if the key was not found.

Definition at line 279 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::GetFieldAsString(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ GetFieldList()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
std::vector< std::string > otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetFieldList
Returns
the field list in the node.

Definition at line 375 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::GetFieldList(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ GetLine()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
DataNode< TPrecision, VDimension, TValuePrecision >::LinePointerType otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetLine

Get the line data, when valid.

Returns
The line.

Definition at line 97 of file otbDataNode.hxx.

Referenced by otb::DataNode< TPrecision, VDimension, TValuePrecision >::ConvertDataNodeToOGRGeometry().

◆ GetNameOfClass()

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
virtual const char* otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetNameOfClass ( ) const
virtual

Template parameters typedefs

◆ GetNodeId()

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
virtual const char* otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetNodeId ( ) const
virtual

Template parameters typedefs

◆ GetNodeType()

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
virtual NodeType otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetNodeType ( ) const
virtual

◆ GetNodeTypeAsString()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
std::string otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetNodeTypeAsString

◆ GetPoint()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
DataNode< TPrecision, VDimension, TValuePrecision >::PointType otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetPoint

Get the point data, when valid.

Returns
The point.

Definition at line 84 of file otbDataNode.hxx.

Referenced by otb::DataNode< TPrecision, VDimension, TValuePrecision >::ConvertDataNodeToOGRGeometry().

◆ GetPolygonExteriorRing()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
DataNode< TPrecision, VDimension, TValuePrecision >::PolygonPointerType otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetPolygonExteriorRing

Get the polygon exterior ring data, when valid.

Returns
The polygon exterior ring.

Definition at line 111 of file otbDataNode.hxx.

Referenced by otb::DataNode< TPrecision, VDimension, TValuePrecision >::ConvertDataNodeToOGRGeometry().

◆ GetPolygonInteriorRings()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
DataNode< TPrecision, VDimension, TValuePrecision >::PolygonListPointerType otb::DataNode< TPrecision, VDimension, TValuePrecision >::GetPolygonInteriorRings

Get the polygon interior rings data, when valid.

Returns
The polygon interior rings list.

Definition at line 126 of file otbDataNode.hxx.

◆ HasField()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::HasField ( const std::string &  key) const

Remove the field associated with the given key, if possible.

Parameters
keyThe name of the field.
Returns
True if the node contains the field named after the given key.
Parameters
keyThe name of the field.

Definition at line 321 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::HasField(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ Intersects()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::Intersects ( const DataNode< TPrecision, VDimension, TValuePrecision > *  node)
Returns
true if the two datanodes intersects

Definition at line 550 of file otbDataNode.hxx.

◆ IsCollectionFeature()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsCollectionFeature
Returns
True if node type is FEATURE_COLLECTION.

Definition at line 446 of file otbDataNode.hxx.

References otb::FEATURE_COLLECTION.

◆ IsDocument()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsDocument
Returns
True if node type is DOCUMENT.

Definition at line 397 of file otbDataNode.hxx.

References otb::DOCUMENT.

◆ IsFolder()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsFolder
Returns
True if node type is FOLDER.

Definition at line 407 of file otbDataNode.hxx.

References otb::FOLDER.

◆ IsLineFeature()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsLineFeature
Returns
True if node type is FEATURE_LINE.

Definition at line 417 of file otbDataNode.hxx.

References otb::FEATURE_LINE.

◆ IsMultiLineFeature()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsMultiLineFeature
Returns
True if node type is FEATURE_MULTILINE.

Definition at line 434 of file otbDataNode.hxx.

References otb::FEATURE_MULTILINE.

◆ IsMultiPointFeature()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsMultiPointFeature
Returns
True if node type is FEATURE_MULTIPOINT.

Definition at line 428 of file otbDataNode.hxx.

References otb::FEATURE_MULTIPOINT.

◆ IsMultiPolygonFeature()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsMultiPolygonFeature
Returns
True if node type is FEATURE_MULTIPOLYGON.

Definition at line 440 of file otbDataNode.hxx.

References otb::FEATURE_MULTIPOLYGON.

◆ IsPointFeature()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsPointFeature
Returns
True if node type is FEATURE_POINT.

Definition at line 412 of file otbDataNode.hxx.

References otb::FEATURE_POINT.

◆ IsPolygonFeature()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsPolygonFeature
Returns
True if node type is FEATURE_POLYGON.

Definition at line 422 of file otbDataNode.hxx.

References otb::FEATURE_POLYGON.

◆ IsRoot()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::IsRoot
Returns
True if node type is ROOT.

Definition at line 402 of file otbDataNode.hxx.

References otb::ROOT.

◆ New()

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
static Pointer otb::DataNode< TPrecision, VDimension, TValuePrecision >::New ( )
static

Standard macro

◆ operator=()

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::operator= ( const Self )
privatedelete

Template parameters typedefs

◆ PrintSelf()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

PrintSelf method

Definition at line 140 of file otbDataNode.hxx.

◆ SetFieldAsDouble()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetFieldAsDouble ( const std::string &  key,
double  value 
)

Add a field to the node.

Parameters
keyThe name of the field.
valueThe value of the field.

Definition at line 240 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::SetFieldAsDouble(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ SetFieldAsInt()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetFieldAsInt ( const std::string &  key,
int  value 
)

Add a field to the node.

Parameters
keyThe name of the field.
valueThe value of the field.

Definition at line 231 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::SetFieldAsInt(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ SetFieldAsString()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetFieldAsString ( const std::string &  key,
const std::string &  value 
)

Add a field to the node.

Parameters
keyThe name of the field.
valueThe value of the field.

Definition at line 222 of file otbDataNode.hxx.

References otb::VectorDataKeywordlist::SetFieldAsString(), and otb::MetaDataKey::VectorDataKeywordlistKey.

◆ SetLine()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetLine ( LineType line)

Set the line data. Node type is automatically set to FEATURE_LINE.

Parameters
lineThe line.

Definition at line 53 of file otbDataNode.hxx.

References otb::FEATURE_LINE.

◆ SetNodeId()

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
virtual void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetNodeId ( const char *  _arg)
virtual

Template parameters typedefs

◆ SetNodeType()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetNodeType ( NodeType  type)

Set the node type.

Parameters
typenode type.

Definition at line 38 of file otbDataNode.hxx.

◆ SetPoint()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetPoint ( PointType  point)

Set the point data. Node type is automatically set to FEATURE_POINT.

Parameters
pointthe point.

Definition at line 45 of file otbDataNode.hxx.

References otb::FEATURE_POINT.

◆ SetPolygonExteriorRing()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetPolygonExteriorRing ( PolygonType polygon)

Set the polygon exterior ring. Node type is automatically set to FEATURE_POLYGON.

Parameters
polygonThe polygon exterior ring.

Definition at line 60 of file otbDataNode.hxx.

References otb::FEATURE_POLYGON.

◆ SetPolygonInteriorRings()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
void otb::DataNode< TPrecision, VDimension, TValuePrecision >::SetPolygonInteriorRings ( PolygonListType polygonList)

Set the polygon interior rings. Node type is automatically set to FEATURE_POLYGON.

Parameters
polygonListThe polygon interior rings list.

Definition at line 72 of file otbDataNode.hxx.

References otb::FEATURE_POLYGON.

◆ Within()

template<class TPrecision , unsigned int VDimension, class TValuePrecision >
bool otb::DataNode< TPrecision, VDimension, TValuePrecision >::Within ( const DataNode< TPrecision, VDimension, TValuePrecision > *  node)
Returns
true if the two datanodes intersects

Definition at line 561 of file otbDataNode.hxx.

Member Data Documentation

◆ Dimension

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
const unsigned int otb::DataNode< TPrecision, VDimension, TValuePrecision >::Dimension = VDimension
static

Template parameters typedefs

Definition at line 90 of file otbDataNode.h.

◆ m_Data

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
DataType otb::DataNode< TPrecision, VDimension, TValuePrecision >::m_Data
private

The data associated with the node

Definition at line 345 of file otbDataNode.h.

◆ m_NodeId

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
std::string otb::DataNode< TPrecision, VDimension, TValuePrecision >::m_NodeId
private

The node id

Definition at line 342 of file otbDataNode.h.

◆ m_NodeType

template<class TPrecision = double, unsigned VDimension = 2, class TValuePrecision = double>
NodeType otb::DataNode< TPrecision, VDimension, TValuePrecision >::m_NodeType
private

The node type

Definition at line 339 of file otbDataNode.h.


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