# HG changeset patch # User Benjamin Golinvaux # Date 1552377075 -3600 # Node ID 11fa6f00e33c07d212b318390c8a28e5b6bc0334 # Parent 1dbf2d9ed1e4b649f1acaf2b73bb72ad14ab8aeb Dummy changes (warnings, dummy dtor to check proper deletion, line wrapping) + fixes for AM changes (Corner renamed to ControlPoint...) diff -r 1dbf2d9ed1e4 -r 11fa6f00e33c Applications/Generic/NativeStoneApplicationContext.cpp --- a/Applications/Generic/NativeStoneApplicationContext.cpp Mon Mar 11 14:39:31 2019 +0100 +++ b/Applications/Generic/NativeStoneApplicationContext.cpp Tue Mar 12 08:51:15 2019 +0100 @@ -51,7 +51,7 @@ stopped_(true), updateDelayInMs_(100) // By default, 100ms between each refresh of the content { - srand(time(NULL)); + srand(static_cast(time(NULL))); } diff -r 1dbf2d9ed1e4 -r 11fa6f00e33c Applications/Samples/SingleFrameEditorApplication.h --- a/Applications/Samples/SingleFrameEditorApplication.h Mon Mar 11 14:39:31 2019 +0100 +++ b/Applications/Samples/SingleFrameEditorApplication.h Tue Mar 12 08:51:15 2019 +0100 @@ -130,8 +130,8 @@ { RadiographyScene::LayerAccessor accessor(widget.GetScene(), selected); - Corner corner; - if (accessor.GetLayer().LookupCorner(corner, x, y, view.GetZoom(), GetHandleSize())) + ControlPoint corner; + if (accessor.GetLayer().LookupControlPoint(corner, x, y, view.GetZoom(), GetHandleSize())) { switch (tool_) { diff -r 1dbf2d9ed1e4 -r 11fa6f00e33c Framework/Layers/GrayscaleFrameRenderer.cpp --- a/Framework/Layers/GrayscaleFrameRenderer.cpp Mon Mar 11 14:39:31 2019 +0100 +++ b/Framework/Layers/GrayscaleFrameRenderer.cpp Tue Mar 12 08:51:15 2019 +0100 @@ -121,8 +121,8 @@ bool isFullQuality) : FrameRenderer(framePlane, pixelSpacingX, pixelSpacingY, isFullQuality), frame_(Orthanc::Image::Clone(frame)), - defaultWindowCenter_(converter.GetDefaultWindowCenter()), - defaultWindowWidth_(converter.GetDefaultWindowWidth()), + defaultWindowCenter_(static_cast(converter.GetDefaultWindowCenter())), + defaultWindowWidth_(static_cast(converter.GetDefaultWindowWidth())), photometric_(converter.GetPhotometricInterpretation()) { if (frame_.get() == NULL) diff -r 1dbf2d9ed1e4 -r 11fa6f00e33c Framework/Radiography/RadiographyWidget.cpp --- a/Framework/Radiography/RadiographyWidget.cpp Mon Mar 11 14:39:31 2019 +0100 +++ b/Framework/Radiography/RadiographyWidget.cpp Tue Mar 12 08:51:15 2019 +0100 @@ -32,10 +32,14 @@ bool RadiographyWidget::IsInvertedInternal() const { - return (scene_->GetPreferredPhotomotricDisplayMode() == PhotometricDisplayMode_Monochrome1) ^ invert_; // MONOCHROME1 images must be inverted and the user can invert the image too -> XOR the two + // MONOCHROME1 images must be inverted and the user can invert the + // image, too -> XOR the two + return (scene_->GetPreferredPhotomotricDisplayMode() == + PhotometricDisplayMode_Monochrome1) ^ invert_; } - void RadiographyWidget::RenderBackground(Orthanc::ImageAccessor& image, float minValue, float maxValue) + void RadiographyWidget::RenderBackground( + Orthanc::ImageAccessor& image, float minValue, float maxValue) { // wipe background before rendering float backgroundValue = minValue; @@ -59,7 +63,7 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); } - Orthanc::ImageProcessing::Set(image, backgroundValue); + Orthanc::ImageProcessing::Set(image, static_cast(backgroundValue)); } bool RadiographyWidget::RenderInternal(unsigned int width, @@ -82,7 +86,8 @@ floatBuffer_->GetWidth() != width || floatBuffer_->GetHeight() != height) { - floatBuffer_.reset(new Orthanc::Image(Orthanc::PixelFormat_Float32, width, height, false)); + floatBuffer_.reset(new Orthanc::Image( + Orthanc::PixelFormat_Float32, width, height, false)); } if (cairoBuffer_.get() == NULL || @@ -168,7 +173,8 @@ if (hasSelection_) { - scene_->DrawBorder(context, selectedLayer_, view.GetZoom()); + scene_->DrawBorder( + context, static_cast(selectedLayer_), view.GetZoom()); } return true; diff -r 1dbf2d9ed1e4 -r 11fa6f00e33c Framework/Toolbox/DicomStructureSet.cpp --- a/Framework/Toolbox/DicomStructureSet.cpp Mon Mar 11 14:39:31 2019 +0100 +++ b/Framework/Toolbox/DicomStructureSet.cpp Tue Mar 12 08:51:15 2019 +0100 @@ -754,7 +754,11 @@ double x1, y1, x2, y2; if (polygon->Project(x1, y1, x2, y2, slice)) { - projected.push_back(CreateRectangle(x1, y1, x2, y2)); + projected.push_back(CreateRectangle( + static_cast(x1), + static_cast(y1), + static_cast(x2), + static_cast(y2))); } } diff -r 1dbf2d9ed1e4 -r 11fa6f00e33c Framework/Toolbox/FiniteProjectiveCamera.cpp --- a/Framework/Toolbox/FiniteProjectiveCamera.cpp Mon Mar 11 14:39:31 2019 +0100 +++ b/Framework/Toolbox/FiniteProjectiveCamera.cpp Tue Mar 12 08:51:15 2019 +0100 @@ -332,7 +332,7 @@ LOG(INFO) << "Applying raytracer on slice: " << z << "/" << slices->GetSliceCount(); const OrthancStone::CoordinateSystem3D& slice = slices->GetSlice(z); - OrthancStone::ImageBuffer3D::SliceReader sliceReader(source, projection, z); + OrthancStone::ImageBuffer3D::SliceReader sliceReader(source, projection, static_cast(z)); SourceReader pixelReader(sliceReader.GetAccessor());