Medical Imaging Interaction Toolkit  2023.12.00
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 mitkCameraVisualization_h
14 #define mitkCameraVisualization_h
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
mitk::CameraVisualization::m_CameraPosition
Point3D m_CameraPosition
current position of the camera
Definition: mitkCameraVisualization.h:116
mitk::CameraVisualization::m_ViewUpInToolCoordinates
Vector3D m_ViewUpInToolCoordinates
view up vector in tool coordinates
Definition: mitkCameraVisualization.h:114
mitk::CameraVisualization::m_Renderer
mitk::BaseRenderer::Pointer m_Renderer
renderer that visualizes the navigation data-
Definition: mitkCameraVisualization.h:111
itk::SmartPointer< const Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::CameraVisualization::m_DirectionOfProjection
Vector3D m_DirectionOfProjection
vector of the current direction of view of the camera in world coordinates
Definition: mitkCameraVisualization.h:115
mitk::Vector< ScalarType, 3 >
mitk::Point< ScalarType, 3 >
mitkCommon.h
mitk::PropertyList
Key-value list holding instances of BaseProperty.
Definition: mitkPropertyList.h:56
mitk::CameraVisualization::m_DirectionOfProjectionInToolCoordinates
Vector3D m_DirectionOfProjectionInToolCoordinates
vector of the direction of projection in tool coordinates
Definition: mitkCameraVisualization.h:113
mitkNavigationDataToNavigationDataFilter.h
mitk::CameraVisualization::m_FocalLength
ScalarType m_FocalLength
focal length of the camera: distance between camera position and focal point.
Definition: mitkCameraVisualization.h:117
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitkBaseRenderer.h
mitk::ScalarType
double ScalarType
Definition: mitkNumericConstants.h:20