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

cybappearancec.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1999  Carsten Winkelholz
00003 
00004 Address:  FGAN Forschungsgesellschaft fr Angewandte Naturwissenschaften e. V.
00005       Neuenahrer Str. 20
00006       D - 53343 Wachtberg
00007       
00008 Email:    winkelholz@fgan.de
00009 
00010 This program is free software; you can redistribute it and/or
00011 modify it under the terms of the GNU General Public License
00012 as published by the Free Software Foundation; either version 2
00013 of the License, or (at your option) any later version.
00014 
00015 This program is distributed in the hope that it will be useful,
00016 but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 */
00024 
00025 #ifndef CYBAPPEARANCEC_H
00026 #define CYBAPPEARANCEC_H
00027 
00028 #include "oaw/ctk/cybnodec.h"
00029 #include "../oawconfig.h"
00030 
00031 OAW_BEGIN_NAMESPACE
00032 
00033 class CybMaterialC;
00034 class CybTextureC;
00035 class CybTextureTransformC;
00036 
00037 
00038 
00039 class OAW_DLLMAPPING CybAppearanceC : public CybNodeC
00040 {
00041 public:
00042   CybAppearanceC(CybWorldC*);
00043   virtual ~CybAppearanceC();
00044   CybAppearanceC(const CybAppearanceC&);
00045   CybAppearanceC& operator = (const CybAppearanceC&);  
00046   virtual void SignAsUser(ObjectI*);
00047   
00048   const CybTextureC* GetpTexture(){return m_pTexture;} 
00049   const CybMaterialC* GetpMaterial(){return m_pMaterial;}
00050 
00051   virtual int SetNode(CybNodeC*);
00052   virtual void Load_material(char*&, const char*,long&);
00053   virtual void Load_texture(char*&, const char*,long&);
00054   virtual void Load_textureTransform(char*&, const char*,long&);
00055   virtual void ToChannel(CybChannelC*, long flag);
00056   virtual void GarbageCollection();
00057   virtual void GetMessageAsObjectI(void*,long,SharedObjectC*);
00058   virtual void FinishInit();
00059 
00060   virtual void SetEvent(long,const void*, BaseI*);
00061   virtual short GetFieldData(long,void* data);
00062   virtual long GetFieldEventID(const char*);
00063   virtual long GetFieldDataType(long);
00064 
00065   short GetEnlighting(){return m_enlighting;}
00066 
00067 protected:
00068   virtual void CreateNewCopy(CybNodeC*);
00069   virtual void SetMaterial(CybMaterialC*);
00070   virtual void SetTexture(CybTextureC*);
00071   virtual void SetTextureTransform(CybTextureTransformC*);
00072 
00073 protected:
00074   CybMaterialC* m_pMaterial;
00075   CybTextureC*  m_pTexture;
00076   CybTextureTransformC*  m_pTextureTransform;
00077   short m_enlighting;
00078   short m_blending;
00079   //ArrayC<long> m_bufEventIDs;
00080   //ArrayC<long> m_bufEventData;
00081 };
00082 
00083 OAW_END_NAMESPACE
00084 
00085 
00086 #endif
00087 
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 

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