|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef CHANGEPARENT_H
27 #define CHANGEPARENT_H
63 #endif // CHANGEPARENT_H
void updateComboBox()
Definition: ChangeParent.cpp:96
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:136
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:266
bool isTopLevel() const
return true if this component is a top-level component
Definition: sdk/libraries/core/component/Component.cpp:203
void setParentFrame(InterfaceFrame *frame, bool keepTransform=true) override
Set the parent frame and update or not its transform during the parent transition.
Definition: sdk/libraries/core/component/Component.cpp:792
@ SUCCESS
everything went according to plan
Definition: Action.h:248
void setEnumTypeName(QString)
if the property's type is an enum, set the name of the registered Qt Enum.
Definition: Property.cpp:108
@ ABORTED
the action was aborted before completion
Definition: Action.h:251
ApplyStatus
Definition: Action.h:247
void setName(QString name)
Definition: Action.cpp:120
ChangeParent(camitk::ActionExtension *)
the constructor
Definition: ChangeParent.cpp:36
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:131
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:166
virtual ~ChangeParent()=default
Destructor.
QList< camitk::Component * > possibleParentList
Definition: ChangeParent.h:80
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
void setAttribute(const QString &attribute, const QVariant &value)
Set a given property for this attribute.
Definition: Property.cpp:183
void setDescription(QString description)
the description of the action
Definition: Action.cpp:126
QString getName() const override
get the name to be displayed
Definition: sdk/libraries/core/component/Component.h:907
camitk::Component * currentComponent
Definition: ChangeParent.h:77
This class describes what are the methods to implement in order to manage a Component position in spa...
Definition: InterfaceFrame.h:64
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127
virtual InterfaceFrame * getParentFrame() const =0
Get the parent frame.
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
virtual Q_INVOKABLE camitk::Property * getProperty(QString name)
Get a Property given its name.
Definition: Action.cpp:435
virtual camitk::Action::ApplyStatus apply()
Update the component's frame with the parent frame selected by the user.
Definition: ChangeParent.cpp:74
void refresh()
refresh the display
virtual QWidget * getWidget()
update the possible parent lists
Definition: ChangeParent.cpp:65
This action allows you to modify the selected component's frame parent.
Definition: ChangeParent.h:33
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
Definition: Action.cpp:35