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 CYBDIRECTIONALLIGHT_HC
00029 #define CYBDIRECTIONALLIGHT_HC
00030
00031 #include "oaw/ctk/cybnodec.h"
00032 #include "oaw/ctk/cybwrlfields.h"
00033 #include "../oawconfig.h"
00034
00035 OAW_BEGIN_NAMESPACE
00036
00037
00038 class OAW_DLLMAPPING CybDirectionalLightC : public CybNodeC
00039 {
00040 public:
00041 CybDirectionalLightC(CybWorldC*);
00042 CybDirectionalLightC(const CybDirectionalLightC&);
00043 CybDirectionalLightC& operator = (const CybDirectionalLightC&);
00044
00045 virtual void LoadVRML(char*& iter, const char* iterEnd,long& znr);
00046 virtual void SetEvent(long, const void*, BaseI*);
00047 virtual long GetFieldEventID(const char*);
00048 virtual long GetFieldDataType(long);
00049
00050 protected:
00051 virtual void CreateNewCopy(CybNodeC*);
00052 protected:
00053 SFFloat m_fAmbientIntensity;
00054 SFColor m_vColor;
00055 SFVec3f m_vDirection;
00056 SFFloat m_fIntensity;
00057 SFBool m_bOn;
00058
00059
00060 static char VRMLKeyStrList[][30];
00061 };
00062
00063 OAW_END_NAMESPACE
00064
00065
00066 #endif
00067
00068
00069
00070