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

heuristics.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 HEURISTICS_HEADER
00019 #define HEURISTICS_HEADER
00020 
00021 #include "whiptk/whipcore.h"
00022 
00027 
00028 
00029 class WHIPTK_API   WT_File_Heuristics
00030 {
00031     friend class WT_Plot_Info;
00032     friend class WT_Informational;
00033     friend class WT_Opcode;
00034     friend class WT_DWF_Header;
00035 
00036 public:
00038     WT_File_Heuristics();
00040     ~WT_File_Heuristics();
00041 
00043 
00044 
00047     void                 set_allow_binary_data (WT_Boolean binary) {   m_allow_binary_data = binary;    }
00049 
00052     void                 set_allow_data_compression(WT_Boolean allowed) {   m_allow_data_compression = allowed;    }
00054 
00055     void                 set_allow_drawable_merging (WT_Boolean merging) {   m_allow_drawable_merging = merging;    }
00057 
00058     void                 set_allow_indexed_colors(WT_Boolean indexed) {   m_allow_indexed_colors = indexed; }
00060 
00061     void                 set_apply_transform(WT_Boolean apply)  {    m_apply_transform = apply;    }
00063 
00064     void                 set_apply_transform_to_units_matrix(WT_Boolean apply) {    m_apply_transform_to_units_matrix = apply;    }
00065 
00067 
00088     void                 set_deferred_delete(WT_Boolean state)  { m_deferred_delete = state;    }
00090 
00098     void                 set_target_version(int target, WT_File * file = WD_Null);
00100 
00104     void                 set_transform(WT_Transform const & transform) {    m_transform = transform;    }
00106     void                 set_user_data(void * user_data) {    m_user_data = user_data;}
00108 
00110 
00111     WT_Boolean           allow_binary_data () const {   return m_allow_binary_data;      }
00113     WT_Boolean           allow_data_compression() const {   return m_allow_data_compression;   }
00115     WT_Boolean           allow_drawable_merging () const {   return m_allow_drawable_merging;      }
00117     WT_Boolean           allow_indexed_colors() const {   return m_allow_indexed_colors;  }
00119 
00120     WT_Boolean           apply_transform() const {    return m_apply_transform;    }
00122 
00125     WT_Boolean           apply_transform_to_units_matrix() const {    return m_apply_transform_to_units_matrix;    }
00126 
00128 
00129     WT_Boolean           deferred_delete() const   { return m_deferred_delete;    }
00131 
00136     int                  target_version() const {   return m_target_version;    }
00138 
00139     WT_Transform const & transform() const {    return m_transform;    }
00141     void *               user_data() {    return m_user_data;        }
00143 
00144 private:
00145     void                 set_broken_plotinfo(WT_Boolean state) { m_broken_plotinfo = state;    }
00146     WT_Boolean           broken_plotinfo() const               { return m_broken_plotinfo;    }
00147 
00148     WT_Boolean        m_allow_data_compression;
00149     WT_Boolean        m_allow_indexed_colors;
00150     WT_Boolean        m_allow_binary_data;
00151     WT_Boolean        m_allow_drawable_merging;
00152     WT_Boolean        m_apply_transform;
00153     WT_Boolean        m_apply_transform_to_units_matrix;
00154     WT_Transform      m_transform;
00155     int               m_target_version;
00156     void *            m_user_data;
00157     WT_Boolean        m_deferred_delete;
00158     WT_Boolean        m_broken_plotinfo;
00159     WT_Boolean        m_w2d_channel;
00160 
00161     WT_File_Heuristics (WT_File_Heuristics const &)
00162       : m_allow_data_compression()
00163       , m_allow_indexed_colors()
00164       , m_allow_binary_data()
00165       , m_allow_drawable_merging()
00166       , m_apply_transform()
00167       , m_apply_transform_to_units_matrix()
00168       , m_transform()
00169       , m_target_version()
00170       , m_user_data()
00171       , m_deferred_delete()
00172       , m_broken_plotinfo()
00173       , m_w2d_channel()
00174     {
00175         WD_Complain ("cannot copy WT_File_Heuristics");
00176     } // prohibited
00177 
00178     WT_File_Heuristics & operator= (WT_File_Heuristics const &)
00179     {
00180         WD_Complain ("cannot assign WT_File_Heuristics");
00181         return *this;
00182     } // prohibited
00183 };
00184 
00186 
00187 #endif // HEURISTICS_HEADER

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