12 #ifndef CXSLICECOMPUTER_H_
13 #define CXSLICECOMPUTER_H_
15 #include "cxResourceExport.h"
59 void setOrientationType(ORIENTATION_TYPE val);
60 void setPlaneType(PLANE_TYPE val);
61 void setFixedCenter(
const Vector3D& center);
62 void setFollowType(FOLLOW_TYPE val);
63 void setGravity(
bool use,
const Vector3D& dir);
64 void setToolOffset(
double val);
65 void setToolViewOffset(
bool use,
double viewportHeight,
double viewOffset);
66 void setToolViewportHeight(
double viewportHeight);
67 void setClinicalApplication(CLINICAL_VIEW application);
70 void initializeFromPlane(PLANE_TYPE plane,
bool useGravity,
const Vector3D& gravityDir,
bool useViewOffset,
double viewportHeight,
double toolViewOffset, CLINICAL_VIEW application);
71 ORIENTATION_TYPE getOrientationType()
const;
72 PLANE_TYPE getPlaneType()
const;
73 FOLLOW_TYPE getFollowType()
const;
77 std::pair<Vector3D,Vector3D> generateBasisVectors()
const;
80 SlicePlane orientToGravityAroundToolZAxisAndAlongTheOperatingTable(
const SlicePlane& base)
const;
82 double getViewOffsetAbsoluteFromCenter()
const;
84 std::pair<Vector3D,Vector3D> generateBasisVectorsNeurology()
const;
85 std::pair<Vector3D,Vector3D> generateBasisVectorsRadiology()
const;
88 CLINICAL_VIEW mClinicalApplication;
89 ORIENTATION_TYPE mOrientType;
90 PLANE_TYPE mPlaneType;
91 FOLLOW_TYPE mFollowType;
101 double mViewportHeight;