00001 /* 00002 Copyright (C) 1999 Carsten Winkelholz 00003 00004 Malte Weiß, 12.08.2002: Added line intersection tests. 00005 17.04.2003: Implementated LoadVRML functionality. 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 00029 #ifndef CYBCYLINDERC_H 00030 #define CYBCYLINDERC_H 00031 00032 #include "oaw/ctk/cybgeometryc.h" 00033 #include "oaw/ctk/cybwrlfields.h" 00034 #include "../oawconfig.h" 00035 00036 OAW_BEGIN_NAMESPACE 00037 00038 00039 class CybGLViewC; 00040 class CybIsectLineChannelC; 00041 00042 class OAW_DLLMAPPING CybCylinderC : public CybGeometryC 00043 { 00044 public: 00045 CybCylinderC(CybWorldC*); 00046 virtual ~CybCylinderC(); 00047 CybCylinderC(const CybCylinderC&); 00048 CybCylinderC& operator = (const CybCylinderC&); 00049 virtual void FinishInit(); 00050 00051 virtual void ToChannelDefault(CybChannelC*, long flag); 00052 virtual void ToChannelTexture(CybChannelC*, long flag); 00053 virtual void ToIsectLineChannel(CybIsectLineChannelC* pIsectChan); 00054 00055 protected: 00056 virtual void CreateNewCopy(CybNodeC*); 00057 00058 public: 00059 virtual void LoadVRML(char*& iter, const char* iterEnd, long& znr); 00060 virtual void SetEvent(long srct, const void* pData, BaseI*); 00061 virtual long GetFieldDataType(long fieldID); 00062 virtual long GetFieldEventID(const char* str); 00063 virtual short GetFieldData(long nFieldID, void* dest); 00064 00065 protected: 00066 // Field data 00067 SFBool m_bBottom; 00068 SFFloat m_fHeight; 00069 SFFloat m_fRadius; 00070 SFBool m_bSide; 00071 SFBool m_bTop; 00072 00073 SFBool m_bLoading; 00074 00075 private: 00076 static char VRMLKeyStrList[][30]; 00077 }; 00078 00079 OAW_END_NAMESPACE 00080 00081 00082 #endif 00083 00084
1.3-rc2