Mercurial > hg > orthanc-stone
comparison Framework/Viewport/ViewportBase.h @ 1083:f72d1ab42932 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Oct 2019 13:14:05 +0200 |
parents | 6dd90b8d1589 |
children | 5e164c629923 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
1079:e6d2ff8f1ab4 | 1083:f72d1ab42932 |
---|---|
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 } |