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

cybbillboardc.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1999  Carsten Winkelholz
00003 
00004 Malte Weiß, 26.07.2002: Event handling implemented.
00005 
00006 Address:  FGAN Forschungsgesellschaft fr 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 
00028 #ifndef CYBBILLBOARDC_H
00029 #define CYBBILLBOARDC_H
00030 
00031 
00032 #include "oaw/ctk/cybgroupc.h"
00033 #include "oaw/misc/matrixc.h"
00034 #include "../oawconfig.h"
00035 
00036 OAW_BEGIN_NAMESPACE
00037 
00038 
00039 class CybChannelC;
00040 
00041 class OAW_DLLMAPPING CybBillboardC : public CybGroupC
00042 {
00043 public:
00044   CybBillboardC(CybWorldC*);
00045   CybBillboardC(const CybBillboardC&);
00046   CybBillboardC& operator = (const CybBillboardC&);  
00047 protected:
00048   virtual void CreateNewCopy(CybNodeC*);
00049   virtual void UpdateBInfo();
00050 protected:
00051   VectorC  m_axisOfRotation;
00052   double   m_angleOfRotation;
00053   double m_scaleMax;
00054   Matrix4C m_M;
00055   Matrix4C m_Mfreeze;
00056   short m_bConstSizeX;
00057   short m_bConstSizeY;
00058   short m_bConstSizeZ;
00059   short m_bConstScale;
00060   short m_bEnabled;
00061 public:
00062 
00063   virtual void ToChannel(CybChannelC*,long flag);
00064 
00065   virtual void LoadVRML(char*&, const char*,long&);
00066   virtual void SetEvent(long srct, const void* pData, BaseI*);
00067   virtual long GetFieldDataType(long fieldID);
00068   virtual long GetFieldEventID(const char* str);
00069   virtual short GetFieldData(long,void* data);
00070   
00071   virtual int AddSrc(CybNodeC* pN,const StringC& a1,const StringC& a2);
00072 
00073 private:
00074   static char VRMLKeyStrList[][30];
00075 };
00076 
00077 OAW_END_NAMESPACE
00078 
00079 #endif
00080 
00081 
00082 

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