Mercurial > hg > orthanc-stone
diff Framework/Toolbox/ViewportGeometry.h @ 111:7665ccbf33db wasm
rename Extent as Extent2D
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Jun 2017 15:54:06 +0200 |
parents | 53bd9277b025 |
children | e2fe9352f240 |
line wrap: on
line diff
--- a/Framework/Toolbox/ViewportGeometry.h Wed Jun 14 15:50:38 2017 +0200 +++ b/Framework/Toolbox/ViewportGeometry.h Wed Jun 14 15:54:06 2017 +0200 @@ -22,7 +22,7 @@ #pragma once #include "../Viewport/CairoContext.h" -#include "../Toolbox/Extent.h" +#include "../Toolbox/Extent2D.h" namespace OrthancStone { @@ -30,7 +30,7 @@ { private: // Extent of the scene (in world units) - Extent sceneExtent_; + Extent2D sceneExtent_; // Size of the display (in pixels) unsigned int width_; @@ -51,9 +51,9 @@ void SetDisplaySize(unsigned int width, unsigned int height); - void SetSceneExtent(const Extent& extent); + void SetSceneExtent(const Extent2D& extent); - const Extent& GetSceneExtent() const + const Extent2D& GetSceneExtent() const { return sceneExtent_; }