26 #ifndef MESH_CLIPPING_H
27 #define MESH_CLIPPING_H
37 #include <vtkSmartPointer.h>
This action allows the user to clip several kinds of MeshComponents : vtkStructuredGridClip,...
Definition: MeshClipping.h:60
void changeVisibility()
Method called when the visibility button is clicked.
Definition: MeshClipping.cpp:392
ApplyStatus clipMesh(camitk::MeshComponent *mesh, vtkSmartPointer< vtkPlane > plane)
Clips the mesh throughout the plane specified and return the ApplyStatus.
Definition: MeshClipping.cpp:291
bool save
Controls the saving of the clipped component.
Definition: MeshClipping.h:105
virtual camitk::Action::ApplyStatus apply()
Method called when the action is applied.
Definition: MeshClipping.cpp:139
MeshClipping(camitk::ActionExtension *)
The constructor.
Definition: MeshClipping.cpp:55
void customizeActionLayout()
Customizes the action viewer.
Definition: MeshClipping.cpp:190
double limBounds[6]
Contains the clipping widget bounding box [xmin, xmax, ymin, ymax, zmin, zmax].
Definition: MeshClipping.h:108
virtual void meshDeleted()
specific slot called when the mesh currently clipped is deleted
Definition: MeshClipping.cpp:185
bool allComponents
Controls which components are clipped : all opened components or only selected components.
Definition: MeshClipping.h:99
virtual ~MeshClipping()
The destructor.
Definition: MeshClipping.cpp:77
void changeSmoothing()
Method called when the smooth button is clicked.
Definition: MeshClipping.cpp:409
void saveClippedMeshes()
Method called when the saving button is clicked.
Definition: MeshClipping.cpp:449
void changeAllComponents()
Method called when the clip all components button is clicked.
Definition: MeshClipping.cpp:427
void restoreMeshes()
Method called when the restore button is clicked.
Definition: MeshClipping.cpp:380
PlaneWidget * widget
Class which contains the widget (implements vtkCommand).
Definition: MeshClipping.h:93
virtual QWidget * getWidget()
Method called when the action when the action is triggered (i.e. started).
Definition: MeshClipping.cpp:82
void updateBox()
Method called when the update button is clicked re-calculates the widget box size when new components...
Definition: MeshClipping.cpp:232
camitk::ComponentList list
List of MeshComponent that are currently targeted by the clipping.
Definition: MeshClipping.h:90
bool planeVisibility
Controls the clipping widget visibility.
Definition: MeshClipping.h:102
bool smoothing
Controls smooth or chiselled (raw) clipping.
Definition: MeshClipping.h:96
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:208
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method)
Definition: Action.h:224
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127