13 #ifndef mitkLabelAnnotation3D_h
14 #define mitkLabelAnnotation3D_h
19 #include <vtkSmartPointer.h>
22 class vtkPolyDataMapper;
26 class vtkPointSetToLabelHierarchy;
27 class vtkLabelPlacementMapper;
59 itkFactorylessNewMacro(Self);
90 std::vector<std::string> m_LabelVector;
94 std::vector<int> m_PriorityVector;
99 unsigned long m_PointSetModifiedObserverTag;
#define MITKANNOTATION_EXPORT
Base class for mapper specific rendering resources.
Internal class holding the vtkActor, etc. for each of the render windows.
vtkSmartPointer< vtkLabelPlacementMapper > m_LabelMapper
vtkSmartPointer< vtkIntArray > m_Sizes
LocalStorage()
Default constructor of the local storage.
vtkSmartPointer< vtkPointSetToLabelHierarchy > m_PointSetToLabelHierarchyFilter
~LocalStorage()
Default deconstructor of the local storage.
vtkSmartPointer< vtkStringArray > m_Labels
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
vtkSmartPointer< vtkActor2D > m_LabelsActor
vtkSmartPointer< vtkPolyData > m_Points
Can display a high amount of 3D labels to a PointSet.
void SetLabelCoordinates(itk::SmartPointer< PointSet > LabelCoordinates)
Coordinates of the labels.
vtkProp * GetVtkProp(BaseRenderer *renderer) const override
This method is implemented by the specific VTKAnnotation in order to create the element as a vtkProp.
void PointSetModified(const itk::Object *, const itk::EventObject &)
void UpdateVtkAnnotation(mitk::BaseRenderer *renderer) override
mitkClassMacro(LabelAnnotation3D, mitk::VtkAnnotation3D)
void SetLabelVector(const std::vector< std::string > &LabelVector)
Set the vector of labels that are shown to each corresponding point3D. The size has to be equal to th...
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all LocalStorages for the render windows.
LabelAnnotation3D()
explicit constructor which disallows implicit conversions
~LabelAnnotation3D() override
virtual destructor in order to derive from this class
void SetPriorityVector(const std::vector< int > &PriorityVector)
Optional: Provide a vector of priorities. The labels with higher priorities will be visible in lower ...
The VtkAnnotation3D class is the basis for all VTK based Annotation which create any 3D element as a ...
Find image slices visible on a given plane.
std::vector< Label::Pointer > LabelVector