#include <CreateAttenuatedLightDesc.h>
Public Member Functions | |
| CreateAttenuatedLightDesc (unsigned cmd_number, const cl7::string_type &cmd_name, world::WorldDesc *world_desc, unsigned obj_id, unsigned long color, const bl7::geometry2::Sphere &sphere, const ml7::Vector2 &position, float range) | |
| virtual | ~CreateAttenuatedLightDesc (void) |
| const bl7::geometry2::Sphere & | get_sphere () const |
| const ml7::Vector2 & | get_position () const |
| float | get_range () const |
Protected Attributes | |
| const bl7::geometry2::Sphere | _sphere |
| const ml7::Vector2 | _position |
| const float | _range |
The command class for creating attenuated light object descriptions.
| cyber::editor::commands::creation::CreateAttenuatedLightDesc::CreateAttenuatedLightDesc | ( | unsigned | cmd_number, | |
| const cl7::string_type & | cmd_name, | |||
| world::WorldDesc * | world_desc, | |||
| unsigned | obj_id, | |||
| unsigned long | color, | |||
| const bl7::geometry2::Sphere & | sphere, | |||
| const ml7::Vector2 & | position, | |||
| float | range | |||
| ) |
Explicit constructor.
| cyber::editor::commands::creation::CreateAttenuatedLightDesc::~CreateAttenuatedLightDesc | ( | void | ) | [virtual] |
Destructor.
| const ml7::Vector2& cyber::editor::commands::creation::CreateAttenuatedLightDesc::get_position | ( | ) | const [inline] |
Returns the linear position in world-space.
| float cyber::editor::commands::creation::CreateAttenuatedLightDesc::get_range | ( | ) | const [inline] |
Returns the distance beyond which the light has no effect.
| const bl7::geometry2::Sphere& cyber::editor::commands::creation::CreateAttenuatedLightDesc::get_sphere | ( | ) | const [inline] |
Returns the sphere describing the light source.
const ml7::Vector2 cyber::editor::commands::creation::CreateAttenuatedLightDesc::_position [protected] |
The linear position in world-space.
const float cyber::editor::commands::creation::CreateAttenuatedLightDesc::_range [protected] |
The distance beyond which the light has no effect.
const bl7::geometry2::Sphere cyber::editor::commands::creation::CreateAttenuatedLightDesc::_sphere [protected] |
The sphere describing the light source.
1.7.1