Medical Imaging Interaction Toolkit  2018.4.99-701c8286
Medical Imaging Interaction Toolkit
mitkCameraVisualization.h
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 #ifndef CAMERAVISUALIZATION_H_INCLUDED
14 #define CAMERAVISUALIZATION_H_INCLUDED
15 
16 #include "mitkCommon.h"
18 #include "mitkBaseRenderer.h"
19 
20 namespace mitk { class MITKIGT_EXPORT CameraVisualization : public NavigationDataToNavigationDataFilter
29  {
30  public:
31  mitkClassMacro(CameraVisualization, NavigationDataToNavigationDataFilter);
32  itkFactorylessNewMacro(Self);
33  itkCloneMacro(Self);
34 
38  itkSetMacro(DirectionOfProjectionInToolCoordinates, mitk::Vector3D);
39 
43  itkSetMacro(ViewUpInToolCoordinates, mitk::Vector3D);
44 
48  itkSetMacro(FocalLength, float);
49 
53  itkGetConstMacro(DirectionOfProjectionInToolCoordinates, mitk::Vector3D);
54 
58  itkGetConstMacro(ViewUpInToolCoordinates, mitk::Vector3D);
59 
63  itkGetConstMacro(FocalLength, float);
64 
68  virtual void SetRenderer( mitk::BaseRenderer* renderer );
69 
73  virtual const mitk::BaseRenderer* GetRenderer();
74 
84  void SetParameters(const mitk::PropertyList* p) override;
85 
98  mitk::PropertyList::ConstPointer GetParameters() const override;
99 
100  protected:
101  CameraVisualization();
102  ~CameraVisualization() override;
103 
109  void GenerateData() override;
110 
112 
118  };
119 } // namespace mitk
120 #endif
ScalarType m_FocalLength
focal length of the camera: distance between camera position and focal point.
double ScalarType
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Point3D m_CameraPosition
current position of the camera
Key-value list holding instances of BaseProperty.
mitk::BaseRenderer::Pointer m_Renderer
renderer that visualizes the navigation data-
#define MITKIGT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Vector3D m_DirectionOfProjection
vector of the current direction of view of the camera in world coordinates
Vector3D m_ViewUpInToolCoordinates
view up vector in tool coordinates
Vector3D m_DirectionOfProjectionInToolCoordinates
vector of the direction of projection in tool coordinates