Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

logical_box.h

00001 //  Copyright (c) 1996-2002 by Autodesk, Inc.
00002 //
00003 //  By using this code, you are agreeing to the terms and conditions of
00004 //  the License Agreement included in the documentation for this code.
00005 //
00006 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00007 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00008 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00009 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00010 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00011 //
00012 //  Use, duplication, or disclosure by the U.S. Government is subject to
00013 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00014 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00015 //  Data and Computer Software), as applicable.
00016 //
00017 
00018 #if !defined LOGICAL_BOX_HEADER
00019 #define LOGICAL_BOX_HEADER
00020 
00022 class WHIPTK_API WT_Logical_Box
00023 {
00024 public:
00025     WT_Logical_Point    m_min; 
00026     WT_Logical_Point    m_max; 
00028 
00029     WT_Logical_Box()
00030     { }
00031 
00033     WT_Logical_Box(WT_Logical_Point min, WT_Logical_Point max)
00034         : m_min (min)
00035         , m_max (max)
00036     { }
00037 
00039     WT_Logical_Box(WT_Integer32 minx, WT_Integer32 miny, WT_Integer32 maxx, WT_Integer32 maxy)
00040     {
00041         m_min.m_x = minx;
00042         m_min.m_y = miny;
00043         m_max.m_x = maxx;
00044         m_max.m_y = maxy;
00045     }
00046 
00048     ~WT_Logical_Box()
00049     { }
00050 
00052     WT_Logical_Point & maxpt()
00053     {   return m_max;   }
00054 
00056     WT_Logical_Point & minpt()
00057     {   return m_min;   }
00058 
00060     WT_Boolean    operator== (WT_Logical_Box const & lb) const
00061     {
00062     if (m_min == lb.m_min && m_max == lb.m_max)
00063         return WD_True;
00064     else
00065         return WD_False;
00066     }
00067 };
00068 
00069 #endif // LOGICAL_BOX_HEADER

Generated on Tue May 17 12:07:44 2005 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.1