|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef MESH_CLIPPING_H
27 #define MESH_CLIPPING_H
37 #include <vtkSmartPointer.h>
139 #endif // MESH_CLIPPING_H
void customizeActionLayout()
Customizes the action viewer.
Definition: MeshClipping.cpp:190
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:136
MeshClipping(camitk::ActionExtension *)
The constructor.
Definition: MeshClipping.cpp:55
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:266
virtual ~MeshClipping()
The destructor.
Definition: MeshClipping.cpp:77
@ SUCCESS
everything went according to plan
Definition: Action.h:248
virtual bool isSelected() const
Check if this data component is selected.
Definition: sdk/libraries/core/component/Component.h:892
@ ABORTED
the action was aborted before completion
Definition: Action.h:251
ApplyStatus
Definition: Action.h:247
void setName(QString name)
Definition: Action.cpp:120
virtual void meshDeleted()
specific slot called when the mesh currently clipped is deleted
Definition: MeshClipping.cpp:185
Interactive 3D viewer.
Definition: InteractiveGeometryViewer.h:56
bool save
Controls the saving of the clipped component.
Definition: MeshClipping.h:128
bool planeVisibility
Controls the clipping widget visibility.
Definition: MeshClipping.h:125
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
RendererWidget * getRendererWidget()
return interactiveViewer RendererWidget
Definition: InteractiveViewer.h:237
void changeSmoothing()
Method called when the smooth button is clicked.
Definition: MeshClipping.cpp:409
vtkSmartPointer< vtkPointSet > getDataPort
Definition: sdk/libraries/core/component/Component.h:585
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:141
virtual QWidget * getWidget()
Method called when the action when the action is triggered (i.e. started).
Definition: MeshClipping.cpp:82
virtual vtkSmartPointer< vtkPointSet > getPointSet()=0
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
camitk::ComponentList list
List of MeshComponent that are currently targeted by the clipping.
Definition: MeshClipping.h:113
This action allows the user to clip several kinds of MeshComponents : vtkStructuredGridClip,...
Definition: MeshClipping.h:60
void changeAllComponents()
Method called when the clip all components button is clicked.
Definition: MeshClipping.cpp:427
bool isInstanceOf(QString className) const override
Assert that a Component instance really inherits from a given className.
Definition: sdk/libraries/core/component/Component.cpp:496
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
PlaneWidget * widget
Class which contains the widget (implements vtkCommand).
Definition: MeshClipping.h:116
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127
bool allComponents
Controls which components are clipped : all opened components or only selected components.
Definition: MeshClipping.h:122
double limBounds[6]
Contains the clipping widget bounding box [xmin, xmax, ymin, ymax, zmin, zmax].
Definition: MeshClipping.h:131
void getBounds(double *bounds) override
compute the object's bounding box [xmin,xmax, ymin,ymax, zmin,zmax], see Component....
Definition: sdk/libraries/core/component/Component.cpp:671
void updateBox()
Method called when the update button is clicked re-calculates the widget box size when new components...
Definition: MeshClipping.cpp:232
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:80
virtual camitk::Action::ApplyStatus apply()
Method called when the action is applied.
Definition: MeshClipping.cpp:139
void changeVisibility()
Method called when the visibility button is clicked.
Definition: MeshClipping.cpp:392
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
void refresh()
refresh the display
void saveClippedMeshes()
Method called when the saving button is clicked.
Definition: MeshClipping.cpp:449
void restoreMeshes()
Method called when the restore button is clicked.
Definition: MeshClipping.cpp:380
void getBounds(double *bound)
Compute the bounding box of all displayed Component.
Definition: InteractiveViewer.cpp:1547
ApplyStatus clipMesh(camitk::MeshComponent *mesh, vtkSmartPointer< vtkPlane > plane)
Clips the mesh throughout the plane specified and return the ApplyStatus.
Definition: MeshClipping.cpp:291
virtual void setDataConnection(vtkSmartPointer< vtkAlgorithmOutput >)=0
Set/reset the connection for the InterfaceGeometry internal algorithm.
bool smoothing
Controls smooth or chiselled (raw) clipping.
Definition: MeshClipping.h:119
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