Action class is an abstract class that enables you to build a action (generally on a component). More...
#include <Action.h>
Inherits QObject, and InterfacePersistence.
Inherited by AboutAction, AnglesAndTranslationAction, AnisotropicDiffusion, AppendMeshes, BoxVOI, CannyEdgeDetection, CenterMesh, ChangeColor, ChangeLanguage, ChangeParent, CleanPolyData, ClearSelectionAction, CloseAction, CloseAllAction, ComputeCurvatures, ComputeNormals, ConnectedComponents, CreateSC, Decimation, Derivative, ExportAsMDL, ExtractEdges, ExtractSelection, ExtractSurface, FillWithPoints, FrameEditor, GaussianFilter, GenerateModel, GradientMagnitude, GradientMagnitudeRecursiveGaussian, GridTopology, ICPRegistration, ImageLutAction, ImageReconstructionAction, InitImagerAction, InvertMesh, Laplacian, LaplacianRecursiveGaussian, LaplacianSharpening, LoadTextureFromBMP, LoadTransformation, LoggerParameters, ManualThreshold, MeanFilter, MedianFilter, MergeMeshs, MeshClipping, MeshPicking, MeshProjection, MeshQuality, MeshToImageStencil, MorphologicalOperators, MultiPicking, OpenAction, OpenFile, OpenWorkspace, OpenWorkspaceAction, OtsuFilter, PMLExplorerAction, PixelColorChanger, QuitAction, RegionGrowing, RemoveLastInstantiatedAction, RenderingOption, ReorientImage, ResampleAction, RigidTransform, SaveAction, SaveAllAction, SaveAsAction, SaveDisplacementFromTransformation, SaveWorkspace, SelectLastInstantiatedAction, SetPathToTestData, Show3DViewer, ShowAllViewers, ShowArbitrarySliceIn3D, ShowArbitraryViewer, ShowAxialSliceIn3D, ShowAxialViewer, ShowCoronalSliceIn3D, ShowCoronalViewer, ShowFrame, ShowImageIn3D, ShowSagittalSliceIn3D, ShowSagittalViewer, SimpleElastixRegistrationAction, SimulationDialog, SingleAcquisition2DAction, SingleAcquisition3DAction, SmoothFilter, SobelEdgeDetection, SphereTopology, StartImaging2DAction, StartImaging3DAction, StopImaging2DAction, StopImaging3DAction, ToggleConsoleAction, VolumeRenderingAction, and WarpOut.
Public Types | |
enum | ApplyStatus { SUCCESS , ERROR , WARNING , ABORTED , TRIGGERED } |
describes what happened during the application of an algorithm (i.e. results of the apply method) More... | |
Public Slots | |
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 using getTargets()) It calls the algorithm of your action on the target list of components. More... | |
camitk::Action::ApplyStatus | applyAndRegister () |
This method is called whenever the action has to be applied on the target list (like the apply()) method AND registered within the application history of actions. More... | |
camitk::Action::ApplyStatus | trigger (QWidget *parent=nullptr) |
This method triggers the action. More... | |
Public Member Functions | |
Action (ActionExtension *) | |
Default Constructor: the ActionExtension is needed. More... | |
~Action () override | |
Destructor. More... | |
Generic action getters | |
These methods can not be redefined in subclasses. | |
virtual QAction * | getQAction (Component *target=nullptr) |
Get the corresponding QAction. More... | |
QString | getName () const |
get the name of the action More... | |
QString | getDescription () const |
the description of the action More... | |
QString | getComponentClassName () const |
the name of the component class that can be used by this action More... | |
QString | getFamily () const |
the name of the family in which this action is associated More... | |
QString | getExtensionName () const |
the name of the extension in the family in which this action is associated More... | |
QStringList | getTag () const |
the name of the tag called this action More... | |
bool | getEmbedded () const |
argument use to know if the widget is embedded or not More... | |
Method specific to an action. | |
virtual QWidget * | getWidget () |
This method has to be redefined in your Action only if: More... | |
virtual QPixmap | getIcon () |
the icon to personalize the action (no icon by default) More... | |
const ComponentList | getTargets () const |
the currently selected and valid (regarding the component property) components, for which this action is called More... | |
void | updateTargets () |
update the target list using the currently selected components More... | |
Property management | |
auto update properties | |
bool | getAutoUpdateProperties () const |
void | setAutoUpdateProperties (bool) |
are the properties to be updated every time the user makes a change in the widget (default is false)? More... | |
virtual Q_INVOKABLE camitk::Property * | getProperty (QString name) |
Get a Property given its name. More... | |
virtual bool | addParameter (Property *) |
Add a new parameter to the action, using the CamiTK property class. More... | |
Frame management | |
void | applyTargetPosition (Component *input, Component *target) |
Change the target frame according to the default frame policy regarding the input's one. More... | |
void | applyTargetPosition (Component *input, Component *target, Application::TargetPositionningPolicy policy) |
Change the target frame according to a given frame policy regarding the input's one. More... | |
InterfacePersistence | |
| |
virtual QVariant | toVariant () const override |
virtual void | fromVariant (const QVariant &) override |
Load data from a QVariant to initialize the current object. More... | |
Static Public Member Functions | |
static QString | getStatusAsString (ApplyStatus) |
Generic action attributes setters | |
These methods can not be redefined in subclasses but have to be used to ensure name/description uniqueness among CamiTK. | |
QWidget * | actionWidget |
the action widget More... | |
void | setName (QString name) |
void | setDescription (QString description) |
the description of the action More... | |
void | setComponentClassName (QString componentClassName) |
set the name of the component class that can be used by this action More... | |
void | setFamily (QString family) |
the name of the family in which this action is associated More... | |
void | addTag (QString tag) |
add a tag to the tags list of this action More... | |
void | setEmbedded (bool isEmbedded) |
set the embedded property (an action is embedded by default, unless specified otherwise by explicitly calling this method with false) More... | |
void | setIcon (QPixmap) |
set the Pixmap More... | |
Pipeline execution of the Action | |
ApplyStatus | applyInPipeline () |
This method encapsulates the apply() method. More... | |
void | setInputComponents (ComponentList inputs) |
Specify the input Component(s) Only applyInPipeline() should be called with this method (maybe apply), but not trigger() as its first intruction is to clear the target components list !!! More... | |
void | setInputComponent (Component *input) |
Specify the input Components in case of only one Component. More... | |
ComponentList | getOutputComponents () |
Returns the output Component(s) More... | |
Component * | getOutputComponent () |
Returns the output Components in case of only one Component. More... | |
Action class is an abstract class that enables you to build a action (generally on a component).
At least two classes have to be reimplemented to enable the action: ActionExtension + Action
This is the list of attributes you need to consider when creating a new action
An Action has a corresponding QAction, see getQAction(), that makes it easy to trigger an action from any Qt GUI (menus, toolbar, push buttons...)
If the component class is defined (non empty string), an Action is applied on the currently selected components. If there are no component defined (i.e. you specifies setComponentClassName("")), it means that your action does not need any inputs.
Two steps have to be considered when using an action:
The targets can have changed between the time the action is first triggered and the time the action is applied. getWidget() is always called when the targets are updated. Therefore whenever getWidget() is called, you should make sure to update the the action GUI consequently. getTargets() is always updated in trigger() and available.
When an action is triggered (e.g., by right clicking in the context menu), the following algorithm applies, see trigger():
This means that, if there is a widget, the action algorithm is controlled by the action widget, i.e. apply() is not called by trigger() but should be called by one of the action widget's button.
An Action generally is used to wrap an algorithm in CamiTK. If this algorithm has parameters, it is very easy to get these parameters accessible to the user through the ActionWidget. These parameters are in fact defined as Qt dynamic properties.
By default an action has a widget, instance of ActionWidget. If ActionWidget does not correspond to what you need, just create a new class inheriting from QWidget, or even better, inheriting from ActionWidget.
These are the use cases for using the default behaviour (i.e. an instance of ActionWidget):
ActionWidget should be good enough in most of the cases. The default widget contains a description, a reminder of the current target component names, and an applyable/revertable ObjectController that allows you to edit/modify properties.
Here are some notes about the rest of the properties:
extensionName is automatically given during the action registration in the ActionExtension.
The component property determines on which type of component your action can be applied. Generic actions are action that have an empty component name. Therefore generic actions can be called to generate/synthetize data or initialize resources.
You can add any number of tags using the method addTag().
If ActionWidget is not what your need, a typical getWidget() method should use the lazy instantiation pattern to instantiate MyVerySpecialActionWidget the first time it is called, and call the MyVerySpecialActionWidget instance's updateTargets() method for any subsequent calls. Something like:
But of course you can also use any kind of widget you like. ActionWidget is just defining a default widget for an action. If your action does not have any GUI/parameters, just the getWidget() method in order to return nullptr.
By default the properties/parameters are not automatically updated when the user change the default widget, they are updated only when the user click on the apply button of the default widget. Use setAutoUpdateProperties(true) to automatically update the action's properties.
virtual bool event(QEvent* e)
method. For instance: By default the action's widget is embedded. If you do not want to embed your action's widget, use setEmbedded(false) in the constructor. When embedded, the parent widget has to be given at triggered time. If there is no parent given for an embedded action, then the action is embedded in the ActionViewer by default.
The method apply() must be implemented in your Action.
describes what happened during the application of an algorithm (i.e. results of the apply method)
Enumerator | |
---|---|
SUCCESS | everything went according to plan |
ERROR | apply() failed : an error occurred (usually it means that the apply() was interrupted) |
WARNING | some (partial) error occurred during the application of the algorithm |
ABORTED | the action was aborted before completion |
TRIGGERED | the action was triggered only, but not applied |
camitk::Action::Action | ( | ActionExtension * | extension | ) |
Default Constructor: the ActionExtension is needed.
References actionWidget.
|
override |
Destructor.
|
virtual |
Add a new parameter to the action, using the CamiTK property class.
If the parameter already exist, it will just change its value.
References camitk::Property::getInitialValue(), and camitk::Property::getName().
Referenced by AnglesAndTranslationAction::AnglesAndTranslationAction(), AnisotropicDiffusion::AnisotropicDiffusion(), AppendMeshes::AppendMeshes(), CannyEdgeDetection::CannyEdgeDetection(), CenterMesh::CenterMesh(), ChangeParent::ChangeParent(), CleanPolyData::CleanPolyData(), ComputeCurvatures::ComputeCurvatures(), ConnectedComponents::ConnectedComponents(), Decimation::Decimation(), Derivative::Derivative(), FillWithPoints::FillWithPoints(), GaussianFilter::GaussianFilter(), GenerateModel::GenerateModel(), GradientMagnitudeRecursiveGaussian::GradientMagnitudeRecursiveGaussian(), ICPRegistration::ICPRegistration(), ImageReconstructionAction::ImageReconstructionAction(), Laplacian::Laplacian(), LaplacianRecursiveGaussian::LaplacianRecursiveGaussian(), ManualThreshold::ManualThreshold(), MeanFilter::MeanFilter(), MedianFilter::MedianFilter(), MergeMeshs::MergeMeshs(), MeshProjection::MeshProjection(), MeshToImageStencil::MeshToImageStencil(), MorphologicalOperators::MorphologicalOperators(), OpenFile::OpenFile(), OpenWorkspace::OpenWorkspace(), OtsuFilter::OtsuFilter(), PixelColorChanger::PixelColorChanger(), RenderingOption::RenderingOption(), ReorientImage::ReorientImage(), ResampleAction::ResampleAction(), ShowFrame::ShowFrame(), SimpleElastixRegistrationAction::SimpleElastixRegistrationAction(), SmoothFilter::SmoothFilter(), SobelEdgeDetection::SobelEdgeDetection(), SphereTopology::SphereTopology(), VolumeRenderingAction::VolumeRenderingAction(), and WarpOut::WarpOut().
|
protected |
add a tag to the tags list of this action
Referenced by AboutAction::AboutAction(), AnglesAndTranslationAction::AnglesAndTranslationAction(), AnisotropicDiffusion::AnisotropicDiffusion(), BoxVOI::BoxVOI(), CannyEdgeDetection::CannyEdgeDetection(), CenterMesh::CenterMesh(), ChangeColor::ChangeColor(), ChangeLanguage::ChangeLanguage(), ChangeParent::ChangeParent(), CleanPolyData::CleanPolyData(), ClearSelectionAction::ClearSelectionAction(), CloseAction::CloseAction(), CloseAllAction::CloseAllAction(), ComputeCurvatures::ComputeCurvatures(), ComputeNormals::ComputeNormals(), ConnectedComponents::ConnectedComponents(), CreateSC::CreateSC(), Decimation::Decimation(), Derivative::Derivative(), ExtractEdges::ExtractEdges(), ExtractSelection::ExtractSelection(), ExtractSurface::ExtractSurface(), FillWithPoints::FillWithPoints(), FrameEditor::FrameEditor(), GaussianFilter::GaussianFilter(), GenerateModel::GenerateModel(), GradientMagnitude::GradientMagnitude(), GradientMagnitudeRecursiveGaussian::GradientMagnitudeRecursiveGaussian(), GridTopology::GridTopology(), ICPRegistration::ICPRegistration(), ImageLutAction::ImageLutAction(), ImageReconstructionAction::ImageReconstructionAction(), InvertMesh::InvertMesh(), Laplacian::Laplacian(), LaplacianRecursiveGaussian::LaplacianRecursiveGaussian(), LaplacianSharpening::LaplacianSharpening(), LoggerParameters::LoggerParameters(), ManualThreshold::ManualThreshold(), MeanFilter::MeanFilter(), MedianFilter::MedianFilter(), MergeMeshs::MergeMeshs(), MeshClipping::MeshClipping(), MeshPicking::MeshPicking(), MeshProjection::MeshProjection(), MeshQuality::MeshQuality(), MeshToImageStencil::MeshToImageStencil(), MorphologicalOperators::MorphologicalOperators(), MultiPicking::MultiPicking(), OpenAction::OpenAction(), OpenFile::OpenFile(), OpenWorkspace::OpenWorkspace(), OpenWorkspaceAction::OpenWorkspaceAction(), OtsuFilter::OtsuFilter(), PixelColorChanger::PixelColorChanger(), PMLExplorerAction::PMLExplorerAction(), QuitAction::QuitAction(), RegionGrowing::RegionGrowing(), RemoveLastInstantiatedAction::RemoveLastInstantiatedAction(), RenderingOption::RenderingOption(), ReorientImage::ReorientImage(), RigidTransform::RigidTransform(), SaveAction::SaveAction(), SaveAllAction::SaveAllAction(), SaveAsAction::SaveAsAction(), SaveWorkspace::SaveWorkspace(), SelectLastInstantiatedAction::SelectLastInstantiatedAction(), SetPathToTestData::SetPathToTestData(), Show3DViewer::Show3DViewer(), ShowAllViewers::ShowAllViewers(), ShowArbitrarySliceIn3D::ShowArbitrarySliceIn3D(), ShowArbitraryViewer::ShowArbitraryViewer(), ShowAxialSliceIn3D::ShowAxialSliceIn3D(), ShowAxialViewer::ShowAxialViewer(), ShowCoronalSliceIn3D::ShowCoronalSliceIn3D(), ShowCoronalViewer::ShowCoronalViewer(), ShowFrame::ShowFrame(), ShowImageIn3D::ShowImageIn3D(), ShowSagittalSliceIn3D::ShowSagittalSliceIn3D(), ShowSagittalViewer::ShowSagittalViewer(), SimpleElastixRegistrationAction::SimpleElastixRegistrationAction(), SmoothFilter::SmoothFilter(), SobelEdgeDetection::SobelEdgeDetection(), SphereTopology::SphereTopology(), ToggleConsoleAction::ToggleConsoleAction(), VolumeRenderingAction::VolumeRenderingAction(), and WarpOut::WarpOut().
|
pure virtualslot |
This method is called when the action has to be applied on the target list (get the target lists using getTargets()) It calls the algorithm of your action on the target list of components.
Referenced by applyAndRegister(), applyInPipeline(), PlaneWidget::Execute(), and main().
|
slot |
This method is called whenever the action has to be applied on the target list (like the apply()) method AND registered within the application history of actions.
References ABORTED, apply(), CAMITK_TRACE, getComponentClassName(), and getStatusAsString().
Referenced by trigger().
Action::ApplyStatus camitk::Action::applyInPipeline | ( | ) |
This method encapsulates the apply() method.
It has to be called within a pipeline (a chain of actions), where a script or another program calls setInputComponents() and/or getOutputComponents. It is not needed in the case of graphical interface which trigger the Action's widget and applies the action on selected components. When there is no GUI, preProcessInPipeline() and postProcessInPipeline() methods select the right component(s). As the method apply() is called between preProcessInPipeline() and postProcessInPipeline(), the returned value is the returned value of apply().
References ABORTED, apply(), CAMITK_TRACE, getComponentClassName(), and getStatusAsString().
Referenced by ActionState::applyAction(), SaveActionState::applyAction(), and WorkspaceExtension::open().
Change the target frame according to the default frame policy regarding the input's one.
input | The component referring to for the computation of the frame. |
target | The component on which we apply the frame policy. |
References camitk::Application::getPropertyObject(), camitk::PropertyObject::getPropertyValue(), and camitk::Application::SAME_TRANSFORMATION.
void camitk::Action::applyTargetPosition | ( | Component * | input, |
Component * | target, | ||
Application::TargetPositionningPolicy | policy | ||
) |
Change the target frame according to a given frame policy regarding the input's one.
input | The component referring to for the computation of the frame. |
target | The component on which we apply the frame policy. |
policy | The frame policy to use on the target. |
References camitk::Component::getTransform(), camitk::Application::NO_TRANSFORMATION, camitk::policy(), camitk::Application::SAME_TRANSFORMATION, camitk::Component::setParentFrame(), camitk::InterfaceFrame::setTransform(), and camitk::Application::SUBFRAME.
|
overridevirtual |
Load data from a QVariant to initialize the current object.
Implements InterfacePersistence.
References camitk::PersistenceManager::loadProperties().
bool camitk::Action::getAutoUpdateProperties | ( | ) | const |
|
inline |
the name of the component class that can be used by this action
Referenced by applyAndRegister(), applyInPipeline(), camitk::Application::getActions(), and trigger().
|
inline |
the description of the action
References description.
Referenced by camitk::ActionWidget::ActionWidget(), getQAction(), camitk::Application::registerAllActions(), and camitk::Application::saveHistoryAsSXML().
|
inline |
argument use to know if the widget is embedded or not
Referenced by main().
QString camitk::Action::getExtensionName | ( | ) | const |
the name of the extension in the family in which this action is associated
References camitk::ActionExtension::getName().
Referenced by camitk::Application::registerAllActions().
|
inline |
the name of the family in which this action is associated
Referenced by camitk::Application::registerAllActions().
|
virtual |
the icon to personalize the action (no icon by default)
Referenced by camitk::ActionWidget::ActionWidget(), and getQAction().
|
inline |
get the name of the action
Referenced by camitk::actionLessThan(), camitk::ActionWidget::ActionWidget(), CreateSC::apply(), ComputeNormals::apply(), ExtractSelection::apply(), AppendMeshes::apply(), ComputeCurvatures::apply(), ICPRegistration::apply(), SaveActionState::applyAction(), getQAction(), SimpleElastixRegistrationAction::getWidget(), main(), ActionState::onEntry(), camitk::Application::registerAllActions(), camitk::Application::saveHistoryAsSXML(), camitk::Application::unregisterAllActions(), and camitk::ActionExtension::~ActionExtension().
Component * camitk::Action::getOutputComponent | ( | ) |
Returns the output Components in case of only one Component.
ComponentList camitk::Action::getOutputComponents | ( | ) |
Returns the output Component(s)
Referenced by ActionState::applyAction().
|
virtual |
Get a Property given its name.
name | the property name |
Referenced by ManualThreshold::getWidget(), ResampleAction::getWidget(), MeshProjection::getWidget(), and SimpleElastixRegistrationAction::getWidget().
|
virtual |
Get the corresponding QAction.
The corresponding QAction has its triggered() signal connected to the trigger() slot of the action. It shares the action icon (as the QAction's icon) and name (as the QAction's text). It also use the descriptions of the action for the tooltip/whatsThis text.
To add a shortcut, simply call getQAction()->setShortcut(..) in the action constructor. To make this shortcut available for any windows of the application, call getQAction()->setShortcutContext(Qt::ApplicationShortcut);
Override this method if your action can be toggled on/off (for instance an action that modifies the visibility of a component). This method is called in the Component class to build the component's action menu.
Reimplemented in VolumeRenderingAction, ShowSagittalSliceIn3D, ShowImageIn3D, ShowCoronalSliceIn3D, ShowAxialSliceIn3D, ShowArbitrarySliceIn3D, and ShowFrame.
References getDescription(), getIcon(), getName(), and trigger().
Referenced by ToggleConsoleAction::apply(), ClearSelectionAction::ClearSelectionAction(), CloseAction::CloseAction(), camitk::Component::getActionMenu(), ToggleConsoleAction::getWidget(), camitk::InteractiveViewer::initActions(), camitk::MainWindow::MainWindow(), OpenAction::OpenAction(), OpenFile::OpenFile(), QuitAction::QuitAction(), SaveAction::SaveAction(), SaveAsAction::SaveAsAction(), MMLComponent::setSelected(), PMLComponent::setSelected(), camitk::MainWindow::show(), Show3DViewer::Show3DViewer(), ShowAllViewers::ShowAllViewers(), ShowArbitraryViewer::ShowArbitraryViewer(), ShowAxialViewer::ShowAxialViewer(), ShowCoronalViewer::ShowCoronalViewer(), ShowSagittalViewer::ShowSagittalViewer(), ToggleConsoleAction::ToggleConsoleAction(), and ImpMainWindow::updateActionStates().
|
static |
References ABORTED, ERROR, SUCCESS, TRIGGERED, and WARNING.
Referenced by applyAndRegister(), and applyInPipeline().
|
inline |
the name of the tag called this action
Referenced by camitk::Application::getActions().
const ComponentList camitk::Action::getTargets | ( | ) | const |
the currently selected and valid (regarding the component property) components, for which this action is called
Referenced by AnisotropicDiffusion::apply(), CannyEdgeDetection::apply(), ConnectedComponents::apply(), Derivative::apply(), GaussianFilter::apply(), GradientMagnitude::apply(), GradientMagnitudeRecursiveGaussian::apply(), Laplacian::apply(), LaplacianRecursiveGaussian::apply(), LaplacianSharpening::apply(), MeanFilter::apply(), MedianFilter::apply(), MorphologicalOperators::apply(), SobelEdgeDetection::apply(), ManualThreshold::apply(), OtsuFilter::apply(), RegionGrowing::apply(), GenerateModel::apply(), CreateSC::apply(), CloseAction::apply(), SaveAction::apply(), SaveAsAction::apply(), BoxVOI::apply(), ResampleAction::apply(), PixelColorChanger::apply(), ImageReconstructionAction::apply(), ReorientImage::apply(), InitImagerAction::apply(), SingleAcquisition2DAction::apply(), SingleAcquisition3DAction::apply(), StartImaging2DAction::apply(), StartImaging3DAction::apply(), StopImaging2DAction::apply(), StopImaging3DAction::apply(), ChangeColor::apply(), ComputeNormals::apply(), ExtractSelection::apply(), MeshPicking::apply(), MeshToImageStencil::apply(), RenderingOption::apply(), AppendMeshes::apply(), CleanPolyData::apply(), ComputeCurvatures::apply(), Decimation::apply(), ExportAsMDL::apply(), ExtractEdges::apply(), ExtractSurface::apply(), FillWithPoints::apply(), ICPRegistration::apply(), InvertMesh::apply(), LoadTextureFromBMP::apply(), MergeMeshs::apply(), SaveDisplacementFromTransformation::apply(), SmoothFilter::apply(), WarpOut::apply(), ShowArbitrarySliceIn3D::apply(), ShowAxialSliceIn3D::apply(), ShowCoronalSliceIn3D::apply(), ShowImageIn3D::apply(), ShowSagittalSliceIn3D::apply(), CenterMesh::apply(), MeshQuality::apply(), RigidTransform::apply(), LoadTransformation::apply(), MeshQuality::computeMeasure(), CreateSC::event(), camitk::ActionWidget::getTargetLabel(), ManualThreshold::getWidget(), RegionGrowing::getWidget(), SimulationDialog::getWidget(), CreateSC::getWidget(), PMLExplorerAction::getWidget(), ChangeParent::getWidget(), FrameEditor::getWidget(), AnglesAndTranslationAction::getWidget(), BoxVOI::getWidget(), ImageLutAction::getWidget(), ResampleAction::getWidget(), MultiPicking::getWidget(), RenderingOption::getWidget(), MeshProjection::getWidget(), ShowFrame::getWidget(), SimpleElastixRegistrationAction::getWidget(), ShowImageIn3D::getWidget(), VolumeRenderingAction::getWidget(), CenterMesh::getWidget(), and RigidTransform::getWidget().
|
virtual |
This method has to be redefined in your Action only if:
In the second case, it is strongly recommended to have a code similar to this:
The update() method in MyVerySpecialActionWidget is used in case the selection has changed since the last time the widget was shown (a change in the selection often means the targets or the parameter values have changed, the UI should be refreshed as well).
Reimplemented in LoadTransformation, RigidTransform, MeshQuality, CenterMesh, ShowSagittalSliceIn3D, ShowImageIn3D, ShowCoronalSliceIn3D, ShowAxialSliceIn3D, ShowArbitrarySliceIn3D, SimpleElastixRegistrationAction, ShowFrame, MeshProjection, SaveDisplacementFromTransformation, MeshClipping, LoadTextureFromBMP, ExportAsMDL, RenderingOption, MeshPicking, ChangeColor, ShowSagittalViewer, ShowCoronalViewer, ShowAxialViewer, ShowArbitraryViewer, ShowAllViewers, Show3DViewer, ReorientImage, PixelColorChanger, MultiPicking, ResampleAction, ImageLutAction, BoxVOI, AnglesAndTranslationAction, FrameEditor, ChangeParent, ToggleConsoleAction, LoggerParameters, ChangeLanguage, AboutAction, SaveWorkspace, SaveAsAction, SaveAllAction, SaveAction, QuitAction, OpenWorkspaceAction, OpenWorkspace, OpenFile, OpenAction, CloseAllAction, CloseAction, SetPathToTestData, SelectLastInstantiatedAction, RemoveLastInstantiatedAction, ClearSelectionAction, PMLExplorerAction, CreateSC, GenerateModel, RegionGrowing, OtsuFilter, ManualThreshold, and ConnectedComponents.
References actionWidget.
Referenced by ActionState::onEntry(), and trigger().
void camitk::Action::setAutoUpdateProperties | ( | bool | autoUpdateProperties | ) |
are the properties to be updated every time the user makes a change in the widget (default is false)?
References actionWidget.
Referenced by AnglesAndTranslationAction::AnglesAndTranslationAction(), CreateSC::CreateSC(), MeshProjection::MeshProjection(), PixelColorChanger::PixelColorChanger(), ActionState::setAction(), ShowFrame::ShowFrame(), and SimpleElastixRegistrationAction::SimpleElastixRegistrationAction().
|
protected |
set the name of the component class that can be used by this action
Referenced by AboutAction::AboutAction(), AnglesAndTranslationAction::AnglesAndTranslationAction(), AnisotropicDiffusion::AnisotropicDiffusion(), AppendMeshes::AppendMeshes(), BoxVOI::BoxVOI(), CannyEdgeDetection::CannyEdgeDetection(), CenterMesh::CenterMesh(), ChangeColor::ChangeColor(), ChangeLanguage::ChangeLanguage(), ChangeParent::ChangeParent(), CleanPolyData::CleanPolyData(), ClearSelectionAction::ClearSelectionAction(), CloseAction::CloseAction(), CloseAllAction::CloseAllAction(), ComputeCurvatures::ComputeCurvatures(), ComputeNormals::ComputeNormals(), ConnectedComponents::ConnectedComponents(), CreateSC::CreateSC(), Decimation::Decimation(), Derivative::Derivative(), ExportAsMDL::ExportAsMDL(), ExtractEdges::ExtractEdges(), ExtractSelection::ExtractSelection(), ExtractSurface::ExtractSurface(), FillWithPoints::FillWithPoints(), FrameEditor::FrameEditor(), GaussianFilter::GaussianFilter(), GenerateModel::GenerateModel(), GradientMagnitude::GradientMagnitude(), GradientMagnitudeRecursiveGaussian::GradientMagnitudeRecursiveGaussian(), GridTopology::GridTopology(), ICPRegistration::ICPRegistration(), ImageLutAction::ImageLutAction(), ImageReconstructionAction::ImageReconstructionAction(), InitImagerAction::InitImagerAction(), InvertMesh::InvertMesh(), Laplacian::Laplacian(), LaplacianRecursiveGaussian::LaplacianRecursiveGaussian(), LaplacianSharpening::LaplacianSharpening(), LoadTextureFromBMP::LoadTextureFromBMP(), LoadTransformation::LoadTransformation(), LoggerParameters::LoggerParameters(), ManualThreshold::ManualThreshold(), MeanFilter::MeanFilter(), MedianFilter::MedianFilter(), MergeMeshs::MergeMeshs(), MeshClipping::MeshClipping(), MeshPicking::MeshPicking(), MeshProjection::MeshProjection(), MeshQuality::MeshQuality(), MeshToImageStencil::MeshToImageStencil(), MorphologicalOperators::MorphologicalOperators(), MultiPicking::MultiPicking(), OpenAction::OpenAction(), OpenFile::OpenFile(), OpenWorkspace::OpenWorkspace(), OpenWorkspaceAction::OpenWorkspaceAction(), OtsuFilter::OtsuFilter(), PixelColorChanger::PixelColorChanger(), PMLExplorerAction::PMLExplorerAction(), QuitAction::QuitAction(), RegionGrowing::RegionGrowing(), RemoveLastInstantiatedAction::RemoveLastInstantiatedAction(), RenderingOption::RenderingOption(), ReorientImage::ReorientImage(), ResampleAction::ResampleAction(), RigidTransform::RigidTransform(), SaveAction::SaveAction(), SaveAllAction::SaveAllAction(), SaveAsAction::SaveAsAction(), SaveDisplacementFromTransformation::SaveDisplacementFromTransformation(), SaveWorkspace::SaveWorkspace(), SelectLastInstantiatedAction::SelectLastInstantiatedAction(), SetPathToTestData::SetPathToTestData(), Show3DViewer::Show3DViewer(), ShowAllViewers::ShowAllViewers(), ShowArbitrarySliceIn3D::ShowArbitrarySliceIn3D(), ShowArbitraryViewer::ShowArbitraryViewer(), ShowAxialSliceIn3D::ShowAxialSliceIn3D(), ShowAxialViewer::ShowAxialViewer(), ShowCoronalSliceIn3D::ShowCoronalSliceIn3D(), ShowCoronalViewer::ShowCoronalViewer(), ShowFrame::ShowFrame(), ShowImageIn3D::ShowImageIn3D(), ShowSagittalSliceIn3D::ShowSagittalSliceIn3D(), ShowSagittalViewer::ShowSagittalViewer(), SimpleElastixRegistrationAction::SimpleElastixRegistrationAction(), SimulationDialog::SimulationDialog(), SingleAcquisition2DAction::SingleAcquisition2DAction(), SingleAcquisition3DAction::SingleAcquisition3DAction(), SmoothFilter::SmoothFilter(), SobelEdgeDetection::SobelEdgeDetection(), SphereTopology::SphereTopology(), StartImaging2DAction::StartImaging2DAction(), StartImaging3DAction::StartImaging3DAction(), StopImaging2DAction::StopImaging2DAction(), StopImaging3DAction::StopImaging3DAction(), ToggleConsoleAction::ToggleConsoleAction(), VolumeRenderingAction::VolumeRenderingAction(), and WarpOut::WarpOut().
|
protected |
the description of the action
References description.
Referenced by AboutAction::AboutAction(), AnglesAndTranslationAction::AnglesAndTranslationAction(), AnisotropicDiffusion::AnisotropicDiffusion(), AppendMeshes::AppendMeshes(), BoxVOI::BoxVOI(), CannyEdgeDetection::CannyEdgeDetection(), CenterMesh::CenterMesh(), ChangeColor::ChangeColor(), ChangeLanguage::ChangeLanguage(), ChangeParent::ChangeParent(), CleanPolyData::CleanPolyData(), ClearSelectionAction::ClearSelectionAction(), CloseAction::CloseAction(), CloseAllAction::CloseAllAction(), ComputeCurvatures::ComputeCurvatures(), ComputeNormals::ComputeNormals(), ConnectedComponents::ConnectedComponents(), CreateSC::CreateSC(), Decimation::Decimation(), Derivative::Derivative(), ExportAsMDL::ExportAsMDL(), ExtractEdges::ExtractEdges(), ExtractSelection::ExtractSelection(), ExtractSurface::ExtractSurface(), FillWithPoints::FillWithPoints(), FrameEditor::FrameEditor(), GaussianFilter::GaussianFilter(), GenerateModel::GenerateModel(), GradientMagnitude::GradientMagnitude(), GradientMagnitudeRecursiveGaussian::GradientMagnitudeRecursiveGaussian(), GridTopology::GridTopology(), ICPRegistration::ICPRegistration(), ImageLutAction::ImageLutAction(), ImageReconstructionAction::ImageReconstructionAction(), InitImagerAction::InitImagerAction(), InvertMesh::InvertMesh(), Laplacian::Laplacian(), LaplacianRecursiveGaussian::LaplacianRecursiveGaussian(), LaplacianSharpening::LaplacianSharpening(), LoadTextureFromBMP::LoadTextureFromBMP(), LoadTransformation::LoadTransformation(), LoggerParameters::LoggerParameters(), ManualThreshold::ManualThreshold(), MeanFilter::MeanFilter(), MedianFilter::MedianFilter(), MergeMeshs::MergeMeshs(), MeshClipping::MeshClipping(), MeshPicking::MeshPicking(), MeshProjection::MeshProjection(), MeshQuality::MeshQuality(), MeshToImageStencil::MeshToImageStencil(), MorphologicalOperators::MorphologicalOperators(), MultiPicking::MultiPicking(), OpenAction::OpenAction(), OpenFile::OpenFile(), OpenWorkspace::OpenWorkspace(), OpenWorkspaceAction::OpenWorkspaceAction(), OtsuFilter::OtsuFilter(), PixelColorChanger::PixelColorChanger(), PMLExplorerAction::PMLExplorerAction(), QuitAction::QuitAction(), RegionGrowing::RegionGrowing(), RemoveLastInstantiatedAction::RemoveLastInstantiatedAction(), RenderingOption::RenderingOption(), ReorientImage::ReorientImage(), ResampleAction::ResampleAction(), RigidTransform::RigidTransform(), SaveAction::SaveAction(), SaveAllAction::SaveAllAction(), SaveAsAction::SaveAsAction(), SaveDisplacementFromTransformation::SaveDisplacementFromTransformation(), SaveWorkspace::SaveWorkspace(), SelectLastInstantiatedAction::SelectLastInstantiatedAction(), SetPathToTestData::SetPathToTestData(), Show3DViewer::Show3DViewer(), ShowAllViewers::ShowAllViewers(), ShowArbitrarySliceIn3D::ShowArbitrarySliceIn3D(), ShowArbitraryViewer::ShowArbitraryViewer(), ShowAxialSliceIn3D::ShowAxialSliceIn3D(), ShowAxialViewer::ShowAxialViewer(), ShowCoronalSliceIn3D::ShowCoronalSliceIn3D(), ShowCoronalViewer::ShowCoronalViewer(), ShowFrame::ShowFrame(), ShowImageIn3D::ShowImageIn3D(), ShowSagittalSliceIn3D::ShowSagittalSliceIn3D(), ShowSagittalViewer::ShowSagittalViewer(), SimpleElastixRegistrationAction::SimpleElastixRegistrationAction(), SimulationDialog::SimulationDialog(), SingleAcquisition2DAction::SingleAcquisition2DAction(), SingleAcquisition3DAction::SingleAcquisition3DAction(), SmoothFilter::SmoothFilter(), SobelEdgeDetection::SobelEdgeDetection(), SphereTopology::SphereTopology(), StartImaging2DAction::StartImaging2DAction(), StartImaging3DAction::StartImaging3DAction(), StopImaging2DAction::StopImaging2DAction(), StopImaging3DAction::StopImaging3DAction(), ToggleConsoleAction::ToggleConsoleAction(), VolumeRenderingAction::VolumeRenderingAction(), and WarpOut::WarpOut().
|
protected |
set the embedded property (an action is embedded by default, unless specified otherwise by explicitly calling this method with false)
Referenced by AboutAction::AboutAction(), AnglesAndTranslationAction::AnglesAndTranslationAction(), BoxVOI::BoxVOI(), ChangeColor::ChangeColor(), ClearSelectionAction::ClearSelectionAction(), CloseAction::CloseAction(), CloseAllAction::CloseAllAction(), OpenAction::OpenAction(), OpenWorkspaceAction::OpenWorkspaceAction(), QuitAction::QuitAction(), RegionGrowing::RegionGrowing(), RemoveLastInstantiatedAction::RemoveLastInstantiatedAction(), RigidTransform::RigidTransform(), SaveAction::SaveAction(), SaveAllAction::SaveAllAction(), SaveAsAction::SaveAsAction(), SaveWorkspace::SaveWorkspace(), SelectLastInstantiatedAction::SelectLastInstantiatedAction(), SetPathToTestData::SetPathToTestData(), Show3DViewer::Show3DViewer(), ShowAllViewers::ShowAllViewers(), ShowArbitrarySliceIn3D::ShowArbitrarySliceIn3D(), ShowArbitraryViewer::ShowArbitraryViewer(), ShowAxialSliceIn3D::ShowAxialSliceIn3D(), ShowAxialViewer::ShowAxialViewer(), ShowCoronalSliceIn3D::ShowCoronalSliceIn3D(), ShowCoronalViewer::ShowCoronalViewer(), ShowImageIn3D::ShowImageIn3D(), ShowSagittalSliceIn3D::ShowSagittalSliceIn3D(), ShowSagittalViewer::ShowSagittalViewer(), SphereTopology::SphereTopology(), and ToggleConsoleAction::ToggleConsoleAction().
|
protected |
the name of the family in which this action is associated
Referenced by AboutAction::AboutAction(), AnglesAndTranslationAction::AnglesAndTranslationAction(), AnisotropicDiffusion::AnisotropicDiffusion(), AppendMeshes::AppendMeshes(), BoxVOI::BoxVOI(), CannyEdgeDetection::CannyEdgeDetection(), CenterMesh::CenterMesh(), ChangeColor::ChangeColor(), ChangeLanguage::ChangeLanguage(), ChangeParent::ChangeParent(), CleanPolyData::CleanPolyData(), ClearSelectionAction::ClearSelectionAction(), CloseAction::CloseAction(), CloseAllAction::CloseAllAction(), ComputeCurvatures::ComputeCurvatures(), ComputeNormals::ComputeNormals(), ConnectedComponents::ConnectedComponents(), CreateSC::CreateSC(), Decimation::Decimation(), Derivative::Derivative(), ExportAsMDL::ExportAsMDL(), ExtractEdges::ExtractEdges(), ExtractSelection::ExtractSelection(), ExtractSurface::ExtractSurface(), FillWithPoints::FillWithPoints(), FrameEditor::FrameEditor(), GaussianFilter::GaussianFilter(), GenerateModel::GenerateModel(), GradientMagnitude::GradientMagnitude(), GradientMagnitudeRecursiveGaussian::GradientMagnitudeRecursiveGaussian(), GridTopology::GridTopology(), ICPRegistration::ICPRegistration(), ImageLutAction::ImageLutAction(), ImageReconstructionAction::ImageReconstructionAction(), InitImagerAction::InitImagerAction(), InvertMesh::InvertMesh(), Laplacian::Laplacian(), LaplacianRecursiveGaussian::LaplacianRecursiveGaussian(), LaplacianSharpening::LaplacianSharpening(), LoadTextureFromBMP::LoadTextureFromBMP(), LoadTransformation::LoadTransformation(), LoggerParameters::LoggerParameters(), ManualThreshold::ManualThreshold(), MeanFilter::MeanFilter(), MedianFilter::MedianFilter(), MergeMeshs::MergeMeshs(), MeshClipping::MeshClipping(), MeshPicking::MeshPicking(), MeshProjection::MeshProjection(), MeshQuality::MeshQuality(), MeshToImageStencil::MeshToImageStencil(), MorphologicalOperators::MorphologicalOperators(), MultiPicking::MultiPicking(), OpenAction::OpenAction(), OpenFile::OpenFile(), OpenWorkspace::OpenWorkspace(), OpenWorkspaceAction::OpenWorkspaceAction(), OtsuFilter::OtsuFilter(), PixelColorChanger::PixelColorChanger(), PMLExplorerAction::PMLExplorerAction(), QuitAction::QuitAction(), RegionGrowing::RegionGrowing(), RemoveLastInstantiatedAction::RemoveLastInstantiatedAction(), RenderingOption::RenderingOption(), ReorientImage::ReorientImage(), ResampleAction::ResampleAction(), RigidTransform::RigidTransform(), SaveAction::SaveAction(), SaveAllAction::SaveAllAction(), SaveAsAction::SaveAsAction(), SaveDisplacementFromTransformation::SaveDisplacementFromTransformation(), SaveWorkspace::SaveWorkspace(), SelectLastInstantiatedAction::SelectLastInstantiatedAction(), SetPathToTestData::SetPathToTestData(), Show3DViewer::Show3DViewer(), ShowAllViewers::ShowAllViewers(), ShowArbitrarySliceIn3D::ShowArbitrarySliceIn3D(), ShowArbitraryViewer::ShowArbitraryViewer(), ShowAxialSliceIn3D::ShowAxialSliceIn3D(), ShowAxialViewer::ShowAxialViewer(), ShowCoronalSliceIn3D::ShowCoronalSliceIn3D(), ShowCoronalViewer::ShowCoronalViewer(), ShowFrame::ShowFrame(), ShowImageIn3D::ShowImageIn3D(), ShowSagittalSliceIn3D::ShowSagittalSliceIn3D(), ShowSagittalViewer::ShowSagittalViewer(), SimpleElastixRegistrationAction::SimpleElastixRegistrationAction(), SimulationDialog::SimulationDialog(), SingleAcquisition2DAction::SingleAcquisition2DAction(), SingleAcquisition3DAction::SingleAcquisition3DAction(), SmoothFilter::SmoothFilter(), SobelEdgeDetection::SobelEdgeDetection(), SphereTopology::SphereTopology(), StartImaging2DAction::StartImaging2DAction(), StartImaging3DAction::StartImaging3DAction(), StopImaging2DAction::StopImaging2DAction(), StopImaging3DAction::StopImaging3DAction(), ToggleConsoleAction::ToggleConsoleAction(), VolumeRenderingAction::VolumeRenderingAction(), and WarpOut::WarpOut().
|
protected |
set the Pixmap
Referenced by AboutAction::AboutAction(), ChangeColor::ChangeColor(), ChangeLanguage::ChangeLanguage(), CloseAction::CloseAction(), CloseAllAction::CloseAllAction(), OpenAction::OpenAction(), OpenFile::OpenFile(), OpenWorkspace::OpenWorkspace(), OpenWorkspaceAction::OpenWorkspaceAction(), QuitAction::QuitAction(), RenderingOption::RenderingOption(), SaveAction::SaveAction(), SaveAllAction::SaveAllAction(), SaveAsAction::SaveAsAction(), SaveWorkspace::SaveWorkspace(), and ToggleConsoleAction::ToggleConsoleAction().
void camitk::Action::setInputComponent | ( | Component * | input | ) |
Specify the input Components in case of only one Component.
References camitk::Component::isInstanceOf().
Referenced by main(), and camitk::Application::save().
void camitk::Action::setInputComponents | ( | ComponentList | inputs | ) |
Specify the input Component(s) Only applyInPipeline() should be called with this method (maybe apply), but not trigger() as its first intruction is to clear the target components list !!!
References camitk::Component::isInstanceOf().
Referenced by SaveActionState::applyAction(), and ActionState::onEntry().
|
protected |
set the name of the action class
References camitk::setObjectName().
Referenced by AboutAction::AboutAction(), AnglesAndTranslationAction::AnglesAndTranslationAction(), AnisotropicDiffusion::AnisotropicDiffusion(), AppendMeshes::AppendMeshes(), BoxVOI::BoxVOI(), CannyEdgeDetection::CannyEdgeDetection(), CenterMesh::CenterMesh(), ChangeColor::ChangeColor(), ChangeLanguage::ChangeLanguage(), ChangeParent::ChangeParent(), CleanPolyData::CleanPolyData(), ClearSelectionAction::ClearSelectionAction(), CloseAction::CloseAction(), CloseAllAction::CloseAllAction(), ComputeCurvatures::ComputeCurvatures(), ComputeNormals::ComputeNormals(), ConnectedComponents::ConnectedComponents(), CreateSC::CreateSC(), Decimation::Decimation(), Derivative::Derivative(), ExportAsMDL::ExportAsMDL(), ExtractEdges::ExtractEdges(), ExtractSelection::ExtractSelection(), ExtractSurface::ExtractSurface(), FillWithPoints::FillWithPoints(), FrameEditor::FrameEditor(), GaussianFilter::GaussianFilter(), GenerateModel::GenerateModel(), GradientMagnitude::GradientMagnitude(), GradientMagnitudeRecursiveGaussian::GradientMagnitudeRecursiveGaussian(), GridTopology::GridTopology(), ICPRegistration::ICPRegistration(), ImageLutAction::ImageLutAction(), ImageReconstructionAction::ImageReconstructionAction(), InitImagerAction::InitImagerAction(), InvertMesh::InvertMesh(), Laplacian::Laplacian(), LaplacianRecursiveGaussian::LaplacianRecursiveGaussian(), LaplacianSharpening::LaplacianSharpening(), LoadTextureFromBMP::LoadTextureFromBMP(), LoadTransformation::LoadTransformation(), LoggerParameters::LoggerParameters(), ManualThreshold::ManualThreshold(), MeanFilter::MeanFilter(), MedianFilter::MedianFilter(), MergeMeshs::MergeMeshs(), MeshClipping::MeshClipping(), MeshPicking::MeshPicking(), MeshProjection::MeshProjection(), MeshQuality::MeshQuality(), MeshToImageStencil::MeshToImageStencil(), MorphologicalOperators::MorphologicalOperators(), MultiPicking::MultiPicking(), OpenAction::OpenAction(), OpenFile::OpenFile(), OpenWorkspace::OpenWorkspace(), OpenWorkspaceAction::OpenWorkspaceAction(), OtsuFilter::OtsuFilter(), PixelColorChanger::PixelColorChanger(), PMLExplorerAction::PMLExplorerAction(), QuitAction::QuitAction(), RegionGrowing::RegionGrowing(), RemoveLastInstantiatedAction::RemoveLastInstantiatedAction(), RenderingOption::RenderingOption(), ReorientImage::ReorientImage(), ResampleAction::ResampleAction(), RigidTransform::RigidTransform(), SaveAction::SaveAction(), SaveAllAction::SaveAllAction(), SaveAsAction::SaveAsAction(), SaveDisplacementFromTransformation::SaveDisplacementFromTransformation(), SaveWorkspace::SaveWorkspace(), SelectLastInstantiatedAction::SelectLastInstantiatedAction(), SetPathToTestData::SetPathToTestData(), Show3DViewer::Show3DViewer(), ShowAllViewers::ShowAllViewers(), ShowArbitrarySliceIn3D::ShowArbitrarySliceIn3D(), ShowArbitraryViewer::ShowArbitraryViewer(), ShowAxialSliceIn3D::ShowAxialSliceIn3D(), ShowAxialViewer::ShowAxialViewer(), ShowCoronalSliceIn3D::ShowCoronalSliceIn3D(), ShowCoronalViewer::ShowCoronalViewer(), ShowFrame::ShowFrame(), ShowImageIn3D::ShowImageIn3D(), ShowSagittalSliceIn3D::ShowSagittalSliceIn3D(), ShowSagittalViewer::ShowSagittalViewer(), SimpleElastixRegistrationAction::SimpleElastixRegistrationAction(), SimulationDialog::SimulationDialog(), SingleAcquisition2DAction::SingleAcquisition2DAction(), SingleAcquisition3DAction::SingleAcquisition3DAction(), SmoothFilter::SmoothFilter(), SobelEdgeDetection::SobelEdgeDetection(), SphereTopology::SphereTopology(), StartImaging2DAction::StartImaging2DAction(), StartImaging3DAction::StartImaging3DAction(), StopImaging2DAction::StopImaging2DAction(), StopImaging3DAction::StopImaging3DAction(), ToggleConsoleAction::ToggleConsoleAction(), VolumeRenderingAction::VolumeRenderingAction(), and WarpOut::WarpOut().
|
overridevirtual |
Convert all data from the object to a QVariant (usually a QVariantMap)
Implements InterfacePersistence.
References camitk::PersistenceManager::fromProperties().
Referenced by camitk::PersistenceManager::saveWorkspace().
|
slot |
This method triggers the action.
The parent widget is used if the action is embedded, see class description for more information about the algorithm. This method cannot be redefined in inherited class.
References applyAndRegister(), CAMITK_WARNING, ERROR, getComponentClassName(), getWidget(), camitk::Application::refresh(), camitk::Application::setTriggeredAction(), TRIGGERED, and updateTargets().
Referenced by getQAction().
void camitk::Action::updateTargets | ( | ) |
update the target list using the currently selected components
References camitk::Application::getSelectedComponents(), and camitk::Component::isInstanceOf().
Referenced by trigger().
|
protected |
the action widget
Referenced by Action(), ConnectedComponents::apply(), OtsuFilter::apply(), AnglesAndTranslationAction::getWidget(), ImageLutAction::getWidget(), ExportAsMDL::getWidget(), LoadTextureFromBMP::getWidget(), SaveDisplacementFromTransformation::getWidget(), getWidget(), LoadTransformation::getWidget(), LaplacianSharpening::LaplacianSharpening(), setAutoUpdateProperties(), AnglesAndTranslationAction::updateTranslation(), AnglesAndTranslationAction::~AnglesAndTranslationAction(), and ImageReconstructionAction::~ImageReconstructionAction().