Mercurial > hg > orthanc-stone
diff Framework/Toolbox/DicomStructureSet.cpp @ 110:53025eecbc95 wasm
renamed SliceGeometry as CoordinateSystem3D
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Jun 2017 15:50:38 +0200 |
parents | 28956ed68280 |
children | 2eca030792aa |
line wrap: on
line diff
--- a/Framework/Toolbox/DicomStructureSet.cpp Wed Jun 14 15:34:08 2017 +0200 +++ b/Framework/Toolbox/DicomStructureSet.cpp Wed Jun 14 15:50:38 2017 +0200 @@ -61,7 +61,7 @@ } - SliceGeometry DicomStructureSet::ExtractSliceGeometry(double& sliceThickness, + CoordinateSystem3D DicomStructureSet::ExtractSliceGeometry(double& sliceThickness, OrthancPlugins::IOrthancConnection& orthanc, const OrthancPlugins::IDicomDataset& tags, size_t contourIndex, @@ -122,7 +122,7 @@ } FullOrthancDataset parentTags(orthanc, "/instances/" + parentLookup[0]["ID"].asString() + "/tags"); - SliceGeometry slice(parentTags); + CoordinateSystem3D slice(parentTags); Vector v; if (GeometryToolbox::ParseVector(v, parentTags, DICOM_TAG_SLICE_THICKNESS) && @@ -161,7 +161,7 @@ bool DicomStructureSet::IsPolygonOnSlice(const Polygon& polygon, - const SliceGeometry& geometry) const + const CoordinateSystem3D& geometry) const { double d = boost::numeric::ublas::inner_prod(geometry.GetOrigin(), normal_); @@ -267,7 +267,7 @@ } Polygon polygon; - SliceGeometry geometry = ExtractSliceGeometry(polygon.sliceThickness_, orthanc, tags, i, j); + CoordinateSystem3D geometry = ExtractSliceGeometry(polygon.sliceThickness_, orthanc, tags, i, j); polygon.projectionAlongNormal_ = geometry.ProjectAlongNormal(geometry.GetOrigin()); for (size_t k = 0; k < countPoints; k++) @@ -351,7 +351,7 @@ void DicomStructureSet::Render(CairoContext& context, - const SliceGeometry& slice) const + const CoordinateSystem3D& slice) const { cairo_t* cr = context.GetObject();