13 #ifndef mitkPlaneGeometryDataMapper2D_h
14 #define mitkPlaneGeometryDataMapper2D_h
19 #include <vtkSmartPointer.h>
22 class vtkPropAssembly;
24 class vtkPolyDataMapper2D;
52 itkFactorylessNewMacro(Self);
144 double triangleSizeMM,
Abstract base class describing the geometry of a data object.
Organizes the rendering process.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Describes a line in N-dimensional space.
Base class for mapper-specific rendering resources.
Internal class holding the mapper, actor, etc. for each of the 3 2D render windows.
vtkSmartPointer< vtkPolyDataMapper2D > m_HelperLinesmapper
vtkSmartPointer< vtkPolyDataMapper2D > m_Mapper
vtkSmartPointer< vtkPropAssembly > m_CrosshairAssembly
vtkSmartPointer< vtkActor2D > m_ArrowActor
vtkSmartPointer< vtkActor2D > m_CrosshairActor
vtkSmartPointer< vtkActor2D > m_CrosshairHelperLineActor
vtkSmartPointer< vtkPolyDataMapper2D > m_Arrowmapper
VTK-based 2D mapper for rendering a crosshair with the plane geometry.
mitkClassMacro(PlaneGeometryDataMapper2D, VtkMapper)
void CreateVtkCrosshair(BaseRenderer *renderer)
Create the VTK crosshair representation for the given renderer.
virtual void ApplyAllProperties(BaseRenderer *renderer)
Apply all visual properties specific to this mapper.
bool m_ArrowOrientationPositive
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all (three) LocalStorages for the three 2D render windows.
static bool TestPointInReferenceGeometry(const BaseGeometry *referenceGeometry, const Point3D &point)
Test if a point lies within the given reference geometry bounds.
static bool CutCrossLineWithPlaneGeometry(const PlaneGeometry *planeGeometry, Line3D &crossLine)
Clip a crosshair line segment to the bounds of the given PlaneGeometry.
void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override
Apply color and opacity properties, then create VTK render objects.
vtkProp * GetVtkProp(mitk::BaseRenderer *renderer) override
Get the VTK prop assembly for the given renderer.
~PlaneGeometryDataMapper2D() override
std::set< Self * > AllInstancesContainer
bool m_RenderOrientationArrows
void ApplyColorAndOpacityProperties2D(BaseRenderer *renderer, vtkActor2D *actor)
std::vector< DataNode * > NodesVectorType
NodesVectorType m_OtherPlaneGeometries
virtual const mitk::PlaneGeometryData * GetInput() const
Get the PlaneGeometryData input of this mapper.
PlaneGeometryDataMapper2D()
void DrawOrientationArrow(vtkSmartPointer< vtkCellArray > triangles, vtkSmartPointer< vtkPoints > triPoints, double triangleSizeMM, Vector3D &orthogonalVector, Point3D &point1, Point3D &point2)
static AllInstancesContainer s_AllInstances
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Set the default properties for this mapper on the given node.
static bool CutCrossLineWithReferenceGeometry(const BaseGeometry *referenceGeometry, Line3D &crossLine)
Clip a crosshair line segment to the bounds of the given reference geometry.
void DrawLine(Point3D p0, Point3D p1, vtkCellArray *lines, vtkPoints *points)
Add a line segment between two 3D points to VTK data structures.
static bool TestPointInPlaneGeometry(const PlaneGeometry *planeGeometry, const Point3D &point)
Test if a point lies within the given PlaneGeometry bounds.
Data class containing PlaneGeometry objects.
Describes the geometry of a plane object.
Base class of all VTK-based Mappers for displaying primitives using VTK functionality.
Find image slices visible on a given plane.