190 ApplyStatus trigger(QWidget * parent = NULL);
196 virtual ApplyStatus apply() = 0;
211 virtual ApplyStatus applyInPipeline();
219 virtual void setInputComponent(
Component * input);
225 virtual Component * getOutputComponent();
239 QAction *getQAction();
262 QString getExtensionName()
const;
299 virtual QWidget * getWidget();
302 virtual QPixmap getIcon();
309 bool getAutoUpdateProperties()
const;
312 void setAutoUpdateProperties(
bool);
319 void setName(QString name);
324 void setDescription(QString description);
327 void setComponent(QString component);
330 void setFamily(QString family);
333 void addTag(QString tag);
336 void setEmbedded(
bool isEmbedded);
339 void setIcon(QPixmap);
357 virtual void preProcessInPipeline();
361 virtual void postProcessInPipeline();
ComponentList aliveBeforeComponents
Definition: Action.h:410
QStringList getTag() const
the name of the tag called this action
Definition: Action.h:265
QString name
the name of the action
Definition: Action.h:366
QPixmap icon
the Action pixmap icon
Definition: Action.h:387
bool autoUpdateProperties
Should the properties/parameters of this action be automatically updated when the user change somethi...
Definition: Action.h:404
apply() failed : an error occured (usually it means that the apply() was interrupted) ...
Definition: Action.h:179
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:165
bool getEmbedded() const
argument use to know if the widget is embedded or not
Definition: Action.h:270
everything went according to plan
Definition: Action.h:178
ActionExtension * extension
the extension in which this action is declared and registered
Definition: Action.h:384
QAction * qAction
the corresponding QAction
Definition: Action.h:390
some (partial) error occured during the application of the algorithm
Definition: Action.h:180
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: Component.h:287
QString getName() const
get the name of the action
Definition: Action.h:242
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:57
QString component
the name of the component class that can be used by this action
Definition: Action.h:372
QString getFamily() const
the name of the family in which this action is associated
Definition: Action.h:257
QString description
the descriptionof the action
Definition: Action.h:369
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method) ...
Definition: Action.h:177
ComponentList outputComponents
List returned by getOutputComponents()
Definition: Action.h:412
QWidget * actionWidget
the action widget
Definition: Action.h:342
ComponentList targetComponents
The list of valid (regarding the component property) components for which this action is called...
Definition: Action.h:401
bool isEmbedded
is the widget embedded or not
Definition: Action.h:381
QString getDescription() const
the description of the action
Definition: Action.h:247
QString getComponent() const
the name of the component class that can be used by this action
Definition: Action.h:252
QString family
the name of the family in which this action is associated
Definition: Action.h:375
QStringList tags
the name of the tag called this action
Definition: Action.h:378
the action was aborted before completion
Definition: Action.h:181