33 #include <Component.h>
43 class ActionExtension;
221 #define CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD ERROR
233 #ifdef CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD
234 #define ERROR CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD
238 static QString getStatusAsString(ApplyStatus);
292 void setInputComponent(
Component* input);
315 virtual QAction* getQAction(
Component* target =
nullptr);
337 QString getComponent()
const {
338 return getComponentClassName();
344 return componentClassName;
353 QString getExtensionName()
const;
390 virtual QWidget* getWidget();
393 virtual QPixmap getIcon();
399 void updateTargets();
405 bool getAutoUpdateProperties()
const;
408 void setAutoUpdateProperties(
bool);
426 virtual bool addParameter(
Property*);
453 virtual QVariant toVariant()
const override;
456 virtual void fromVariant(
const QVariant&)
override;
466 void setName(QString name);
481 void setComponent(QString component);
485 void setComponentClassName(QString componentClassName);
488 void setFamily(QString family);
491 void addTag(QString tag);
494 void setEmbedded(
bool isEmbedded);
497 void setIcon(QPixmap);
500 QWidget* actionWidget;
511 QString componentClassName;
532 QMap<QString,
Property*> parameterMap;
546 bool autoUpdateProperties;
602 void preProcessInPipeline();
608 void postProcessInPipeline();
#define CAMITK_API_DEPRECATED(X)
Definition: CamiTKAPI.h:94
#define CAMITK_API
Definition: CamiTKAPI.h:49
const char * description
Definition: applications/cepgenerator/main.cpp:38
Interface for all objects that should be serialized by the PersistenceManager.
Definition: InterfacePersistence.h:36
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 on a component).
Definition: Action.h:209
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method)
Definition: Action.h:225
@ ERROR
apply() failed : an error occurred (usually it means that the apply() was interrupted)
Definition: Action.h:227
@ SUCCESS
everything went according to plan
Definition: Action.h:226
@ ABORTED
the action was aborted before completion
Definition: Action.h:229
@ WARNING
some (partial) error occurred during the application of the algorithm
Definition: Action.h:228
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...
QString getFamily() const
the name of the family in which this action is associated
Definition: Action.h:348
QString getName() const
get the name of the action
Definition: Action.h:318
QStringList getTag() const
the name of the tag called this action
Definition: Action.h:356
bool getEmbedded() const
argument use to know if the widget is embedded or not
Definition: Action.h:361
QString getDescription() const
the description of the action
Definition: Action.h:323
QString getComponentClassName() const
the name of the component class that can be used by this action
Definition: Action.h:343
TargetPositionningPolicy
: Policy to determine how a newly instantiated component's frame should be initialized regarding of i...
Definition: Application.h:88
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:303
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition: HistoryItem.h:61
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:280
Definition: Action.cpp:36
QSizePolicy policy(QSizePolicy::Expanding, QSizePolicy::Expanding)