MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkCameraVisualization.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkCameraVisualization_h
14#define mitkCameraVisualization_h
15
16#include "mitkCommon.h"
18#include "mitkBaseRenderer.h"
19
20namespace mitk {
29 {
30 public:
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:
102 ~CameraVisualization() override;
103
109 void GenerateData() override;
110
111 mitk::BaseRenderer::Pointer m_Renderer;
112
117 ScalarType m_FocalLength;
118 };
119} // namespace mitk
120#endif
CameraVisualization controls the camera according to the spatial information of the navigation data.
mitk::BaseRenderer::Pointer m_Renderer
renderer that visualizes the navigation data-
Vector3D m_ViewUpInToolCoordinates
view up vector in tool coordinates
itkGetConstMacro(DirectionOfProjectionInToolCoordinates, mitk::Vector3D)
returns the direction of projection of the camera of the renderer in tool coordinates
mitkClassMacro(CameraVisualization, NavigationDataToNavigationDataFilter)
itkGetConstMacro(FocalLength, float)
returns the focal length of the camera
Vector3D m_DirectionOfProjectionInToolCoordinates
vector of the direction of projection in tool coordinates
itkSetMacro(DirectionOfProjectionInToolCoordinates, mitk::Vector3D)
sets the direction of projection of the camera of the renderer in tool coordinates
itkSetMacro(ViewUpInToolCoordinates, mitk::Vector3D)
sets the view up vector of the camera of the renderer in tool coordinates
itkSetMacro(FocalLength, float)
sets the focal length of the camera
ScalarType m_FocalLength
focal length of the camera: distance between camera position and focal point.
Point3D m_CameraPosition
current position of the camera
Vector3D m_DirectionOfProjection
vector of the current direction of view of the camera in world coordinates
itkGetConstMacro(ViewUpInToolCoordinates, mitk::Vector3D)
returns the view up vector of the camera of the renderer in tool coordinates
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
IGT Exceptions.