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

viewport_options.h

00001 //  Copyright (c) 1996-2001 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 VIEWPORT_OPTIONS_HEADER
00019 #define VIEWPORT_OPTIONS_HEADER
00020 
00021 #include "whiptk/units.h"
00022 #include "whiptk/opcode.h"
00023 
00025 class WHIPTK_API WT_Viewport_Optioncode : public WT_Optioncode
00026 {
00027 public:
00029     enum
00030     {   Viewport_Unknown_Option,
00031         Viewport_Units_Option
00032     };
00033 
00035     int option_id_from_optioncode();
00036 };
00037 
00039 class WHIPTK_API WT_Viewport_Option_Viewport_Units : public WT_Option, public WT_Units
00040 {
00041 public:
00042 
00044     WT_Viewport_Option_Viewport_Units()
00045     {}
00046 
00048     WT_ID          object_id() const;
00049     WT_Result      serialize  (WT_Object const & parent, WT_File & file) const;
00050     WT_Result      materialize(WT_Object       & parent, WT_Optioncode const & optioncode, WT_File & file);
00052 
00054     WT_Boolean     operator==(WT_Viewport_Option_Viewport_Units const &) const;
00056     WT_Boolean     operator!=(WT_Viewport_Option_Viewport_Units const &) const;
00057 
00058 };
00059 
00060 #endif // VIEWPORT_OPTIONS_HEADER

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