15 #ifndef vtkOpenGLMatrixDrivenCamera_h
16 #define vtkOpenGLMatrixDrivenCamera_h
18 #include "niftkCoreExports.h"
19 #include <vtkOpenGLCamera.h>
20 #include <vtkRenderer.h>
21 #include <vtkMatrix4x4.h>
22 #include <vtkSmartPointer.h>
23 #include <vtkSetGet.h>
44 virtual void PrintSelf(ostream& os, vtkIndent indent)
override;
46 void Render(vtkRenderer *ren)
override;
48 vtkSetMacro(UseCalibratedCamera,
bool);
49 vtkGetMacro(UseCalibratedCamera,
bool);
57 void SetCalibratedImageSize(
const int&
width,
const int&
height,
double pixelaspect = 1.0);
64 void SetActualWindowSize(
const int& width,
const int& height);
73 void SetIntrinsicParameters(
const double& fx,
const double& fy,
74 const double &cx,
const double& cy
86 vtkSmartPointer<vtkMatrix4x4> m_IntrinsicMatrix;
87 bool UseCalibratedCamera;
88 int m_ImageWidthInPixels;
89 int m_ImageHeightInPixels;
90 int m_WindowWidthInPixels;
91 int m_WindowHeightInPixels;
92 double m_PixelAspectRatio;
~vtkOpenGLMatrixDrivenCamera()
Definition: vtkOpenGLMatrixDrivenCamera.h:79
Subclass of vtkCamera so we can just set the relevant intrinsic matrix, the size of the image used in...
Definition: vtkOpenGLMatrixDrivenCamera.h:39
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
Definition: glew.h:1236
GLint GLint GLint GLint GLint GLint GLsizei width
Definition: glew.h:1236