NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
QmitkCalibratedModelRenderingPipeline.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef QmitkCalibratedModelRenderingPipeline_h
16 #define QmitkCalibratedModelRenderingPipeline_h
17 
18 #include "niftkIGIGuiExports.h"
19 #include <QVTKWidget.h>
20 #include <QKeyEvent>
21 #include <QEvent>
22 #include <QString>
24 
29 class NIFTKIGIGUI_EXPORT QmitkCalibratedModelRenderingPipeline : public QVTKWidget
30 {
31  Q_OBJECT
32 
33 public:
34 
36  const std::string& name,
37  const mitk::Point2I& windowSize,
38  const mitk::Point2I& calibratedWindowSize,
39  const std::string& leftIntrinsicsFileName,
40  const std::string& rightIntrinsicsFileName,
41  const std::string& visualisationModelFileName,
42  const std::string& rightToLeftFileName,
43  const std::string& textureFileName,
44  const std::string& trackingModelFileName,
45  const std::string& ultrasoundCalibrationMatrixFileName,
46  const std::string& ultrasoundImageFileName,
47  const float& trackingGlyphRadius,
48  const std::string& outputData,
49  QWidget *parent = 0
50  );
51 
53 
57  void SetModelToWorldMatrix(const vtkMatrix4x4& modelToWorld);
58 
62  void SetModelToWorldTransform(const std::vector<float>&);
63 
67  void SetCameraToWorldMatrix(const vtkMatrix4x4& cameraToWorld);
68 
72  void SetCameraToWorldTransform(const std::vector<float>&);
73 
77  void SetWorldToCameraMatrix(const vtkMatrix4x4& worldToCamera);
78 
82  void SetWorldToCameraTransform(const std::vector<float>&);
83 
87  void SetIsRightHandCamera(const bool& isRight);
88 
92  void Render();
93 
97  void SaveLeftImage();
98 
102  void SaveRightImage();
103 
107  void SaveData();
108 
109 private:
110 
112  mitk::Point2I m_WindowSize;
113  mitk::Point2I m_CalibratedWindowSize;
114  std::string m_OutputData;
115 
116 };
117 
118 #endif
Harness to call vtkCalibratedModelRenderingPipeline.
Definition: QmitkCalibratedModelRenderingPipeline.h:29
Used to quickly make test harnesses demos and research prototypes.
Definition: vtkCalibratedModelRenderingPipeline.h:56
GLuint const GLchar * name
Definition: glew.h:1798
GLsizei const GLcharARB ** string
Definition: glew.h:5194