00001 /*** 00002 * \file gre/3dbound.h 00003 * \brief Bound structure 00004 * 00005 * \if NODOC 00006 * $Id: 3dbound.h_v 1.4 2006/09/15 15:29:15 mju Exp $ 00007 * 00008 * $Log: 3dbound.h_v $ 00009 * Revision 1.4 2006/09/15 15:29:15 mju 00010 * Serializer changes. 00011 * 00012 * Revision 1.3 2005/10/05 16:31:07 mju 00013 * Include gre base hdr. 00014 * 00015 * Revision 1.2 2004/12/01 20:11:57 vdronov 00016 * ALIGN 00017 * 00018 * Revision 1.1 2004/09/20 17:36:41 vdronov 00019 * Initial revision 00020 * 00021 * \endif 00022 **/ 00023 00024 #ifndef INC_GRE_3DBOUND_H 00025 #define INC_GRE_3DBOUND_H 00026 00027 #ifndef INC_GRE_BASE_H 00028 #include <gre/base.h> 00029 #endif 00030 00031 #ifndef INC_MI32_COLOR_H 00032 #include <mi32/color.h> 00033 #endif 00034 00035 #ifndef INC_MI32_SERIALIZERBASE_H 00036 #include <mi32/serializerbase.h> 00037 #endif 00038 00039 namespace GRE { 00040 00041 // BOUNDPARM 00042 class BOUNDPARM { 00043 public: 00044 enum TYPE { 00045 TYPE_Up, 00046 TYPE_Down 00047 }; 00048 00049 double ALIGN8(m_Elevation); 00050 COLOR m_Color; 00051 00052 static const SERIALIZERITEM* SerialGetItemDef (SERIALIZER& serializer); 00053 00055 BOUNDPARM ( 00056 BOUNDPARM::TYPE type = BOUNDPARM::TYPE_Down 00057 ) : 00058 m_Type(type), 00059 m_IsEnabled(false), 00060 m_Color(0xF000, 0x8000, 0x0000), 00061 m_Elevation(0.0) 00062 { } 00063 00065 BOUNDPARM ( 00066 const BOUNDPARM& rhs 00067 ) : 00068 m_Type(rhs.m_Type), 00069 m_IsEnabled(rhs.m_IsEnabled), 00070 m_Color(rhs.m_Color), 00071 m_Elevation(rhs.m_Elevation) 00072 { } 00073 00075 ~BOUNDPARM() { } 00076 00077 void SetEnabled ( 00078 const bool enabled 00079 ) { m_IsEnabled = enabled; } 00080 00081 bool IsEnabled ( 00082 ) const { return m_IsEnabled; } 00083 00084 TYPE GetType ( 00085 ) const { return m_Type; } 00086 00087 private: 00088 const TYPE m_Type; 00089 bool m_IsEnabled; 00090 }; // End of BOUNDPARM class. 00091 00092 } // End of GRE namespace 00093 00094 #endif 00095 00096 00097
1.6.1