3dbound.h

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

Generated on Tue Dec 14 13:18:11 2004 for TNTsdk by  doxygen 1.3.8-20040913