Public Member Functions | Protected Attributes

cyber::editor::commands::creation::CreateSpotLightDesc Class Reference

#include <CreateSpotLightDesc.h>

Inheritance diagram for cyber::editor::commands::creation::CreateSpotLightDesc:
cyber::editor::commands::creation::CreateAttenuatedLightDesc cyber::editor::commands::creation::CreateLightDesc cyber::editor::commands::creation::CreateObjectDesc cyber::editor::commands::Command

List of all members.

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::Vector2get_direction () const
float get_angle () const

Protected Attributes

const ml7::Vector2 _direction
const float _angle

Detailed Description

The command class for creating spot light object descriptions.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

The angle, in radians, of the light's (inner and outer) cone.

The direction that the light is pointing in world-space.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines