13 #ifndef mitkVtkAnnotation2D_h
14 #define mitkVtkAnnotation2D_h
18 #include <vtkSmartPointer.h>
#define MITKANNOTATION_EXPORT
Organizes the rendering process.
Base class for VTK-based 2D annotations rendered as vtkActor2D elements.
void SetOffsetVector(const Point2D &OffsetVector)
Set an offset vector added to the position.
Point2D GetPosition2D() const
Get the 2D position in display coordinates.
virtual void UpdateVtkAnnotation2D(BaseRenderer *renderer)=0
Point2D GetOffsetVector() const
Get the offset vector.
virtual vtkActor2D * GetVtkActor2D(BaseRenderer *renderer) const =0
~VtkAnnotation2D() override
virtual destructor in order to derive from this class
vtkProp * GetVtkProp(BaseRenderer *renderer) const override
Create the VTK prop representing this annotation.
Annotation::Bounds GetBoundsOnDisplay(BaseRenderer *renderer) const override
Get the bounding rectangle of this annotation on the display.
void UpdateVtkAnnotation(BaseRenderer *renderer) override
void SetBoundsOnDisplay(BaseRenderer *renderer, const Bounds &bounds) override
Set the bounding rectangle of this annotation on the display.
void SetPosition2D(const Point2D &position2D)
Set the 2D position in display coordinates.
mitkClassMacro(VtkAnnotation2D, VtkAnnotation)
VtkAnnotation2D()
explicit constructor which disallows implicit conversions
Base class for all annotations that use the VTK framework for rendering.
Find image slices visible on a given plane.
Container for position and size on the display.