ImFusion C++ SDK 4.4.0
ImFusion::Dicom::SegmentItem Class Reference

#include <ImFusion/Dicom/DicomIOD_SegmentationStorage.h>

Element in the (0062,0002) SegmentSequence. More...

Inheritance diagram for ImFusion::Dicom::SegmentItem:

Detailed Description

Element in the (0062,0002) SegmentSequence.

Classes

class  SegmentedPropertyCode

Public Member Functions

 SegmentItem (DcmItem &item, bool createSequence=false)
void configure (const Properties *p) override
 Configure this object instance by de-serializing the given Properties.
void configuration (Properties *p) const override
 Serialize the current object configuration into the given Properties object.
vec4 color () const
void setColor (const vec4 &c)
Public Member Functions inherited from ImFusion::Dicom::ConfigurableSequenceItem
 ConfigurableSequenceItem (DcmItem &item)
Public Member Functions inherited from ImFusion::Dicom::SequenceItem
 SequenceItem (DcmItem &item)
 Creates a new sequence that retrieves its elements from item.
DcmItem & dataset () override
 Returns the DICOM dataset/item to retrieve the elements from.
Public Member Functions inherited from ImFusion::Dicom::ElementList
const std::vector< ElementBase * > & elements () const
 List of all elements.
Public Member Functions inherited from ImFusion::Dicom::ErrorRecorder
virtual void * registerErrorHandler (ErrorCallback handler)
 Registers a new handler callback function.
virtual void unregisterErrorHandler (void *handler)
 Removes a previously registered handler again.
void * forwardErrors (const ErrorRecorder *otherRecorder)
 Convenient function to forward all errors registered to this recorder to another recorder.
virtual void registerError (const Error &error) const
 Sends the given error to all error handler callbacks.
void registerError (Error::Code code, Error::Type type, const std::string &details, TagProxy tag=TagProxy()) const
Public Member Functions inherited from ImFusion::Configurable
virtual void configureDefaults ()
 Retrieve the properties of this object, replaces values with their defaults and sets it again.
void registerParameter (ParameterBase *param)
 Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
void unregisterParameter (const ParameterBase *param)
 Remove the given Parameter or SubProperty from the list of registered parameters.
 Configurable (const Configurable &rhs)
 Configurable (Configurable &&rhs) noexcept
Configurable & operator= (const Configurable &)
Configurable & operator= (Configurable &&) noexcept

Public Attributes

Sequence< SegmentedPropertyCodesegmentedPropertyCategoryCodeSequence
Sequence< SegmentedPropertyCodesegmentedPropertyTypeCodeSequence
Element< int > segmentNumber
Element< int > pixelValue
Element< std::stringsegmentLabel
Element< std::stringsegmentAlgorithmType
Element< std::stringsegmentAlgorithmName
Element< std::vector< int > > recommendedDisplayCIELabValue
Element< std::stringtrackingID
Element< std::stringtrackingUID
Public Attributes inherited from ImFusion::Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.

Additional Inherited Members

Public Types inherited from ImFusion::Dicom::ErrorRecorder
using ErrorCallback = std::function<void(const Error&)>
 Alias for a function to call for each error recorded.
Protected Member Functions inherited from ImFusion::Utils::NotCopyable
 NotCopyable (NotCopyable &&) noexcept=default
NotCopyable & operator= (NotCopyable &&) noexcept=default
 NotCopyable (const NotCopyable &)=delete
NotCopyable & operator= (const NotCopyable &)=delete
Static Protected Member Functions inherited from ImFusion::Dicom::ConfigurableSequenceItem
template<typename T>
static void setElement (const Properties &p, Element< T > &element, const std::string &name)
template<typename T>
static void getElement (Properties &p, const Element< T > &element, const std::string &name)
template<typename T>
static void getElement (Properties &p, const Element< T > &element, const std::string &name, const T &defaultValue)
static void getElement (Properties &p, const Element< std::string > &element, const std::string &name, const std::string &defaultValue)
Protected Attributes inherited from ImFusion::Dicom::ElementList
std::vector< ElementBase * > m_elements
 List of all elements.
Protected Attributes inherited from ImFusion::Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.

Member Function Documentation

◆ configure()

void ImFusion::Dicom::SegmentItem::configure ( const Properties * p)
overridevirtual

Configure this object instance by de-serializing the given Properties.

The default implementation will do so automatically for all registered Parameter and SubProperty instances.

See also
configuration() for the inverse functionality

Reimplemented from ImFusion::Configurable.

◆ configuration()

void ImFusion::Dicom::SegmentItem::configuration ( Properties * p) const
overridevirtual

Serialize the current object configuration into the given Properties object.

The default implementation will do so automatically for all registered Parameter and SubProperty instances.

See also
configure() for the inverse functionality

Reimplemented from ImFusion::Configurable.


The documentation for this class was generated from the following file:
  • ImFusion/Dicom/DicomIOD_SegmentationStorage.h
Search Tab / S to search, Esc to close