+ //======================================================================
+ /// Clears the status and begins a new selection process
+ void GimmickView::ClearStatus()
+ {
+ row="";
+ col="";
+ plane="";
+ selectionSize=0;
+ valid=true;
+ }
+
+
+ class ImageExtent
+ {
+ public:
+ ImageExtent(const std::string& x, const std::string& y, const std::string& z, const std::string& t);
+
+ void Clear() { mExtent[0] = mExtent[1] = mExtent[2] = mExtent[3] = 1; }
+
+ bool IsCompatible( const ImageExtent& );
+
+ void Add ( const ImageExtent& );
+
+ int Get(int i) { return mExtent[i]; }
+
+ int GetDimension() { return mDim; }
+
+ private:
+ int mExtent[4];
+ int mDim;
+ };
+
+