![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/DataAnnotationFactory.h>
Interface for data annotation factories. More...
Interface for data annotation factories.
Classes | |
struct | DataAttribute |
Public Member Functions | |
virtual InteractiveObject * | createDataAnnotation (const std::string &name, Data &data) const =0 |
Create data annotation. | |
virtual std::vector< std::string > | compatibleDataAnnotations (Data &data) const =0 |
Return true when a data object supports having a data annotation. | |
virtual std::string | dataDescription (const Data &data) const |
Return a description string to be shown in the data model for a data type. | |
virtual std::string | dataIconPath (const Data &data) const |
Return a file path to an icon representing a data type, may point to a Qt resource. | |
virtual std::vector< DataAttribute > | dataAttributes (const Data &data) const |
Return a list of attributes to be shown in the DataWidget GUI for a data type. | |
virtual std::unique_ptr< Data > | cloneData (const Data *data) const |
Return a clone of a given Data instance. | |
![]() | |
FactoryBase () | |
No license check is performed for the module instantiated with this constructor. | |
FactoryBase (std::string module, bool checkLicense=true) | |
std::string | moduleName () const |
Returns the module name of the factory. | |
Additional Inherited Members | |
![]() | |
virtual | ~FactoryBase () |
Virtual destructor. | |
std::string | getComponentPath (const std::string &componentName) const |
Returns the path to the component referred to by name . | |
bool | isLicensed (const std::string &name) |
Return true if the license allows the use of the component referred to by name . | |
![]() | |
static std::string | getComponentPath (const std::string &moduleName, const std::string &componentName) |
Returns the path to the component referred to by name . | |
static bool | isLicensed (const std::string &moduleName, const std::string &name) |
Return true if the license allows the use of the component referred to by name . | |
![]() | |
std::string | m_factoryModule |
bool | m_checkLicense |
|
pure virtual |
Create data annotation.
data | input data |
Implemented in ASCDataAnnotationFactory, CTDataAnnotationFactory, DefaultDataAnnotationFactory, DicomDataAnnotationFactory, GraphDataAnnotationFactory, SpineDataAnnotationFactory, StreamDataAnnotationFactory, and VisionDataAnnotationFactory.
|
pure virtual |
Return true when a data object supports having a data annotation.
Implemented in ASCDataAnnotationFactory, CTDataAnnotationFactory, DefaultDataAnnotationFactory, DicomDataAnnotationFactory, GraphDataAnnotationFactory, SpineDataAnnotationFactory, StreamDataAnnotationFactory, and VisionDataAnnotationFactory.
|
inlinevirtual |
Return a description string to be shown in the data model for a data type.
Return an empty string for unsupported types.
Reimplemented in ASCDataAnnotationFactory, CTDataAnnotationFactory, DefaultDataAnnotationFactory, GraphDataAnnotationFactory, SpineDataAnnotationFactory, StreamDataAnnotationFactory, and VisionDataAnnotationFactory.
|
inlinevirtual |
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 in ASCDataAnnotationFactory, CTDataAnnotationFactory, DefaultDataAnnotationFactory, GraphDataAnnotationFactory, SpineDataAnnotationFactory, StreamDataAnnotationFactory, and VisionDataAnnotationFactory.
|
inlinevirtual |
Return a list of attributes to be shown in the DataWidget GUI for a data type.
Reimplemented in CTDataAnnotationFactory, DefaultDataAnnotationFactory, StreamDataAnnotationFactory, and VisionDataAnnotationFactory.
|
inlinevirtual |
Return a clone of a given Data instance.
This allows plugins to expose cloning logics for custom data types to the base ImFusionLib.
Reimplemented in ASCDataAnnotationFactory, DefaultDataAnnotationFactory, GraphDataAnnotationFactory, SpineDataAnnotationFactory, and VisionDataAnnotationFactory.