|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
25 #ifndef ANGLESANDTRANSLATIONACTION_H
26 #define ANGLESANDTRANSLATIONACTION_H
58 virtual bool event(QEvent* e);
61 void resetTransform();
72 void updateTranslation();
86 #endif // ANGLESANDTRANSLATIONACTION_H
camitk::ArbitrarySingleImageComponent * currentImageComp
currently controled image
Definition: AnglesAndTranslationAction.h:103
This action simply display the widget allowing the user to select an angle to orientate the arbitrary...
Definition: AnglesAndTranslationAction.h:42
virtual void setTransformTranslation(double, double, double) override final
set the arbitrary slice translation inside the volume between 0 and 1 (first two parameters are ignor...
Definition: ArbitrarySingleImageComponent.cpp:196
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:136
#define ARBITRARY_SLICE_API
Definition: ArbitrarySliceAPI.h:8
bool blockEvent
block property changed event (temporarily)
Definition: AnglesAndTranslationAction.h:106
LayoutVisibility
Definition: MedicalImageViewer.h:87
void resetTransform()
reset transform to identity
Definition: AnglesAndTranslationAction.cpp:138
@ SUCCESS
everything went according to plan
Definition: Action.h:248
All-in-one medical image viewer.
Definition: MedicalImageViewer.h:59
void setEnumTypeName(QString)
if the property's type is an enum, set the name of the registered Qt Enum.
Definition: Property.cpp:108
ApplyStatus
Definition: Action.h:247
void setName(QString name)
Definition: Action.cpp:120
This Component manages the specific case of arbitrary orientation of a sub-component of the image com...
Definition: ArbitrarySingleImageComponent.h:88
void setAutoUpdateProperties(bool)
are the properties to be udpated every time the user makes a change in the widget (default is false)?
Definition: Action.cpp:426
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:131
QWidget * actionWidget
the action widget
Definition: Action.h:480
The manager of the Image Volume data. An image volume data has no concrete 3D representation,...
Definition: ImageComponent.h:77
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:166
void setEmbedded(bool isEmbedded)
set the embedded property (an action is embedded by default, unless specified otherwise by explicitly...
Definition: Action.cpp:146
virtual ~AnglesAndTranslationAction()
Default Destructor.
Definition: AnglesAndTranslationAction.cpp:90
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:303
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:141
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
@ VIEWER_ARBITRARY
Only the arbitrary InteractiveViewer are visible.
Definition: MedicalImageViewer.h:93
virtual QWidget * getWidget()
Return the arbitrary slice angles setter widget.
Definition: AnglesAndTranslationAction.cpp:95
void setAttribute(const QString &attribute, const QVariant &value)
Set a given property for this attribute.
Definition: Property.cpp:183
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...
virtual void resetTransform() override final
reset the transformation to the image component parent so that the frame of the arbitrary slice is in...
Definition: ArbitrarySingleImageComponent.cpp:133
void setDescription(QString description)
the description of the action
Definition: Action.cpp:126
void update()
update action's parameter using the current image state + update widget GUI
Definition: AnglesAndTranslationAction.cpp:115
virtual void setTransformRotation(double, double, double) override final
rotate of the given angles around the center of the frame/arbitrary slice
Definition: ArbitrarySingleImageComponent.cpp:139
virtual bool event(QEvent *e)
manage change in the action parameters (angles and slice number)
Definition: AnglesAndTranslationAction.cpp:153
virtual void setVisibility(QString, bool)
set the visibility inside the viewer of the given name (the viewer needs to be a registered viewer)
Definition: sdk/libraries/core/component/Component.cpp:224
virtual bool addParameter(Property *)
Add a new parameter to the action, using the CamiTK property class.
Definition: Action.cpp:440
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:80
void setVisibleViewer(LayoutVisibility)
called to change the layout, i.e. which viewer is visible
Definition: MedicalImageViewer.cpp:244
virtual double getTranslationInVolume()
Get the current translation relatively to the volume 0.0 means that the center of the slice is at the...
Definition: ArbitrarySingleImageComponent.cpp:288
AnglesAndTranslationAction(camitk::ActionExtension *)
Default Constructor.
Definition: AnglesAndTranslationAction.cpp:41
virtual QWidget * getWidget()
This method has to be redefined in your Action only if:
Definition: Action.cpp:185
void updateTranslation()
Definition: AnglesAndTranslationAction.cpp:191
virtual void refresh()
refresh all the viewer that are currently displaying this Component At the end the InterfaceNode modi...
Definition: sdk/libraries/core/component/Component.cpp:286
Definition: Action.cpp:35