#include <OSG3DSLoader.h>
Inheritance diagram for LLight:

Public Member Functions | |
| LLight () | |
| virtual | ~LLight () |
| void | Clear () |
| void | SetPosition (LVector3 vec) |
| LVector3 | GetPosition () |
| void | SetColor (LColor3 color) |
| LColor3 | GetColor () |
| void | SetSpotlight (bool value) |
| bool | GetSpotlight () |
| void | SetTarget (LVector3 target) |
| LVector3 | GetTarget () |
| void | SetHotspot (float value) |
| float | GetHotspot () |
| void | SetFalloff (float value) |
| float | GetFalloff () |
| void | SetAttenuationstart (float value) |
| float | GetAttenuationstart () |
| void | SetAttenuationend (float value) |
| float | GetAttenuationend () |
| virtual const std::string & | GetName () |
| virtual void | SetName (const std::string &value) |
| bool | IsObject (const std::string &name) |
Protected Attributes | |
| LVector3 | m_pos |
| LColor3 | m_color |
| bool | m_spotlight |
| LVector3 | m_target |
| float | m_hotspot |
| float | m_falloff |
| float | m_attenuationstart |
| float | m_attenuationend |
| std::string | m_name |
Definition at line 358 of file OSG3DSLoader.h.
| LLight::LLight | ( | ) |
| LLight::~LLight | ( | ) | [virtual] |
| void LLight::Clear | ( | ) |
Definition at line 936 of file OSG3DSLoader.cpp.
References LColor3::b, LColor3::g, m_attenuationend, m_attenuationstart, m_color, m_pos, m_spotlight, LColor3::r, LVector3::x, LVector3::y, and LVector3::z.
Referenced by LLight().
00937 { 00938 m_pos.x = m_pos.y = m_pos.z = 0.0f; 00939 m_color.r = m_color.g = m_color.b = 0.0f; 00940 m_spotlight = false; 00941 m_attenuationend = 100; 00942 m_attenuationstart = 1000; 00943 }
| void LLight::SetPosition | ( | LVector3 | vec | ) |
Definition at line 945 of file OSG3DSLoader.cpp.
References m_pos.
Referenced by L3DS::ReadLight().
00946 { 00947 m_pos = vec; 00948 }
| LVector3 LLight::GetPosition | ( | ) |
Definition at line 950 of file OSG3DSLoader.cpp.
References m_pos.
00951 { 00952 return m_pos; 00953 }
| void LLight::SetColor | ( | LColor3 | color | ) |
Definition at line 955 of file OSG3DSLoader.cpp.
References m_color.
Referenced by L3DS::ReadLight().
00956 { 00957 m_color = color; 00958 }
| LColor3 LLight::GetColor | ( | ) |
Definition at line 960 of file OSG3DSLoader.cpp.
References m_color.
00961 { 00962 return m_color; 00963 }
| void LLight::SetSpotlight | ( | bool | value | ) |
Definition at line 965 of file OSG3DSLoader.cpp.
References m_spotlight.
00966 { 00967 m_spotlight = value; 00968 }
| bool LLight::GetSpotlight | ( | ) |
Definition at line 970 of file OSG3DSLoader.cpp.
References m_spotlight.
00971 { 00972 return m_spotlight; 00973 }
| void LLight::SetTarget | ( | LVector3 | target | ) |
Definition at line 975 of file OSG3DSLoader.cpp.
References m_target.
Referenced by L3DS::ReadLight().
00976 { 00977 m_target = target; 00978 }
| LVector3 LLight::GetTarget | ( | ) |
Definition at line 980 of file OSG3DSLoader.cpp.
References m_target.
00981 { 00982 return m_target; 00983 }
| void LLight::SetHotspot | ( | float | value | ) |
Definition at line 985 of file OSG3DSLoader.cpp.
References m_hotspot.
Referenced by L3DS::ReadLight().
| float LLight::GetHotspot | ( | ) |
Definition at line 990 of file OSG3DSLoader.cpp.
References m_hotspot.
00991 { 00992 return m_hotspot; 00993 }
| void LLight::SetFalloff | ( | float | value | ) |
Definition at line 995 of file OSG3DSLoader.cpp.
References m_falloff.
Referenced by L3DS::ReadLight().
| float LLight::GetFalloff | ( | ) |
Definition at line 1000 of file OSG3DSLoader.cpp.
References m_falloff.
01001 { 01002 return m_falloff; 01003 }
| void LLight::SetAttenuationstart | ( | float | value | ) |
Definition at line 1005 of file OSG3DSLoader.cpp.
References m_attenuationend.
Referenced by L3DS::ReadLight().
01006 { 01007 m_attenuationend = value; 01008 }
| float LLight::GetAttenuationstart | ( | ) |
Definition at line 1010 of file OSG3DSLoader.cpp.
References m_attenuationend.
01011 { 01012 return m_attenuationend; 01013 }
| void LLight::SetAttenuationend | ( | float | value | ) |
Definition at line 1015 of file OSG3DSLoader.cpp.
References m_attenuationstart.
Referenced by L3DS::ReadLight().
01016 { 01017 m_attenuationstart = value; 01018 }
| float LLight::GetAttenuationend | ( | ) |
Definition at line 1020 of file OSG3DSLoader.cpp.
References m_attenuationstart.
01021 { 01022 return m_attenuationstart; 01023 }
| const std::string & LObject::GetName | ( | ) | [virtual, inherited] |
Definition at line 234 of file OSG3DSLoader.cpp.
References LObject::m_name.
Referenced by OSG::A3DSSceneFileType::createMesh().
00235 { 00236 return m_name; 00237 }
| void LObject::SetName | ( | const std::string & | value | ) | [virtual, inherited] |
Definition at line 229 of file OSG3DSLoader.cpp.
References LObject::m_name.
Referenced by L3DS::ReadCamera(), L3DS::ReadLight(), L3DS::ReadMaterial(), and L3DS::ReadMesh().
| bool LObject::IsObject | ( | const std::string & | name | ) | [inherited] |
LVector3 LLight::m_pos [protected] |
Definition at line 400 of file OSG3DSLoader.h.
Referenced by Clear(), GetPosition(), and SetPosition().
LColor3 LLight::m_color [protected] |
bool LLight::m_spotlight [protected] |
Definition at line 402 of file OSG3DSLoader.h.
Referenced by Clear(), GetSpotlight(), and SetSpotlight().
LVector3 LLight::m_target [protected] |
float LLight::m_hotspot [protected] |
float LLight::m_falloff [protected] |
float LLight::m_attenuationstart [protected] |
Definition at line 406 of file OSG3DSLoader.h.
Referenced by Clear(), GetAttenuationend(), and SetAttenuationend().
float LLight::m_attenuationend [protected] |
Definition at line 407 of file OSG3DSLoader.h.
Referenced by Clear(), GetAttenuationstart(), and SetAttenuationstart().
std::string LObject::m_name [protected, inherited] |
Definition at line 140 of file OSG3DSLoader.h.
Referenced by LObject::GetName(), LObject::IsObject(), LObject::LObject(), and LObject::SetName().