Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographySceneWriter.cpp @ 620:fd9b9d993fc7 am-dev
added flip to RadiographyLayer
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 07 May 2019 11:15:57 +0200 |
parents | aede9b042cb7 |
children | 8d66efecd91c |
comparison
equal
deleted
inserted
replaced
601:8432926e9db9 | 620:fd9b9d993fc7 |
---|---|
130 pan["x"] = geometry.GetPixelSpacingX(); | 130 pan["x"] = geometry.GetPixelSpacingX(); |
131 pan["y"] = geometry.GetPixelSpacingY(); | 131 pan["y"] = geometry.GetPixelSpacingY(); |
132 output["pixelSpacing"] = pan; | 132 output["pixelSpacing"] = pan; |
133 } | 133 } |
134 | 134 |
135 output["verticalFlip"] = geometry.GetVerticalFlip(); | |
136 output["horizontalFlip"] = geometry.GetHorizontalFlip(); | |
137 | |
135 if (dynamic_cast<const RadiographyTextLayer*>(&layer) != NULL) | 138 if (dynamic_cast<const RadiographyTextLayer*>(&layer) != NULL) |
136 { | 139 { |
137 WriteLayer(output, dynamic_cast<const RadiographyTextLayer&>(layer)); | 140 WriteLayer(output, dynamic_cast<const RadiographyTextLayer&>(layer)); |
138 } | 141 } |
139 else if (dynamic_cast<const RadiographyDicomLayer*>(&layer) != NULL) | 142 else if (dynamic_cast<const RadiographyDicomLayer*>(&layer) != NULL) |