Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/DicomStructureSet.h @ 1904:738814c24574
speed up rendering of axial slices of RT-STRUCT
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 31 Jan 2022 18:22:57 +0100 |
parents | a5e54bd87b25 |
children | 782ba9eb6f22 |
comparison
equal
deleted
inserted
replaced
1903:c7bc9e1776a6 | 1904:738814c24574 |
---|---|
101 | 101 |
102 void AddPoint(const Vector& v); | 102 void AddPoint(const Vector& v); |
103 | 103 |
104 bool UpdateReferencedSlice(const ReferencedSlices& slices); | 104 bool UpdateReferencedSlice(const ReferencedSlices& slices); |
105 | 105 |
106 bool IsOnSlice(const CoordinateSystem3D& geometry) const; | 106 bool IsOnSlice(const CoordinateSystem3D& geometry, |
107 const Vector& estimatedNormal, | |
108 double estimatedSliceThickness) const; | |
107 | 109 |
108 const Vector& GetGeometryOrigin() const | 110 const Vector& GetGeometryOrigin() const |
109 { | 111 { |
110 return geometry_.GetOrigin(); | 112 return geometry_.GetOrigin(); |
111 } | 113 } |
127 | 129 |
128 bool Project(double& x1, | 130 bool Project(double& x1, |
129 double& y1, | 131 double& y1, |
130 double& x2, | 132 double& x2, |
131 double& y2, | 133 double& y2, |
132 const CoordinateSystem3D& slice) const; | 134 const CoordinateSystem3D& slice, |
135 const Vector& estimatedNormal, | |
136 double estimatedSliceThickness) const; | |
133 }; | 137 }; |
134 | 138 |
135 typedef std::list<Polygon> Polygons; | 139 typedef std::list<Polygon> Polygons; |
136 | 140 |
137 struct Structure | 141 struct Structure |