]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
no message
authorabd <abd@opencascade.com>
Thu, 17 Nov 2005 08:08:30 +0000 (08:08 +0000)
committerabd <abd@opencascade.com>
Thu, 17 Nov 2005 08:08:30 +0000 (08:08 +0000)
src/GLViewer/GLViewer_Geom.h

index ccd3bab19a8c63a6d12877b76bd0faeb1ad28d64..759daef1a570b47a85a951575f24560f1c5987ec 100644 (file)
@@ -110,7 +110,15 @@ public:
   bool        contains( GLViewer_Pnt pnt ) { return ( pnt.x() > left() &&
                                                       pnt.x() < right() &&
                                                       pnt.y() > bottom() &&
-                                                      pnt.y() < top() ); } 
+                                                      pnt.y() < top() ); }
+  
+  void        move( const float x, const float y )
+                  {
+                    myLeft   += x;
+                    myRight  += x;
+                    myTop    += y;
+                    myBottom += y;
+                  }
 
 protected:
   float       myLeft;