comparison Framework/Viewport/ViewportBase.h @ 1071:6dd90b8d1589

Fixes related to refactorings in viewports.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 15 Oct 2019 14:30:19 +0200
parents af456106576c
children 5e164c629923 2d8ab34c8c91
comparison
equal deleted inserted replaced
1062:2d6237221ff1 1071:6dd90b8d1589
39 virtual Scene2D& GetScene() ORTHANC_OVERRIDE 39 virtual Scene2D& GetScene() ORTHANC_OVERRIDE
40 { 40 {
41 return *scene_; 41 return *scene_;
42 } 42 }
43 43
44 virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) ORTHANC_OVERRIDE; 44 virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) const ORTHANC_OVERRIDE;
45
46 virtual const ICompositor& GetCompositor() const ORTHANC_OVERRIDE
47 {
48 IViewport* mutableThis =
49 const_cast<IViewport*>(static_cast<const IViewport*>(this));
50 return mutableThis->GetCompositor();
51 }
52
45 }; 53 };
46 } 54 }