ImFusion SDK 4.3
TrackingInstrumentFiducialsData Class Reference

#include <ImFusion/Base/TrackingInstrumentFiducialsData.h>

Data component to store raw fiducial locations from optical tracking sequences. More...

+ Inheritance diagram for TrackingInstrumentFiducialsData:

Detailed Description

Data component to store raw fiducial locations from optical tracking sequences.

Public Member Functions

bool operator== (const TrackingInstrumentFiducialsData &other) const
 
std::string id () const override
 Returns a unique string identifier for this type of data component.
 
bool hasQualities () const
 
bool hasInstrumentAssignments () const
 
bool hasPixelErrors () const
 
bool hasTriangulationErrors () const
 
bool hasPixelCounts () const
 
bool hasInstrumentIdAssignments () const
 
- Public Member Functions inherited from DataComponent< TrackingInstrumentFiducialsData >
std::unique_ptr< DataComponentBaseclone () const override
 Creates a clone of this data component.
 
std::unique_ptr< SubclasscloneDerived () const
 
bool assign (const DataComponentBase &other) override
 Assigns the content of other to this data component.
 
bool equals (const DataComponentBase &other) const override
 Compares this data component to other for equality.
 
- 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
 
- Public Member Functions inherited from BinarySerializable
std::string saveToString () const
 Saves the state of this object into a string. Internally uses saveToBuffer.
 
void loadFromString (const std::string &str)
 Restores the state of this object from a string, internally using loadFromBuffer.
 

Public Attributes

std::vector< vec3 > m_positions
 3D fiducial position required
 
std::vector< int32_t > m_instrumentAssignments
 Index of tracking instrument this fiducial belongs to, or -1.
 
std::vector< uint64_t > m_instrumentIdAssignments
 Hash value of the tracking instrument id this fiducial belongs to, or hash of "".
 
std::vector< double > m_qualities
 Fiducial quality [0,1], optional.
 
std::vector< double > m_pixelErrors
 Epipolar pixel error, optional.
 
std::vector< double > m_triagErrors
 Triangulation error in mm, optional.
 
std::vector< uint32_t > m_pixelCountsLeft
 Number of pixels in left image, optional.
 
std::vector< uint32_t > m_pixelCountsRight
 Number of pixels in right image, optional.
 
- Public Attributes inherited from Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
 
void configure (const Properties *p) override
 \ Name Configurable Interface
 
void configuration (Properties *p) const override
 Serialize the current object configuration into the given Properties object.
 
void configurationHumanReadable (Properties *p) const
 
size_t saveBufferSize () const override
 \ Name BinarySerializable Interface
 
void loadFromBuffer (const char *buffer, size_t len) override
 Restores the state of this object from a memory buffer, using maximum len bytes.
 
void saveToBuffer (char *buffer) const override
 Saves the state of this object into a memory buffer, using maximum saveBufferSize() bytes.
 

Additional Inherited Members

- Protected Member Functions inherited from DataComponentBase
 DataComponentBase (const DataComponentBase &)=default
 
DataComponentBaseoperator= (const DataComponentBase &other)=default
 
- Protected Member Functions inherited from BinarySerializable
template<typename T>
size_t serializeMember (char *&buffer, const T *data, size_t n=1) const
 Convenience method to memcpy n*sizeof(T) bytes of data to buffer, followed by an increment of buffer by n*sizeof(T).
 
template<typename T>
size_t deserializeMember (const char *&buffer, T *data, size_t n=1)
 Convenience method to memcpy n*sizeof(T) bytes of buffer to data, followed by an increment of buffer by n*sizeof(T).
 
- Protected Attributes inherited from Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.
 

Member Function Documentation

◆ id()

std::string id ( ) const
overridevirtual

Returns a unique string identifier for this type of data component.

Note
To avoid conflicts make sure to include potential plugin names into this ID. Due to the modular architecture of the ImFusion library, uniqueness of IDs cannot be checked at compile time. However, DataComponentFactory will check the uniqueness of the ID during registration.

Implements DataComponentBase.

◆ configure()

void configure ( const Properties * p)
overridevirtual

\ Name Configurable Interface

Reimplemented from Configurable.

◆ configuration()

void 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 Configurable.

◆ saveBufferSize()

size_t saveBufferSize ( ) const
overridevirtual

\ Name BinarySerializable Interface

Implements BinarySerializable.

◆ loadFromBuffer()

void loadFromBuffer ( const char * buffer,
size_t len )
overridevirtual

Restores the state of this object from a memory buffer, using maximum len bytes.

Implements BinarySerializable.

◆ saveToBuffer()

void saveToBuffer ( char * buffer) const
overridevirtual

Saves the state of this object into a memory buffer, using maximum saveBufferSize() bytes.

Implements BinarySerializable.

◆ hasInstrumentAssignments()

bool hasInstrumentAssignments ( ) const
Deprecated
"Instrument assignment by index is deprecated. Use assignment by ID instead"

Member Data Documentation

◆ m_instrumentAssignments

std::vector<int32_t> m_instrumentAssignments

Index of tracking instrument this fiducial belongs to, or -1.

Deprecated
"Instrument assignment by index is deprecated. Use assignment by ID instead"

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