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

cybproximitysensorc.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1999  Carsten Winkelholz
00003 
00004 Malte Weiß, 19.08.2002: Fields are loaded. Fields 'size' and 'enable' work. Most eventOuts work.
00005             21.08.2002: Field 'center' considered.
00006                 
00007 Address:  FGAN Forschungsgesellschaft fr Angewandte Naturwissenschaften e. V.
00008       Neuenahrer Str. 20
00009       D - 53343 Wachtberg
00010       
00011 Email:    winkelholz@fgan.de
00012 
00013 This program is free software; you can redistribute it and/or
00014 modify it under the terms of the GNU General Public License
00015 as published by the Free Software Foundation; either version 2
00016 of the License, or (at your option) any later version.
00017 
00018 This program is distributed in the hope that it will be useful,
00019 but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021 GNU General Public License for more details.
00022 
00023 You should have received a copy of the GNU General Public License
00024 along with this program; if not, write to the Free Software
00025 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00026 */
00027 
00028 #ifndef CYBPROXIMITYSENSOR_HC
00029 #define CYBPROXIMITYSENSOR_HC
00030 
00031 #include "oaw/ctk/cybnodec.h"
00032 #include "oaw/ctk/cybwrlfields.h"
00033 #include "../oawconfig.h"
00034 
00035 OAW_BEGIN_NAMESPACE
00036 
00037 
00038 class OAW_DLLMAPPING CybProximitySensorC : public CybNodeC
00039 {
00040 public:
00041   CybProximitySensorC(CybWorldC*);
00042   CybProximitySensorC(const CybProximitySensorC&);
00043   CybProximitySensorC& operator = (const CybProximitySensorC&);  
00044 
00045 protected:
00046   virtual void CreateNewCopy(CybNodeC*);
00047 
00048 public:
00049   virtual void ToChannel(CybChannelC*,long flag);
00050 
00051   virtual void LoadVRML(char*&, const char*,long&);
00052   virtual void SetEvent(long srct, const void* pData, BaseI*);
00053   virtual long GetFieldDataType(long fieldID);
00054   virtual long GetFieldEventID(const char* str);
00055 
00056 protected:
00057   void SendIsActive();
00058   void SendEnterTime();
00059   void SendExitTime();
00060   void SendPositionChanged();
00061   void SendOrientationChanged();
00062 
00063 protected:
00064   // Field data
00065   SFVec3f     m_vCenter;
00066   SFVec3f     m_vSize;
00067   SFBool      m_bEnabled;
00068 
00069   // Internal data
00070   SFBool      m_bActive;
00071   SFVec3f     m_vPos;
00072   SFRotation  m_vOrient;
00073   SFBool      m_bFirstRun;
00074 
00075 private:
00076   static char VRMLKeyStrList[][30];
00077 };
00078 
00079 OAW_END_NAMESPACE
00080 
00081 
00082 #endif

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