210 ApplyStatus trigger(QWidget * parent = NULL);
221 virtual ApplyStatus apply() = 0;
230 ApplyStatus applyAndRegister();
245 ApplyStatus applyInPipeline();
254 void setInputComponent(
Component * input);
274 QAction *getQAction();
297 QString getExtensionName()
const;
334 virtual QWidget * getWidget();
337 virtual QPixmap getIcon();
344 bool getAutoUpdateProperties()
const;
347 void setAutoUpdateProperties(
bool);
355 Q_INVOKABLE
virtual Property* getProperty(QString name);
365 virtual bool addParameter(
Property*);
372 void setName(QString name);
377 void setDescription(QString description);
380 void setComponent(QString component);
383 void setFamily(QString family);
386 void addTag(QString tag);
389 void setEmbedded(
bool isEmbedded);
392 void setIcon(QPixmap);
501 void preProcessInPipeline();
507 void postProcessInPipeline();
the action was aborted before completion
Definition: Action.h:200
ComponentList aliveBeforeComponents
In case of a pipeline application of the Action (i.e.
Definition: Action.h:488
QStringList getTag() const
the name of the tag called this action
Definition: Action.h:300
QString name
the name of the action
Definition: Action.h:404
QPixmap icon
the Action pixmap icon
Definition: Action.h:425
bool autoUpdateProperties
Should the properties/parameters of this action be automatically updated when the user change somethi...
Definition: Action.h:445
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:184
some (partial) error occured during the application of the algorithm
Definition: Action.h:199
bool getEmbedded() const
argument use to know if the widget is embedded or not
Definition: Action.h:305
ActionExtension * extension
the extension in which this action is declared and registered
Definition: Action.h:422
ComponentList topLevelSelectedComponents
The list of top level selected components before running the action This list is used to deduce the n...
Definition: Action.h:462
QAction * qAction
the corresponding QAction
Definition: Action.h:428
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:292
QString getName() const
get the name of the action
Definition: Action.h:277
CAMITK_API QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:87
#define CAMITK_API
Definition: CamiTKAPI.h:49
This class describes what is a generic Action extension.
Definition: ActionExtension.h:61
QString component
the name of the component class that can be used by this action
Definition: Action.h:410
QString getFamily() const
the name of the family in which this action is associated
Definition: Action.h:292
QString description
the descriptionof the action
Definition: Action.h:407
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition: HistoryItem.h:61
HistoryItem * item
Definition: Action.h:457
ComponentList outputComponents
List returned by getOutputComponents()
Definition: Action.h:493
QWidget * actionWidget
the action widget
Definition: Action.h:395
ComponentList targetComponents
The list of valid (regarding the component property) components for which this action is called...
Definition: Action.h:442
QMap< QString, Property * > parameterMap
list of CamiTK property decorating the dynamic properties (action parameters)
Definition: Action.h:431
everything went according to plan
Definition: Action.h:197
bool isEmbedded
is the widget embedded or not
Definition: Action.h:419
QString getDescription() const
the description of the action
Definition: Action.h:282
QString getComponent() const
the name of the component class that can be used by this action
Definition: Action.h:287
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method) ...
Definition: Action.h:196
QString family
the name of the family in which this action is associated
Definition: Action.h:413
QStringList tags
the name of the tag called this action
Definition: Action.h:416
apply() failed : an error occured (usually it means that the apply() was interrupted) ...
Definition: Action.h:198
Definition: ExtensionWindow.h:39
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:188