#include <CreateSpotLightDesc.h>
Public Member Functions | |
| CreateSpotLightDesc (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, const ml7::Vector2 &direction, float angle) | |
| virtual | ~CreateSpotLightDesc (void) |
| const ml7::Vector2 & | get_direction () const |
| float | get_angle () const |
Protected Attributes | |
| const ml7::Vector2 | _direction |
| const float | _angle |
The command class for creating spot light object descriptions.
| cyber::editor::commands::creation::CreateSpotLightDesc::CreateSpotLightDesc | ( | 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, | |||
| const ml7::Vector2 & | direction, | |||
| float | angle | |||
| ) |
Explicit constructor.
| cyber::editor::commands::creation::CreateSpotLightDesc::~CreateSpotLightDesc | ( | void | ) | [virtual] |
Destructor.
| float cyber::editor::commands::creation::CreateSpotLightDesc::get_angle | ( | ) | const [inline] |
Returns the angle, in radians, of the light's (inner and outer) cone.
| const ml7::Vector2& cyber::editor::commands::creation::CreateSpotLightDesc::get_direction | ( | ) | const [inline] |
Returns the direction that the light is pointing in world-space.
const float cyber::editor::commands::creation::CreateSpotLightDesc::_angle [protected] |
The angle, in radians, of the light's (inner and outer) cone.
The direction that the light is pointing in world-space.
1.7.1