1.CameraModel1-----绕focal point运行(物体不动,相机动)
官方demo:
https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/CameraModel1/
方向(下图中x,y,z为屏幕坐标)
2.CameraModel2-----绕camera position运动(相机不动,物体动)
官方demo:
https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/CameraModel2/
3.GetDirectionOfProjection-----垂直屏幕向里
4.GetViewPlaneNormal-----垂直屏幕向外
dicom坐标系:x->从右到左 y->从前到后 z->从脚到头
vtk坐标系:x->从右到左 y->从后到前 z->从头到脚
几个相机有关的demo
1.将vtkCamera的相关参数保存到文件里及读取文件设置vtkCamera为文件中的状态
https://lorensen.github.io/VTKExamples/site/Cxx/Utilities/SaveSceneToFile/
2.将vtkCamera的相关参数保存到vkDataSet中
https://lorensen.github.io/VTKExamples/site/Cxx/Utilities/SaveSceneToFieldData/
3.监听vtkCamera改变事件
https://lorensen.github.io/VTKExamples/site/Cxx/Utilities/CameraModifiedEvent/