ImFusion SDK 4.3
Contour Struct Reference

#include <ImFusion/Seg/ContoursStorageComponent.h>

Data Structure containing a vector of 3D points as well as metadata such as: More...

+ Inheritance diagram for Contour:

Detailed Description

Data Structure containing a vector of 3D points as well as metadata such as:

  • how the contour was created
  • the type of the line defining the contour
  • the frame where the contour was drawn
  • the label value
  • the name of the contour

Public Types

enum class  CreationMode {
  Unknown = 1 , AutomaticImageBasedTracking = 1 << 1 , AutomaticInterpolationImageBasedTracking = 1 << 2 , AutomaticModel = 1 << 3 ,
  AutomaticInterpolation = 1 << 4 , AutomaticFromLabelMap = 1 << 5 , Automatic = 0x3e , Manual = 1 << 6 ,
  All = 0xff
}
 
enum class  Type {
  Polyline , Spline , Loop , SmartSpline ,
  OpenSpline , OpenPolyline
}
 

Public Member Functions

void configure (const ImFusion::Properties *p) override
 Configure this object instance by de-serializing the given Properties.
 
void configuration (ImFusion::Properties *p) const override
 Serialize the current object configuration into the given Properties object.
 
std::unique_ptr< TypedImage< unsigned char > > labelMapFromContour (SharedImageSet &curData) const
 
- Public Member Functions inherited from 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
 
Configurableoperator= (const Configurable &)
 
Configurableoperator= (Configurable &&) noexcept
 

Static Public Member Functions

static std::string typeToString (const Seg::Contour::Type &type)
 
static Seg::Contour::Type stringToType (const std::string &type)
 

Public Attributes

CreationMode creationMode = CreationMode::Unknown
 
Type type
 
std::vector< vec3 > points
 
int labelValue = 1
 
int frame = 0
 
std::string name = ""
 
std::optional< int > marginOrRadius
 
std::optional< int > adaptiveness
 
Properties displayProperties
 
- Public Attributes inherited from Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
 

Additional Inherited Members

- Protected Attributes inherited from Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.
 

Member Function Documentation

◆ configure()

void configure ( const ImFusion::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 Configurable.

◆ configuration()

void configuration ( ImFusion::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 Configurable.


The documentation for this struct was generated from the following file:
Search Tab / S to search, Esc to close