![]() |
ImFusion C++ SDK 4.5.0
|
#include <ImFusion/GUI/DefaultDataAnnotationFactory.h>
Factory for default data annotations. More...
Factory for default data annotations.
Public Member Functions | |
| InteractiveObject * | createDataAnnotation (const std::string &name, Data &data) const override |
| Create data annotation. | |
| std::vector< std::string > | compatibleDataAnnotations (Data &data) const override |
| Return true when a data object supports having a data annotation. | |
| std::string | dataDescription (const Data &data) const override |
| Return a description string to be shown in the data model for a data type. | |
| std::string | dataIconPath (const Data &data) const override |
| Return a file path to an icon representing a data type, may point to a Qt resource. | |
| std::vector< DataAttribute > | dataAttributes (const Data &data) const override |
| Return a list of attributes to be shown in the DataWidget GUI for a data type. | |
| std::unique_ptr< Data > | cloneData (const Data *data) const override |
| Return a clone of a given Data instance. | |
|
overridevirtual |
Create data annotation.
| data | input data |
Implements ImFusion::DataAnnotationFactory.
|
overridevirtual |
Return true when a data object supports having a data annotation.
Implements ImFusion::DataAnnotationFactory.
|
overridevirtual |
Return a description string to be shown in the data model for a data type.
Return an empty string for unsupported types.
Reimplemented from ImFusion::DataAnnotationFactory.
|
overridevirtual |
Return a file path to an icon representing a data type, may point to a Qt resource.
Return an empty string for unsupported types.
Reimplemented from ImFusion::DataAnnotationFactory.
|
overridevirtual |
Return a list of attributes to be shown in the DataWidget GUI for a data type.
Reimplemented from ImFusion::DataAnnotationFactory.
|
overridevirtual |
Return a clone of a given Data instance.
This allows plugins to expose cloning logics for custom data types to the base ImFusionLib.
Reimplemented from ImFusion::DataAnnotationFactory.