Public Member Functions | Protected Attributes

cyber::editor::commands::creation::CreateAttenuatedLightDesc Class Reference

#include <CreateAttenuatedLightDesc.h>

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

List of all members.

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::Sphereget_sphere () const
const ml7::Vector2get_position () const
float get_range () const

Protected Attributes

const bl7::geometry2::Sphere _sphere
const ml7::Vector2 _position
const float _range

Detailed Description

The command class for creating attenuated light object descriptions.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

The linear position in world-space.

The distance beyond which the light has no effect.

The sphere describing the light source.


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