Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkOverlay3D.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkVtkOverlay3D.h"
18 
20 {
21  mitk::Point3D offsetVector;
22  offsetVector.Fill(0);
23  SetOffsetVector(offsetVector);
24 }
25 
27 {
28 }
29 
31 {
32  mitk::Point3dProperty::Pointer position3dProperty = mitk::Point3dProperty::New(position3D);
33  SetProperty("VtkOverlay3D.Position3D", position3dProperty.GetPointer(), renderer);
34 }
35 
37 {
38  mitk::Point3D position3D;
39  position3D.Fill(0);
40  GetPropertyValue<mitk::Point3D>("VtkOverlay3D.Position3D", position3D, renderer);
41  return position3D;
42 }
43 
45 {
46  mitk::Point3dProperty::Pointer OffsetVectorProperty = mitk::Point3dProperty::New(OffsetVector);
47  SetProperty("VtkOverlay3D.OffsetVector", OffsetVectorProperty.GetPointer(), renderer);
48 }
49 
51 {
52  mitk::Point3D OffsetVector;
53  OffsetVector.Fill(0);
54  GetPropertyValue<mitk::Point3D>("VtkOverlay3D.OffsetVector", OffsetVector, renderer);
55  return OffsetVector;
56 }
Point3D GetOffsetVector(mitk::BaseRenderer *renderer=NULL) const
Organizes the rendering process.
void SetPosition3D(const Point3D &position3D, mitk::BaseRenderer *renderer=NULL)
VtkOverlay3D()
explicit constructor which disallows implicit conversions
void SetOffsetVector(const Point3D &OffsetVector, mitk::BaseRenderer *renderer=NULL)
static Pointer New()
virtual ~VtkOverlay3D()
virtual destructor in order to derive from this class
Point3D GetPosition3D(mitk::BaseRenderer *renderer=NULL) const