27#ifndef MESHPROJECTION_H
28#define MESHPROJECTION_H
39#include <CamiTKDisableWarnings>
40#include <vtkPolyDataMapper.h>
41#include <CamiTKReEnableWarnings>
65 virtual bool event(QEvent* e);
101 QMap<camitk::Slice::SliceOrientation, vtkSmartPointer<vtkPolyDataMapper>>
cutterMapperMap;
Show the mesh contour in the slice viewers.
Definition: MeshProjection.h:53
void updateCuttingPlane()
this slots is called when the user changes the selected slice to update the contour
Definition: MeshProjection.cpp:488
QMap< camitk::Slice::SliceOrientation, vtkSmartPointer< vtkActor > > contourActorMap
the mesh contours in the 3D view (where the mesh actually is), one for each orientation
Definition: MeshProjection.h:104
virtual bool event(QEvent *e)
manage property modification immediatly
Definition: MeshProjection.cpp:152
QMap< camitk::Slice::SliceOrientation, vtkSmartPointer< vtkPlane > > cuttingPlaneMap
the cutting planes: the contour is the intersection between these planes and the mesh
Definition: MeshProjection.h:110
camitk::ImageComponent * targetImage
current image component to project onto
Definition: MeshProjection.h:89
camitk::MeshComponent * meshToProject
current mesh component
Definition: MeshProjection.h:86
void hide()
remove the contour from the viewers if the mesh is closed / destroyed
Definition: MeshProjection.cpp:499
void updateVisibility()
show/hide the contour in a viewer
Definition: MeshProjection.cpp:224
virtual ~MeshProjection()
Default Destructor.
Definition: MeshProjection.cpp:103
virtual camitk::Action::ApplyStatus apply()
this method is automatically called when the action is triggered.
Definition: MeshProjection.cpp:146
QMap< camitk::Slice::SliceOrientation, vtkSmartPointer< vtkActor > > contourActorIn2DViewerMap
the mesh contours in the 2D views (with the proper transform that makes it appear in the slice viewer...
Definition: MeshProjection.h:107
double getVoxelSize(camitk::Slice::SliceOrientation)
get the voxel slice in the correct orientation
Definition: MeshProjection.cpp:564
void updateContourLineWidth()
update the contour line width using the corresponding property value
Definition: MeshProjection.cpp:210
QList< camitk::ImageComponent * > imageComponentList
Definition: MeshProjection.h:95
void updateComponents(camitk::MeshComponent *)
update the managed mesh and check the change in the image component using the corresponding property
Definition: MeshProjection.cpp:184
vtkSmartPointer< vtkActor > getNewActor(camitk::Slice::SliceOrientation)
create an actor for the contour. The color of the new actor depends on the current orientation
Definition: MeshProjection.cpp:571
camitk::InteractiveViewer * getViewer(camitk::Slice::SliceOrientation)
get the slice viewer corresponding to the orientation
Definition: MeshProjection.cpp:595
MeshProjection(camitk::ActionExtension *)
Default Constructor.
Definition: MeshProjection.cpp:60
vtkSmartPointer< vtkPlane > getNewPlane(camitk::Slice::SliceOrientation)
create a plane for a given orientation
Definition: MeshProjection.cpp:505
virtual QWidget * getWidget()
method called when the action when the action is triggered (i.e. started)
Definition: MeshProjection.cpp:108
QMap< camitk::Slice::SliceOrientation, vtkSmartPointer< vtkPolyDataMapper > > cutterMapperMap
the contour mappers (input for both 3D and 2D actors)
Definition: MeshProjection.h:101
int getOrientationIndex(camitk::Slice::SliceOrientation)
get the dimension index corresponding to the current orientation 0 is the index for sagittal dimensio...
Definition: MeshProjection.cpp:546
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
The manager of the Image Volume data.
Definition: ImageComponent.h:77
InteractiveViewer is used to view 3D objects and slices (anything that provides either a InterfaceBit...
Definition: InteractiveViewer.h:112
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
SliceOrientation
Common slices orientation: axial, sagittal, coronal axial_neuro.
Definition: Slice.h:151