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