|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
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;
104 QMap<camitk::Slice::SliceOrientation, vtkSmartPointer<vtkActor>>
contourActorMap;
110 QMap<camitk::Slice::SliceOrientation, vtkSmartPointer<vtkPlane>>
cuttingPlaneMap;
135 #endif // MESHPROJECTION_H
SingleImageComponent * getCoronalSlices()
Returns the coronal slice.
Definition: ImageComponent.cpp:477
virtual ~MeshProjection()
Default Destructor.
Definition: MeshProjection.cpp:103
void getImageCenterAndTranslationVectorInParent(double C_P[4], double Z_P[4])
Compute the current position of the image center and the z direction vector in the parent coordinate ...
Definition: ArbitrarySingleImageComponent.cpp:342
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:136
void hide()
remove the contour from the viewers if the mesh is closed / destroyed
Definition: MeshProjection.cpp:499
void updateComponents(camitk::MeshComponent *)
update the managed mesh and check the change in the image component using the corresponding property
Definition: MeshProjection.cpp:184
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:266
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:130
@ SUCCESS
everything went according to plan
Definition: Action.h:248
virtual QWidget * getWidget()
method called when the action when the action is triggered (i.e. started)
Definition: MeshProjection.cpp:108
void setEnumTypeName(QString)
if the property's type is an enum, set the name of the registered Qt Enum.
Definition: Property.cpp:108
ApplyStatus
Definition: Action.h:247
void setName(QString name)
Definition: Action.cpp:120
int getSlice() const override
see Component.cpp
Definition: sdk/libraries/core/component/Component.cpp:749
Show the mesh contour in the slice viewers.
Definition: MeshProjection.h:53
void setAutoUpdateProperties(bool)
are the properties to be udpated every time the user makes a change in the widget (default is false)?
Definition: Action.cpp:426
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:131
QMap< camitk::Slice::SliceOrientation, vtkSmartPointer< vtkPlane > > cuttingPlaneMap
the cutting planes: the contour is the intersection between these planes and the mesh
Definition: MeshProjection.h:133
The manager of the Image Volume data. An image volume data has no concrete 3D representation,...
Definition: ImageComponent.h:77
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:166
camitk::InteractiveViewer * getViewer(camitk::Slice::SliceOrientation)
get the slice viewer corresponding to the orientation
Definition: MeshProjection.cpp:595
RendererWidget * getRendererWidget()
return interactiveViewer RendererWidget
Definition: InteractiveViewer.h:237
InteractiveViewer is used to view 3D objects and slices (anything that provides either a InterfaceBit...
Definition: InteractiveViewer.h:112
SingleImageComponent * getAxialSlices()
Returns the axial slice.
Definition: ImageComponent.cpp:472
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:303
camitk::ImageComponent * targetImage
current image component to project onto
Definition: MeshProjection.h:112
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:141
This Component manages sub-component of the image component seen as a single orientation only (axial ...
Definition: SingleImageComponent.h:61
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
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
void setAttribute(const QString &attribute, const QVariant &value)
Set a given property for this attribute.
Definition: Property.cpp:183
vtkSmartPointer< vtkPlane > getNewPlane(camitk::Slice::SliceOrientation)
create a plane for a given orientation
Definition: MeshProjection.cpp:505
void updateCuttingPlane()
this slots is called when the user changes the selected slice to update the contour
Definition: MeshProjection.cpp:488
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
virtual bool event(QEvent *e)
manage property modification immediatly
Definition: MeshProjection.cpp:152
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
void getImageCenterInParent(double[4])
get the current position of the image center in the parent coordinate system i.e the image frame (giv...
Definition: ArbitrarySingleImageComponent.cpp:332
double getVoxelSize(camitk::Slice::SliceOrientation)
get the voxel slice in the correct orientation
Definition: MeshProjection.cpp:564
QMap< camitk::Slice::SliceOrientation, vtkSmartPointer< vtkPolyDataMapper > > cutterMapperMap
the contour mappers (input for both 3D and 2D actors)
Definition: MeshProjection.h:124
SingleImageComponent * getSagittalSlices()
Returns the sagittal slice.
Definition: ImageComponent.cpp:482
const vtkSmartPointer< vtkTransform > getTransformFromWorld() const override
Transforms accessors / Modifyers.
Definition: sdk/libraries/core/component/Component.cpp:814
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127
MeshProjection(camitk::ActionExtension *)
Default Constructor.
Definition: MeshProjection.cpp:60
camitk::MeshComponent * meshToProject
current mesh component
Definition: MeshProjection.h:109
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
void updateContourLineWidth()
update the contour line width using the corresponding property value
Definition: MeshProjection.cpp:210
QList< camitk::ImageComponent * > imageComponentList
Definition: MeshProjection.h:118
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:127
void updateVisibility()
show/hide the contour in a viewer
Definition: MeshProjection.cpp:224
vtkSmartPointer< vtkImageData > getImageData() const override
get the image volume managed by this Component
Definition: ImageComponent.h:123
virtual Q_INVOKABLE camitk::Property * getProperty(QString name)
Get a Property given its name.
Definition: Action.cpp:435
virtual camitk::Action::ApplyStatus apply()
this method is automatically called when the action is triggered.
Definition: MeshProjection.cpp:146
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
void refresh()
refresh the display
SliceOrientation
Common slices orientation: axial, sagittal, coronal axial_neuro.
Definition: Slice.h:197
ArbitrarySingleImageComponent * getArbitrarySlices()
Returns the arbitrary slice.
Definition: ImageComponent.cpp:487
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