00001 /* 00002 Copyright (C) 2002 Carsten Winkelholz, Malte Weiß 00003 00004 Malte Weiß, 09.09.2002: Event handling implemented. 00005 00006 Address: FGAN Forschungsgesellschaft für 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 #ifndef CYBFONTSTYLEC_H 00028 #define CYBFONTSTYLEC_H 00029 00030 #include "oaw/ctk/cybnodec.h" 00031 #include "oaw/ctk/cybwrlfields.h" 00032 #include "../oawconfig.h" 00033 00034 OAW_BEGIN_NAMESPACE 00035 00036 00037 class CybFontStyleC : public CybNodeC 00038 { 00039 public: 00040 CybFontStyleC(CybWorldC*); 00041 CybFontStyleC(const CybFontStyleC&); 00042 CybFontStyleC& operator=(const CybFontStyleC&); 00043 00044 protected: 00045 virtual void CreateNewCopy(CybNodeC*); 00046 00047 public: 00048 virtual void LoadVRML(char*&, const char*, long&); 00049 virtual void SetEvent(long srct, const void* pData, BaseI*); 00050 virtual long GetFieldDataType(long fieldID); 00051 virtual long GetFieldEventID(const char* str); 00052 00053 public: 00054 // Field data 00055 MFString m_mstrFamily; 00056 SFBool m_bHorizontal; 00057 MFString m_mstrJustify; 00058 SFString m_strLanguage; 00059 SFBool m_bLeftToRight; 00060 SFFloat m_fSize; 00061 SFFloat m_fSpacing; 00062 SFString m_strStyle; 00063 SFBool m_bTopToBottom; 00064 00065 private: 00066 static char VRMLKeyStrList[][30]; 00067 }; 00068 00069 OAW_END_NAMESPACE 00070 00071 00072 #endif
1.3-rc2