viewport_options.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00008 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00009 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00010 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00011 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00012 //
00013 //  Use, duplication, or disclosure by the U.S. Government is subject to
00014 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00015 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00016 //  Data and Computer Software), as applicable.
00017 //
00018 
00019 #if !defined VIEWPORT_OPTIONS_HEADER
00020 #define VIEWPORT_OPTIONS_HEADER
00021 
00025 
00026 #include "whiptk/units.h"
00027 #include "whiptk/opcode.h"
00028 
00030 class WHIPTK_API WT_Viewport_Optioncode : public WT_Optioncode
00031 {
00032     friend class WT_Viewport;
00033     
00034 protected:
00035     WT_Viewport_Optioncode() 
00036     {}
00037 
00038 public:
00040     enum
00041     {   Viewport_Unknown_Option,
00042         Viewport_Units_Option
00043     };
00044 
00046     int option_id_from_optioncode();
00047 };
00048 
00050 class WHIPTK_API WT_Viewport_Option_Viewport_Units : public WT_Option, public WT_Units
00051 {
00052         friend class WT_Viewport;
00053         friend class WT_W2D_Class_Factory;
00054         friend class WT_Class_Factory;
00055 
00056 protected:
00057 
00059     WT_Viewport_Option_Viewport_Units() 
00060     {}
00061         virtual ~WT_Viewport_Option_Viewport_Units()
00062         {}
00063 public:
00065     WT_ID          object_id() const;
00066     WT_Result      serialize  (WT_Object const & parent, WT_File & file) const;
00067     WT_Result      materialize(WT_Object       & parent, WT_Optioncode const & optioncode, WT_File & file);
00069 
00071     WT_Boolean     operator==(WT_Viewport_Option_Viewport_Units const &) const;
00073     WT_Boolean     operator!=(WT_Viewport_Option_Viewport_Units const &) const;
00074 
00075 };
00076 
00077 #endif // VIEWPORT_OPTIONS_HEADER

Generated on Tue Jan 6 22:41:13 2009 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.5