Center the current camitk::MeshComponent in the center of the space coordinate.
Definition: CenterMesh.h:46
void updateMeshBarycenter(camitk::MeshComponent *targetMesh, double center[3])
compute barycenter of targetMesh
Definition: CenterMesh.cpp:125
CenterMesh(camitk::ActionExtension *)
the constructor
Definition: CenterMesh.cpp:44
virtual ~CenterMesh()=default
Destructor.
virtual camitk::Action::ApplyStatus apply() override
method called when the action is applied
Definition: CenterMesh.cpp:68
virtual QWidget * getWidget() override
just update the barycenter
Definition: CenterMesh.cpp:58
This class describes what is a generic Action extension.
Definition: ActionExtension.h:57
Action class is an abstract class that enables you to build a action (generally on a component).
Definition: Action.h:209
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method)
Definition: Action.h:225
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
Definition: Action.cpp:36