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;
Vector3D j
defines the second axis of the plane. unit vector
A 2D slice plane in 3D. i,j are perpendicular unit vectors.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Vector3D c
defines the center of the plane
std::ostream & operator<<(std::ostream &s, const IntBoundingBox3D &data)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Vector3D i
defines the first axis of the plane. unit vector
Calculates a slice plane given a definition.
bool similar(const CameraInfo &lhs, const CameraInfo &rhs, double tol)
Namespace for all CustusX production code.