Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkPlaneGeometryDataMapper2D_h
14 #define mitkPlaneGeometryDataMapper2D_h
19 #include <vtkSmartPointer.h>
22 class vtkPropAssembly;
24 class vtkPolyDataMapper2D;
50 itkFactorylessNewMacro(
Self);
101 static bool TestPointInReferenceGeometry(
const BaseGeometry *referenceGeometry,
const Point3D &point);
103 static bool CutCrossLineWithPlaneGeometry(
const PlaneGeometry *planeGeometry,
Line3D &crossLine);
104 static bool CutCrossLineWithReferenceGeometry(
const BaseGeometry *referenceGeometry,
Line3D &crossLine);
106 void DrawLine(
Point3D p0,
Point3D p1, vtkCellArray *lines, vtkPoints *points);
118 void ApplyColorAndOpacityProperties2D(
BaseRenderer *renderer, vtkActor2D *actor);
121 double triangleSizeMM,
vtkSmartPointer< vtkPolyDataMapper2D > m_Mapper
vtkSmartPointer< vtkPolyDataMapper2D > m_Arrowmapper
Describes a two-dimensional, rectangular plane.
vtkSmartPointer< vtkActor2D > m_ArrowActor
vtkSmartPointer< vtkPolyDataMapper2D > m_HelperLinesmapper
std::vector< DataNode * > NodesVectorType
Find image slices visible on a given plane.
static AllInstancesContainer s_AllInstances
vtkSmartPointer< vtkActor2D > m_CrosshairActor
Internal class holding the mapper, actor, etc. for each of the 3 2D render windows.
std::set< Self * > AllInstancesContainer
Base class of all mappers, Vtk as well as OpenGL mappers.
BaseGeometry Describes the geometry of a data object.
vtkSmartPointer< vtkActor2D > m_CrosshairHelperLineActor
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Data class containing PlaneGeometry objects.
Base class for mapper specific rendering resources.
Vtk-based 2D mapper for rendering a crosshair with the plane geometry.
bool m_ArrowOrientationPositive
vtkSmartPointer< vtkPropAssembly > m_CrosshairAssembly
#define mitkClassMacro(className, SuperClassName)
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all (three) LocalStorages for the three 2D render windows.
NodesVectorType m_OtherPlaneGeometries
bool m_RenderOrientationArrows
Class for nodes of the DataTree.
void SetDefaultProperties(DataNode *node, BaseRenderer *renderer, bool override)
Set common default properties for both 2-d and 3-d ROI mappers.