ITK
6.0.0
Insight Toolkit
|
#include <itkAttributeLabelObject.h>
A LabelObject with a generic attribute.
The attribute type is defined in the third template parameter. The attribute is then accessible with the GetAttribute() and SetAttribute methods or through the accessor itk::Functor::AttributeLabelObjectAccessor.
This implementation was taken from the Insight Journal paper: https://doi.org/10.54294/q6auw4
Definition at line 73 of file itkAttributeLabelObject.h.
Public Member Functions | |
template<typename TSourceLabelObject > | |
void | CopyAllFrom (const TSourceLabelObject *src) |
template<typename TSourceLabelObject > | |
void | CopyAttributesFrom (const TSourceLabelObject *src) |
AttributeValueType | GetAttribute () |
const AttributeValueType & | GetAttribute () const |
const char * | GetNameOfClass () const override |
void | SetAttribute (const AttributeValueType &v) |
Public Member Functions inherited from itk::LabelObject< TLabel, VImageDimension > | |
void | AddIndex (const IndexType &idx) |
void | AddLine (const IndexType &idx, const LengthType &length) |
void | AddLine (const LineType &line) |
void | Clear () |
template<typename TSourceLabelObject > | |
void | CopyAllFrom (const TSourceLabelObject *src) |
template<typename TSourceLabelObject > | |
void | CopyAttributesFrom (const TSourceLabelObject *src) |
template<typename TSourceLabelObject > | |
void | CopyLinesFrom (const TSourceLabelObject *src) |
bool | Empty () const |
IndexType | GetIndex (SizeValueType offset) const |
const LabelType & | GetLabel () const |
LineType & | GetLine (SizeValueType i) |
const LineType & | GetLine (SizeValueType i) const |
const char * | GetNameOfClass () const override |
SizeValueType | GetNumberOfLines () const |
bool | HasIndex (const IndexType &idx) const |
void | Optimize () |
bool | RemoveIndex (const IndexType &idx) |
void | SetLabel (const LabelType &label) |
void | Shift (OffsetType offset) |
SizeValueType | Size () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual const char * | GetNameOfClass () const |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Register () const |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const noexcept |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::LabelObject< TLabel, VImageDimension > | |
static AttributeType | GetAttributeFromName (const std::string &s) |
static std::string | GetNameFromAttribute (const AttributeType &a) |
static Pointer | New () |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = VImageDimension |
Static Public Attributes inherited from itk::LabelObject< TLabel, VImageDimension > | |
static constexpr unsigned int | ImageDimension = VImageDimension |
static constexpr AttributeType | LABEL = 0 |
Protected Member Functions | |
AttributeLabelObject ()=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
Protected Member Functions inherited from itk::LabelObject< TLabel, VImageDimension > | |
LabelObject () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
AttributeValueType | m_Attribute {} |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::AttributeValueType = TAttributeValue |
Definition at line 104 of file itkAttributeLabelObject.h.
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::ConstPointer = SmartPointer<const Self> |
Definition at line 83 of file itkAttributeLabelObject.h.
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::ConstWeakPointer = WeakPointer<const Self> |
Definition at line 84 of file itkAttributeLabelObject.h.
using itk::LabelObject< TLabel, VImageDimension >::IndexType = Index<VImageDimension> |
Definition at line 87 of file itkLabelObject.h.
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::LabelMapType = LabelMap<Self> |
Definition at line 92 of file itkAttributeLabelObject.h.
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::LabelObjectType = typename Superclass::LabelObjectType |
Definition at line 82 of file itkAttributeLabelObject.h.
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::LabelType = TLabel |
Definition at line 98 of file itkAttributeLabelObject.h.
using itk::LabelObject< TLabel, VImageDimension >::LengthType = typename LineType::LengthType |
Definition at line 91 of file itkLabelObject.h.
using itk::LabelObject< TLabel, VImageDimension >::LineType = LabelObjectLine<VImageDimension> |
Definition at line 90 of file itkLabelObject.h.
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::Pointer = SmartPointer<Self> |
Definition at line 81 of file itkAttributeLabelObject.h.
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::Self = AttributeLabelObject |
Standard class type aliases
Definition at line 79 of file itkAttributeLabelObject.h.
using itk::AttributeLabelObject< TLabel, VImageDimension, TAttributeValue >::Superclass = LabelObject<TLabel, VImageDimension> |
Definition at line 80 of file itkAttributeLabelObject.h.
|
protecteddefault |
|
inline |
Definition at line 136 of file itkAttributeLabelObject.h.
|
inline |
Definition at line 126 of file itkAttributeLabelObject.h.
|
inline |
Definition at line 119 of file itkAttributeLabelObject.h.
|
inline |
Definition at line 113 of file itkAttributeLabelObject.h.
|
overridevirtual |
Reimplemented from itk::LightObject.
|
static |
Method for creation through the object factory.
|
inlineoverrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::LightObject.
Definition at line 148 of file itkAttributeLabelObject.h.
|
inline |
Definition at line 107 of file itkAttributeLabelObject.h.
|
staticconstexpr |
Definition at line 94 of file itkAttributeLabelObject.h.
|
private |
Definition at line 156 of file itkAttributeLabelObject.h.