1 #ifndef _Select3D_Box2d_HeaderFile
2 #define _Select3D_Box2d_HeaderFile
4 #include<Bnd_Box2d.hxx>
5 #include<Standard_ShortReal.hxx>
6 #include<Select3D_Macro.hxx>
10 Standard_ShortReal xmin, ymin, xmax, ymax;
17 Select3D_Box2d(const Bnd_Box2d& theBox)
22 inline operator Bnd_Box2d() const
27 aBox.Update(xmin, ymin, xmax, ymax);
31 inline Select3D_Box2d operator = ( const Bnd_Box2d& theBox)
37 inline void Update(const gp_Pnt2d& thePnt)
42 aBox.Update(xmin, ymin, xmax, ymax);
48 xmin = ymin = ShortRealLast();
49 xmax = ymax = ShortRealFirst();
52 inline Standard_Boolean IsVoid() const
54 return ( xmin == ShortRealLast() && ymin == ShortRealLast() && xmax == ShortRealFirst() && ymax == ShortRealFirst() );
58 inline void SetField(const Bnd_Box2d& theBox)
63 Standard_Real x, y, x1, y1;
64 theBox.Get(x, y, x1, y1);