ImFusion C++ SDK 4.4.0
ImFusion::TagSystem Class Reference
Inheritance diagram for ImFusion::TagSystem:

Classes

struct  RemovedTagInfo

Public Types

using ValueMigration = std::function<std::vector<TagValue>(const std::vector<TagValue>&)>

Public Member Functions

const std::vector< TagType > & tagTypes () const
bool defineNewTags (std::vector< TagType > newTagTypes)
bool addNewTag (size_t index, TagType newTagType)
bool appendNewBoolTag (QString name, QColor color)
bool appendNewEnumTag (QString name, QColor color, std::vector< QString > values)
bool appendNewFloatTag (QString name, QColor color)
bool changeTag (size_t index, const TagType &changedTag)
bool moveTag (size_t from, size_t to)
bool deleteTag (size_t index)
bool moveTag (const QString &id, size_t to)
bool changeTag (const QString &id, const TagType &newTagType)
bool deleteTag (const QString &id)
RemovedTagInfo getRemovedTagInfo (const std::vector< TagType > &newTagTypes) const
void configuration (Properties *p) const override
 Serialize the current object configuration into the given Properties object.
void configure (const Properties *p) override
 Configure this object instance by de-serializing the given Properties.
void configureFromRemote (const QJsonArray &)
std::vector< TagValuedefaultTagValues () const
bool checkConsistency () const
std::optional< size_t > tagIndexById (const QString &id) const
std::optional< size_t > tagIndexByName (const QString &name) 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

Signal signalTagsChangedPre
Signal< const ValueMigration & > signalTagsChangedPost
Public Attributes inherited from ImFusion::Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.

Additional Inherited Members

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

Member Function Documentation

◆ configuration()

void ImFusion::TagSystem::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.

◆ configure()

void ImFusion::TagSystem::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.


The documentation for this class was generated from the following file:
  • ImFusionLabels/lib/include/ImFusion/Labels/Core/TagSystem.h
Search Tab / S to search, Esc to close