Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

cybfogc.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1999  Carsten Winkelholz
00003 
00004 Malte Weiß, 11.07.2002: Node fully implemented.
00005 
00006 Address:  FGAN Forschungsgesellschaft fr Angewandte Naturwissenschaften e. V.
00007       Neuenahrer Str. 20
00008       D - 53343 Wachtberg
00009       
00010 Email:    winkelholz@fgan.de
00011 
00012 This program is free software; you can redistribute it and/or
00013 modify it under the terms of the GNU General Public License
00014 as published by the Free Software Foundation; either version 2
00015 of the License, or (at your option) any later version.
00016 
00017 This program is distributed in the hope that it will be useful,
00018 but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 GNU General Public License for more details.
00021 
00022 You should have received a copy of the GNU General Public License
00023 along with this program; if not, write to the Free Software
00024 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00025 */
00026 
00027 
00028 #ifndef CYBFOG_HC
00029 #define CYBFOG_HC
00030 
00031 #include "oaw/ctk/cybnodec.h"
00032 #include "oaw/ctk/cybwrlfields.h"
00033 
00034 #define   FOG_TYPE_LINEAR       0
00035 #define   FOG_TYPE_EXPONENTIAL  1
00036 #include "../oawconfig.h"
00037 
00038 OAW_BEGIN_NAMESPACE
00039 
00040 
00041 class OAW_DLLMAPPING CybFogC : public CybNodeC
00042 {
00043 public:
00044   CybFogC(CybWorldC*);
00045   CybFogC(const CybFogC&);
00046   CybFogC& operator = (const CybFogC&);
00047   
00048   virtual void SetEvent(long, const void*, BaseI*);
00049   virtual long GetFieldEventID(const char*);
00050   virtual long GetFieldDataType(long);
00051 
00052 protected:
00053   void         SendIsBoundOutEvents(SFBool b);
00054   virtual void CreateNewCopy(CybNodeC*);
00055   virtual void LoadVRML(char*& iter, const char* iterEnd,long& znr);
00056 
00057 public:
00058   // Fog properties
00059   SFColor m_vColor;           // Color
00060   SFBool  m_bType;            // Type (0 = Linear, 1 = Exponential)
00061   SFFloat m_fVisibilityRange; // Visibility range
00062 
00063   // Key list
00064   static char VRMLKeyStrList[][30];
00065 };
00066 
00067 OAW_END_NAMESPACE
00068 
00069 
00070 #endif
00071 
00072 
00073 
00074 

Generated on Tue Jul 29 14:24:10 2003 for Open ActiveWrl by doxygen1.3-rc2