comparison OrthancStone/Sources/Toolbox/DicomStructureSet.h @ 1909:782ba9eb6f22

improved variable names
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Feb 2022 08:56:36 +0100
parents 738814c24574
children 98952be6fb97
comparison
equal deleted inserted replaced
1908:affde38b84de 1909:782ba9eb6f22
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, 106 bool IsOnSlice(const CoordinateSystem3D& cuttingPlane,
107 const Vector& estimatedNormal, 107 const Vector& estimatedNormal,
108 double estimatedSliceThickness) const; 108 double estimatedSliceThickness) const;
109 109
110 const Vector& GetGeometryOrigin() const 110 const Vector& GetGeometryOrigin() const
111 { 111 {
129 129
130 bool Project(double& x1, 130 bool Project(double& x1,
131 double& y1, 131 double& y1,
132 double& x2, 132 double& x2,
133 double& y2, 133 double& y2,
134 const CoordinateSystem3D& slice, 134 const CoordinateSystem3D& cuttingPlane,
135 const Vector& estimatedNormal, 135 const Vector& estimatedNormal,
136 double estimatedSliceThickness) const; 136 double estimatedSliceThickness) const;
137 }; 137 };
138 138
139 typedef std::list<Polygon> Polygons; 139 typedef std::list<Polygon> Polygons;
161 161
162 Structure& GetStructure(size_t index); 162 Structure& GetStructure(size_t index);
163 163
164 bool ProjectStructure(std::vector< std::vector<ScenePoint2D> >& chains, 164 bool ProjectStructure(std::vector< std::vector<ScenePoint2D> >& chains,
165 const Structure& structure, 165 const Structure& structure,
166 const CoordinateSystem3D& slice) const; 166 const CoordinateSystem3D& cuttingPlane) const;
167 167
168 void EstimateGeometry(); 168 void EstimateGeometry();
169 169
170 public: 170 public:
171 explicit DicomStructureSet(const FullOrthancDataset& instance) 171 explicit DicomStructureSet(const FullOrthancDataset& instance)
203 203
204 Vector GetNormal() const; 204 Vector GetNormal() const;
205 205
206 bool ProjectStructure(std::vector< std::vector<ScenePoint2D> >& chains, 206 bool ProjectStructure(std::vector< std::vector<ScenePoint2D> >& chains,
207 size_t index, 207 size_t index,
208 const CoordinateSystem3D& slice) const 208 const CoordinateSystem3D& cuttingPlane) const
209 { 209 {
210 return ProjectStructure(chains, GetStructure(index), slice); 210 return ProjectStructure(chains, GetStructure(index), cuttingPlane);
211 } 211 }
212 212
213 void ProjectOntoLayer(PolylineSceneLayer& layer, 213 void ProjectOntoLayer(PolylineSceneLayer& layer,
214 const CoordinateSystem3D& plane, 214 const CoordinateSystem3D& cuttingPlane,
215 size_t structureIndex, 215 size_t structureIndex,
216 const Color& color) const; 216 const Color& color) const;
217 217
218 void ProjectOntoLayer(PolylineSceneLayer& layer, 218 void ProjectOntoLayer(PolylineSceneLayer& layer,
219 const CoordinateSystem3D& plane, 219 const CoordinateSystem3D& cuttingPlane,
220 size_t structureIndex) const 220 size_t structureIndex) const
221 { 221 {
222 ProjectOntoLayer(layer, plane, structureIndex, GetStructureColor(structureIndex)); 222 ProjectOntoLayer(layer, cuttingPlane, structureIndex, GetStructureColor(structureIndex));
223 } 223 }
224 224
225 void GetStructurePoints(std::list< std::vector<Vector> >& target, 225 void GetStructurePoints(std::list< std::vector<Vector> >& target,
226 size_t structureIndex, 226 size_t structureIndex,
227 const std::string& sopInstanceUid) const; 227 const std::string& sopInstanceUid) const;