44#define CamiTKActionDeclaration(X) extern "C"
45#define CamiTKActionImplementation(X) extern "C"
227#define CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD ERROR
239#ifdef CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD
240#define ERROR CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD
244 static QString getStatusAsString(ApplyStatus);
333 return componentClassName;
342 QString getExtensionName()
const;
379 virtual QWidget* getWidget();
382 void setDefaultWidgetButtonVisibility(
bool);
385 void setDefaultWidgetApplyButtonText(QString);
388 virtual QPixmap getIcon();
394 void updateTargets();
400 bool getAutoUpdateProperties()
const;
403 void setAutoUpdateProperties(
bool);
416 virtual QVariant getParameterValue(
const QString& name)
const;
421 virtual bool setParameterValue(
const QString& name, QVariant newValue);
425 virtual QString getParameterValueAsString(
const QString& name)
const;
435 virtual bool addParameter(
Property*);
444 virtual QVariant toVariant()
const override;
447 virtual void fromVariant(
const QVariant&)
override;
450 virtual QUuid getUuid()
const override;
458 virtual bool setUuid(QUuid)
override;
469 void setName(QString name);
475 void setComponentClassName(QString componentClassName);
478 void setFamily(QString family);
481 void addTag(QString tag);
484 void setEmbedded(
bool isEmbedded);
487 void setIcon(QPixmap);
511 QString componentClassName;
523 bool defaultWidgetButtonVisibility;
526 QString defaultWidgetApplyButtonText;
538 QMap<QString, Property*> parameterMap;
552 bool autoUpdateProperties;
608 void preProcessInPipeline();
614 void postProcessInPipeline();
#define CAMITK_API
Definition CamiTKAPI.h:66
const char * description
Definition applications/cepgenerator/main.cpp:38
A component is something that composed something and could also be a part of something.
Definition modeling/libraries/pml/Component.h:48
This class describes what is a generic Action extension.
Definition ActionExtension.h:57
Action class is an abstract class that enables you to build a action (generally an algorithm that wor...
Definition Action.h:215
void refreshApplication()
convenient method to call from the user code to refresh all the application This is equivalent to cal...
Definition Action.cpp:150
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method)
Definition Action.h:231
@ ERROR
apply() failed : an error occurred (usually it means that the apply() was interrupted)
Definition Action.h:233
@ SUCCESS
everything went according to plan
Definition Action.h:232
@ ABORTED
the action was aborted before completion
Definition Action.h:235
@ TRIGGERED
the action was triggered only, but not applied
Definition Action.h:236
@ WARNING
some (partial) error occurred during the application of the algorithm
Definition Action.h:234
virtual camitk::Action::ApplyStatus apply()=0
This method is called when the action has to be applied on the target list (get the target lists usin...
void setInputComponent(Component *input)
Specify the input Components in case of only one Component.
Definition Action.cpp:331
virtual QAction * getQAction(Component *target=nullptr)
Get the corresponding QAction.
Definition Action.cpp:216
QString getFamily() const
the name of the family in which this action is associated
Definition Action.h:337
camitk::Action::ApplyStatus applyAndRegister()
This method is called whenever the action has to be applied on the target list (like the apply()) met...
Definition Action.cpp:274
const ActionExtension * getExtension() const
get the extension as const
Definition Action.cpp:145
QString getName() const
get the name of the action
Definition Action.h:322
void setInputComponents(ComponentList inputs)
Specify the input Component(s) Only applyInPipeline() should be called with this method (maybe apply)...
Definition Action.cpp:318
Component * getOutputComponent()
Returns the output Components in case of only one Component.
Definition Action.cpp:346
Action(ActionExtension *)
Default Constructor: the ActionExtension is needed.
Definition Action.cpp:43
QStringList getTag() const
the name of the tag called this action
Definition Action.h:345
bool getEmbedded() const
argument use to know if the widget is embedded or not
Definition Action.h:350
QWidget * actionWidget
the action widget
Definition Action.h:490
ApplyStatus applyInPipeline()
This method encapsulates the apply() method.
Definition Action.cpp:296
ComponentList getOutputComponents()
Returns the output Component(s).
Definition Action.cpp:341
QString getDescription() const
the description of the action
Definition Action.h:327
QString getComponentClassName() const
the name of the component class that can be used by this action
Definition Action.h:332
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition sdk/libraries/core/component/Component.h:304
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition HistoryItem.h:61
Interface for all objects that should be serialized by the PersistenceManager.
Definition InterfacePersistence.h:38
This class describes a property that can be used in components and actions or any class that needs to...
Definition Property.h:306
QList< Component * > ComponentList
A list of Component.
Definition CamiTKAPI.h:161