diff Framework/ImagedVolumeParameters.h @ 280:34b507959e32 iiif

integration mainline->iiif
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jul 2023 18:08:27 +0200
parents 77afef2cf64b
children 7020852a8fa9
line wrap: on
line diff
--- a/Framework/ImagedVolumeParameters.h	Wed Jul 12 16:14:19 2023 +0200
+++ b/Framework/ImagedVolumeParameters.h	Wed Jul 12 18:08:27 2023 +0200
@@ -27,6 +27,8 @@
   class ImagedVolumeParameters
   {
   private:
+    bool   hasWidth_;
+    bool   hasHeight_;
     float  width_;
     float  height_;
     float  depth_;
@@ -36,15 +38,19 @@
   public:
     ImagedVolumeParameters();
 
-    float GetWidth() const
+    bool HasWidth() const
     {
-      return width_;
+      return hasWidth_;
+    }
+
+    bool HasHeight() const
+    {
+      return hasHeight_;
     }
     
-    float GetHeight() const
-    {
-      return height_;
-    }
+    float GetWidth() const;
+
+    float GetHeight() const;
     
     float GetDepth() const
     {