Public Member Functions | Public Attributes | Protected Member Functions

cyber::world::ObjectDesc Class Reference

#include <ObjectDesc.h>

Inheritance diagram for cyber::world::ObjectDesc:
cyber::world::BodyObjectDesc cyber::world::CameraDesc cyber::world::concepts::ConceptDesc cyber::world::lights::LightDesc cyber::world::WorldDesc cyber::world::BoxBodyObjectDesc cyber::world::PolyBodyObjectDesc cyber::world::SphereBodyObjectDesc cyber::world::concepts::MaterialDesc cyber::world::lights::AmbientLightDesc cyber::world::lights::AttenuatedLightDesc cyber::world::characters::CharacterDesc cyber::world::blocks::BlockDesc cyber::world::lights::PointLightDesc cyber::world::lights::SpotLightDesc cyber::world::characters::PlayerCharacterDesc cyber::world::blocks::FixedBlockDesc cyber::world::blocks::MovableBlockDesc

List of all members.

Public Member Functions

ClassID get_class_id () const
unsigned get_id () const

Public Attributes

bool phantom
unsigned created
unsigned deleted
friend World

Protected Member Functions

 ObjectDesc (ClassID class_id, unsigned id)
 ObjectDesc (const ObjectDesc &rhs)
ObjectDescoperator= (const ObjectDesc &rhs)
virtual ~ObjectDesc (void)

Detailed Description

The base object description class.


Constructor & Destructor Documentation

cyber::world::ObjectDesc::ObjectDesc ( ClassID  class_id,
unsigned  id 
) [protected]

Explicit constructor.

cyber::world::ObjectDesc::ObjectDesc ( const ObjectDesc rhs  )  [protected]

Copy constructor.

cyber::world::ObjectDesc::~ObjectDesc ( void   )  [protected, virtual]

Destructor.


Member Function Documentation

ClassID cyber::world::ObjectDesc::get_class_id (  )  const [inline]

Returns the ID of the class of this object.

unsigned cyber::world::ObjectDesc::get_id (  )  const [inline]

Returns the ID of this object.

ObjectDesc & cyber::world::ObjectDesc::operator= ( const ObjectDesc rhs  )  [protected]

Copy assignment operator.


Member Data Documentation

In accordance with the "phantom flag", this value specifies the "moment" (the number of the editing action command) the object description has been created (or gets deleted through an undo action).

In accordance with the "phantom flag", this value specifies the "moment" (the number of the editing action command) the object description has been deleted (or gets recreated through a redo action).

The flag specifying whether this object description is a phantom and should be ignored on any occurrence. Set this flag to true, if this object has been "deleted" during world editing. Set it back to false, if the deletion gets undone. Also set it to true, if this object has not been created (theoretically) because of an undo action. A redo action then could re-create it (set the flag to false, then).


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