00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef CYBPOINTLIGHT_HC
00029 #define CYBPOINTLIGHT_HC
00030
00031
00032 #include "oaw/ctk/cybnodec.h"
00033 #include "oaw/ctk/cybwrlfields.h"
00034 #include "../oawconfig.h"
00035
00036 OAW_BEGIN_NAMESPACE
00037
00038
00039 class OAW_DLLMAPPING CybPointLightC : public CybNodeC
00040 {
00041 public:
00042 CybPointLightC(CybWorldC*);
00043 CybPointLightC(const CybPointLightC&);
00044 CybPointLightC& operator = (const CybPointLightC&);
00045
00046 virtual void LoadVRML(char*& iter, const char* iterEnd,long& znr);
00047 virtual void SetEvent(long, const void*, BaseI*);
00048 virtual long GetFieldEventID(const char*);
00049 virtual long GetFieldDataType(long);
00050
00051 protected:
00052 virtual void CreateNewCopy(CybNodeC*);
00053 protected:
00054 SFFloat m_fAmbientIntensity;
00055 SFVec3f m_vAttenuation;
00056 SFColor m_vColor;
00057 SFFloat m_fIntensity;
00058 SFVec3f m_vLocation;
00059 SFBool m_bOn;
00060 SFFloat m_fRadius;
00061
00062
00063 static char VRMLKeyStrList[][30];
00064 };
00065
00066 OAW_END_NAMESPACE
00067
00068
00069 #endif
00070
00071
00072
00073