Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/CoordinateSystem3D.h @ 157:2309e8d86efe wasm
IntersectPlaneAndLine
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Feb 2018 16:00:29 +0100 |
parents | 2e023be0563c |
children | 0a73d76333db |
comparison
equal
deleted
inserted
replaced
156:441cfe8e7440 | 157:2309e8d86efe |
---|---|
33 private: | 33 private: |
34 Vector origin_; | 34 Vector origin_; |
35 Vector normal_; | 35 Vector normal_; |
36 Vector axisX_; | 36 Vector axisX_; |
37 Vector axisY_; | 37 Vector axisY_; |
38 double d_; | |
38 | 39 |
39 void CheckAndComputeNormal(); | 40 void CheckAndComputeNormal(); |
40 | 41 |
41 void Setup(const std::string& imagePositionPatient, | 42 void Setup(const std::string& imagePositionPatient, |
42 const std::string& imageOrientationPatient); | 43 const std::string& imageOrientationPatient); |
43 | 44 |
44 void SetupCanonical(); | 45 void SetupCanonical(); |
46 | |
47 double GetOffset() const; | |
45 | 48 |
46 public: | 49 public: |
47 CoordinateSystem3D() | 50 CoordinateSystem3D() |
48 { | 51 { |
49 SetupCanonical(); | 52 SetupCanonical(); |
93 const Vector& point) const; | 96 const Vector& point) const; |
94 | 97 |
95 bool IntersectSegment(Vector& p, | 98 bool IntersectSegment(Vector& p, |
96 const Vector& edgeFrom, | 99 const Vector& edgeFrom, |
97 const Vector& edgeTo) const; | 100 const Vector& edgeTo) const; |
101 | |
102 bool IntersectLine(Vector& p, | |
103 const Vector& origin, | |
104 const Vector& direction) const; | |
98 }; | 105 }; |
99 } | 106 } |