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