heuristics.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 HEURISTICS_HEADER
00020 #define HEURISTICS_HEADER
00021 
00025 
00026 #include "whiptk/whipcore.h"
00027 
00032 
00033 
00034 class WHIPTK_API   WT_File_Heuristics
00035 {
00036     friend class WT_Plot_Info;
00037     friend class WT_Informational;
00038     friend class WT_Opcode;
00039     friend class WT_DWF_Header;
00040         friend class WT_File;
00041 public:
00043     WT_File_Heuristics();
00045     virtual ~WT_File_Heuristics();
00047 
00048 
00051     void                 set_allow_binary_data (WT_Boolean binary) {   m_allow_binary_data = binary;    }
00053 
00056     void                 set_allow_data_compression(WT_Boolean allowed) {   m_allow_data_compression = allowed;    }
00058 
00059     void                 set_allow_drawable_merging (WT_Boolean merging) {   m_allow_drawable_merging = merging;    }
00061 
00062     void                 set_allow_indexed_colors(WT_Boolean indexed) {   m_allow_indexed_colors = indexed; }
00064 
00065     void                 set_apply_transform(WT_Boolean apply)  {    m_apply_transform = apply;    }
00067 
00068     void                 set_apply_transform_to_units_matrix(WT_Boolean apply) {    m_apply_transform_to_units_matrix = apply;    }
00069 
00071 
00092     void                 set_deferred_delete(WT_Boolean state)  { m_deferred_delete = state;    }
00094 
00102     void                 set_target_version(int target, WT_File * file = WD_Null);
00104 
00108     void                 set_transform(WT_Transform const & transform) {    m_transform = transform;    }
00110     void                 set_user_data(void * user_data) {    m_user_data = user_data;}
00112 
00114 
00115     WT_Boolean           allow_binary_data () const {   return m_allow_binary_data;      }
00117     WT_Boolean           allow_data_compression() const {   return m_allow_data_compression;   }
00119     WT_Boolean           allow_drawable_merging () const {   return m_allow_drawable_merging;      }
00121     WT_Boolean           allow_indexed_colors() const {   return m_allow_indexed_colors;  }
00123 
00124     WT_Boolean           apply_transform() const {    return m_apply_transform;    }
00126 
00129     WT_Boolean           apply_transform_to_units_matrix() const {    return m_apply_transform_to_units_matrix;    }
00130 
00132 
00133     WT_Boolean           deferred_delete() const   { return m_deferred_delete;    }
00135 
00140     int                  target_version() const {   return m_target_version;    }
00142 
00143     WT_Transform const & transform() const {    return m_transform;    }
00144     WT_Transform &       transform()       {    return m_transform;    }
00146     void *               user_data() {    return m_user_data;        }
00148 
00149 private:
00150     void                 set_broken_plotinfo(WT_Boolean state) { m_broken_plotinfo = state;    }
00151     WT_Boolean           broken_plotinfo() const               { return m_broken_plotinfo;    }
00152 
00153     WT_Boolean                  m_allow_data_compression;
00154     WT_Boolean                  m_allow_indexed_colors;
00155     WT_Boolean                  m_allow_binary_data;
00156     WT_Boolean                  m_allow_drawable_merging;
00157     WT_Boolean                  m_apply_transform;
00158     WT_Boolean                  m_apply_transform_to_units_matrix;
00159     WT_Transform                m_transform;
00160     int                                 m_target_version;
00161     void *                              m_user_data;
00162     WT_Boolean                  m_deferred_delete;
00163     WT_Boolean                  m_broken_plotinfo;
00164     WT_Boolean                  m_w2d_channel;
00165 
00166     WT_File_Heuristics (WT_File_Heuristics const &)
00167       : m_allow_data_compression()
00168       , m_allow_indexed_colors()
00169       , m_allow_binary_data()
00170       , m_allow_drawable_merging()
00171       , m_apply_transform()
00172       , m_apply_transform_to_units_matrix()
00173       , m_transform()
00174       , m_target_version()
00175       , m_user_data()
00176       , m_deferred_delete()
00177       , m_broken_plotinfo()
00178       , m_w2d_channel()
00179     {
00180         WD_Complain ("cannot copy WT_File_Heuristics");
00181     } // prohibited
00182 
00183     WT_File_Heuristics & operator= (WT_File_Heuristics const &)
00184     {
00185         WD_Complain ("cannot assign WT_File_Heuristics");
00186         return *this;
00187     } // prohibited
00188 };
00189 
00191 
00192 #endif // HEURISTICS_HEADER

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