Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkVtkAnnotation3D.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkVtkAnnotation3D.h"
14 
16 {
17  mitk::Point3D offsetVector;
18  offsetVector.Fill(0);
19  SetOffsetVector(offsetVector);
20 }
21 
23 {
24 }
25 
27 {
28  mitk::Point3dProperty::Pointer position3dProperty = mitk::Point3dProperty::New(position3D);
29  SetProperty("VtkAnnotation3D.Position3D", position3dProperty.GetPointer());
30 }
31 
33 {
34  mitk::Point3D position3D;
35  position3D.Fill(0);
36  GetPropertyValue<mitk::Point3D>("VtkAnnotation3D.Position3D", position3D);
37  return position3D;
38 }
39 
41 {
42  mitk::Point3dProperty::Pointer OffsetVectorProperty = mitk::Point3dProperty::New(OffsetVector);
43  SetProperty("VtkAnnotation3D.OffsetVector", OffsetVectorProperty.GetPointer());
44 }
45 
47 {
48  mitk::Point3D OffsetVector;
49  OffsetVector.Fill(0);
50  GetPropertyValue<mitk::Point3D>("VtkAnnotation3D.OffsetVector", OffsetVector);
51  return OffsetVector;
52 }
~VtkAnnotation3D() override
virtual destructor in order to derive from this class
void SetProperty(const std::string &propertyKey, const BaseProperty::Pointer &property)
Set the property (instance of BaseProperty) with key propertyKey in the PropertyList of the renderer ...
VtkAnnotation3D()
explicit constructor which disallows implicit conversions
void SetOffsetVector(const Point3D &OffsetVector)
static Pointer New()
void SetPosition3D(const Point3D &position3D)
Point3D GetOffsetVector() const