Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Volumes/VolumeImageGeometry.h @ 1766:ae18b5cfbd3e
VolumeImageGeometry::DetectProjection() reports if normal is opposite
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 May 2021 11:31:34 +0200 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1765:177f93c8371c | 1766:ae18b5cfbd3e |
---|---|
90 { | 90 { |
91 return transformInverse_; | 91 return transformInverse_; |
92 } | 92 } |
93 | 93 |
94 void SetSizeInVoxels(unsigned int width, | 94 void SetSizeInVoxels(unsigned int width, |
95 unsigned int height, | 95 unsigned int height, |
96 unsigned int depth); | 96 unsigned int depth); |
97 | 97 |
98 // Set the geometry of the first axial slice (i.e. the one whose | 98 // Set the geometry of the first axial slice (i.e. the one whose |
99 // depth == 0) | 99 // depth == 0) |
100 void SetAxialGeometry(const CoordinateSystem3D& geometry); | 100 void SetAxialGeometry(const CoordinateSystem3D& geometry); |
101 | 101 |
116 Vector GetCoordinates(float x, | 116 Vector GetCoordinates(float x, |
117 float y, | 117 float y, |
118 float z) const; | 118 float z) const; |
119 | 119 |
120 bool DetectProjection(VolumeProjection& projection, | 120 bool DetectProjection(VolumeProjection& projection, |
121 bool& isOpposite, | |
121 const Vector& planeNormal) const; | 122 const Vector& planeNormal) const; |
122 | 123 |
123 /** | 124 /** |
124 Being given a cutting plane, this method will determine if it is an | 125 Being given a cutting plane, this method will determine if it is an |
125 axial, sagittal or coronal cut and returns | 126 axial, sagittal or coronal cut and returns |