00001 /* 00002 Copyright (C) 1999 Carsten Winkelholz 00003 00004 Malte Weiß, 15.07.2002: Node partially implemented. 00005 16.07.2002: Node fully implemented. 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 CYBINDEXEDLINESETC_H 00030 #define CYBINDEXEDLINESETC_H 00031 00032 #include "oaw/ctk/cybgeometryc.h" 00033 #include "oaw/ctk/cybwrlfields.h" 00034 #include "oaw/ctk/cybcoordinatec.h" 00035 #include "oaw/ctk/cybcolorc.h" 00036 #include "../oawconfig.h" 00037 00038 OAW_BEGIN_NAMESPACE 00039 00040 00041 class OAW_DLLMAPPING CybIndexedLineSetC : public CybGeometryC 00042 { 00043 public: 00044 CybIndexedLineSetC(CybWorldC*); 00045 virtual ~CybIndexedLineSetC(); 00046 CybIndexedLineSetC(const CybIndexedLineSetC&); 00047 CybIndexedLineSetC& operator=(const CybIndexedLineSetC&); 00048 00049 virtual void SetEvent(long, const void*, BaseI*); 00050 virtual int SetNode(CybNodeC*); 00051 virtual long GetFieldEventID(const char*); 00052 virtual long GetFieldDataType(long); 00053 00054 protected: 00055 virtual void CreateNewCopy(CybNodeC*); 00056 virtual void FinishInit(); 00057 virtual void LoadVRML(char*& iter, const char* iterEnd,long& znr); 00058 void SetColor(CybColorC *pColor); 00059 void SetCoordinate(CybCoordinateC *pCoord); 00060 00061 protected: 00062 CybColorC *m_pColor; // Colors 00063 CybCoordinateC *m_pCoord; // Coordinates 00064 SFBool m_bColorPerVertex; // Colors per vertex? 00065 MFInt32 m_IndexColor; // Index list of colors 00066 MFInt32 m_IndexCoord; // Index list of coordinates 00067 00068 short m_bUpdateRender; // Render data must be updated? 00069 00070 // Key list 00071 static char VRMLKeyStrList[][30]; 00072 }; 00073 00074 00075 OAW_END_NAMESPACE 00076 00077 #endif 00078 00079 00080 00081
1.3-rc2