OTB
9.0.0
Orfeo Toolbox
|
#include <otbAttributesMapLabelObject.h>
Public Types | |
typedef AttributesMapType::const_iterator | AttributesMapConstIteratorType |
typedef AttributesMapType::iterator | AttributesMapIteratorType |
typedef std::map< std::string, AttributesValueType > | AttributesMapType |
typedef TAttributesValue | AttributesValueType |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::WeakPointer< const Self > | ConstWeakPointer |
typedef Superclass::IndexType | IndexType |
typedef itk::LabelMap< Self > | LabelMapType |
typedef Superclass::LabelObjectType | LabelObjectType |
typedef TLabel | LabelType |
typedef Superclass::LengthType | LengthType |
typedef Superclass::LineType | LineType |
typedef itk::SmartPointer< Self > | Pointer |
typedef PolygonType::Pointer | PolygonPointerType |
typedef Polygon< double > | PolygonType |
typedef AttributesMapLabelObject | Self |
typedef itk::LabelObject< TLabel, VImageDimension > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
void | SetAttribute (const char *name, AttributesValueType value) |
void | SetAttribute (const std::string &name, AttributesValueType value) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = VImageDimension |
AttributesMapType | m_Attributes |
PolygonPointerType | m_Polygon |
AttributesValueType | GetAttribute (const char *name) const |
unsigned int | GetNumberOfAttributes () const |
std::vector< std::string > | GetAvailableAttributes () const |
virtual void | CopyAttributesFrom (const LabelObjectType *lo) |
const PolygonType * | GetPolygon () const |
PolygonType * | GetPolygon () |
void | SetPolygon (PolygonType *p) |
AttributesMapLabelObject () | |
~AttributesMapLabelObject () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
AttributesMapLabelObject (const Self &)=delete | |
void | operator= (const Self &)=delete |
A LabelObject with a generic attributes map.
This class derives from itk::LabelObject and extends it to store pairs of key, value (of type TAttributesValue) in an internal map container.
As such it allows storing any custom attributes as necessary.
Definition at line 177 of file otbAttributesMapLabelObject.h.
typedef AttributesMapType::const_iterator otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::AttributesMapConstIteratorType |
Definition at line 211 of file otbAttributesMapLabelObject.h.
typedef AttributesMapType::iterator otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::AttributesMapIteratorType |
Definition at line 210 of file otbAttributesMapLabelObject.h.
typedef std::map<std::string, AttributesValueType> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::AttributesMapType |
Map container typedefs.
Definition at line 209 of file otbAttributesMapLabelObject.h.
typedef TAttributesValue otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::AttributesValueType |
Definition at line 201 of file otbAttributesMapLabelObject.h.
typedef itk::SmartPointer<const Self> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::ConstPointer |
Definition at line 185 of file otbAttributesMapLabelObject.h.
typedef itk::WeakPointer<const Self> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::ConstWeakPointer |
Definition at line 186 of file otbAttributesMapLabelObject.h.
typedef Superclass::IndexType otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::IndexType |
Definition at line 204 of file otbAttributesMapLabelObject.h.
typedef itk::LabelMap<Self> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LabelMapType |
Type of a label map using an AttributesMapLabelObject.
Definition at line 197 of file otbAttributesMapLabelObject.h.
typedef Superclass::LabelObjectType otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LabelObjectType |
Definition at line 183 of file otbAttributesMapLabelObject.h.
typedef TLabel otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LabelType |
Template parameters typedef.
Definition at line 200 of file otbAttributesMapLabelObject.h.
typedef Superclass::LengthType otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LengthType |
Definition at line 206 of file otbAttributesMapLabelObject.h.
typedef Superclass::LineType otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LineType |
Definition at line 205 of file otbAttributesMapLabelObject.h.
typedef itk::SmartPointer<Self> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::Pointer |
Definition at line 184 of file otbAttributesMapLabelObject.h.
typedef PolygonType::Pointer otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::PolygonPointerType |
Definition at line 215 of file otbAttributesMapLabelObject.h.
typedef Polygon<double> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::PolygonType |
Definition at line 214 of file otbAttributesMapLabelObject.h.
typedef AttributesMapLabelObject otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::Self |
Standard class typedefs
Definition at line 181 of file otbAttributesMapLabelObject.h.
typedef itk::LabelObject<TLabel, VImageDimension> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::Superclass |
Definition at line 182 of file otbAttributesMapLabelObject.h.
|
inlineprotected |
Constructor
Definition at line 313 of file otbAttributesMapLabelObject.h.
|
inlineoverrideprotected |
Destructor
Definition at line 318 of file otbAttributesMapLabelObject.h.
|
privatedelete |
The attributes map
|
inlinevirtual |
This method is overloaded to add the copy of the attributes map.
Reimplemented in otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >.
Definition at line 280 of file otbAttributesMapLabelObject.h.
References otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::m_Attributes.
virtual::itk::LightObject::Pointer otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::CreateAnother | ( | void | ) | const |
|
inline |
Returns the attribute corresponding to name
Definition at line 238 of file otbAttributesMapLabelObject.h.
|
inline |
Returns the list of available attributes
Definition at line 263 of file otbAttributesMapLabelObject.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented in otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >.
|
inline |
Returns the total number of attributes
Definition at line 255 of file otbAttributesMapLabelObject.h.
|
inline |
Return the polygon (non const version)
Definition at line 300 of file otbAttributesMapLabelObject.h.
|
inline |
Return the polygon (const version)
Definition at line 294 of file otbAttributesMapLabelObject.h.
|
static |
Method for creation through the object factory.
|
privatedelete |
The attributes map
|
inlineoverrideprotected |
The printself method
Definition at line 323 of file otbAttributesMapLabelObject.h.
|
inline |
Set an attribute value. If the key name already exists in the map, the value is overwritten.
Definition at line 221 of file otbAttributesMapLabelObject.h.
|
inline |
Set an attribute value. If the key name already exists in the map, the value is overwritten.
Definition at line 230 of file otbAttributesMapLabelObject.h.
|
inline |
Set the polygon
Definition at line 306 of file otbAttributesMapLabelObject.h.
|
static |
Definition at line 194 of file otbAttributesMapLabelObject.h.
|
private |
The attributes map
Definition at line 339 of file otbAttributesMapLabelObject.h.
Referenced by otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::CopyAttributesFrom().
|
private |
The polygon corresponding to the label object. Caution, this will be empty by default
Definition at line 343 of file otbAttributesMapLabelObject.h.