|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
12 #ifndef CXVBCAMERAPATH_H
13 #define CXVBCAMERAPATH_H
16 #include <QElapsedTimer>
21 #include "org_custusx_virtualbronchoscopy_Export.h"
50 int mNumberOfInputPoints;
51 int mNumberOfControlPoints;
55 double mLastCameraViewAngle;
56 double mLastCameraRotAngle;
57 double mPositionPercentage;
58 bool mAutomaticRotation;
59 bool mWritePositionsToFile;
60 QString mPositionsFilePath;
61 QElapsedTimer mTimeSinceStartRecording;
63 std::vector< Eigen::Vector3d > mRoutePositions;
64 std::vector< double > mCameraRotations;
65 std::vector< double > mCameraRotationsSmoothed;
66 std::vector< int > mBranchingIndex;
68 void updateManualToolPosition();
69 void generateSplineCurve(
MeshPtr mesh);
70 void generateSplineCurve(std::vector< Eigen::Vector3d > routePositions);
71 std::vector< double > smoothCameraRotations(std::vector< double > cameraRotations);
99 #endif // CXVBCAMERAPATH_H
void cameraRotateAngleSlot(int angle)
void rotationChanged(int value)
Namespace for all CustusX production code.
CXVBcameraPath(TrackingServicePtr tracker, PatientModelServicePtr patientModel, ViewServicePtr visualization)
void setWritePositionsToFile(bool write)
void setRoutePositions(std::vector< Eigen::Vector3d > routePositions)
vtkSmartPointer< class vtkCardinalSpline > vtkCardinalSplinePtr
vtkSmartPointer< class vtkParametricSpline > vtkParametricSplinePtr
double positionPercentageAdjusted(double positionPercentage)
boost::shared_ptr< class Mesh > MeshPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class TrackingService > TrackingServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
void setCameraRotations(std::vector< double > cameraRotations)
void setAutomaticRotation(bool automaticRotation)
void setBranchingIndexAlongRoute(std::vector< int > branchingIndex)
boost::shared_ptr< class Tool > ToolPtr
void cameraRawPointsSlot(MeshPtr mesh)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
void setWritePositionsFilePath(QString path)
void cameraPathPositionSlot(int positionPermillage)
void cameraViewAngleSlot(int angle)