Identifiable Interface Reference
[Scene]

Interface for an object that has a unique ID number. More...

#include <Identifiable.hpp>

Inheritance diagram for Identifiable:
Drawable Manipulator SimpleDrawable Fullscreen Shape Cone Disk Hexahedron Line Square Boolean Box Cube BooleanAnd BooleanXor

List of all members.

Public Member Functions

 Identifiable ()
virtual unsigned int getID () const
string toString () const

Static Public Member Functions

static IdentifiablefindByID (unsigned int id)

Private Attributes

unsigned int id

Static Private Attributes

static unsigned int count = 0
static vector< Identifiable * > ids

Detailed Description

Interface for an object that has a unique ID number.


Constructor & Destructor Documentation

Identifiable (  ) 

Increments counter and stores it as this object's unique ID number.


Member Function Documentation

Identifiable * findByID ( unsigned int  id  )  [static]

Finds an identifiable object by its unique ID number.

Returns:
Pointer to the object (NULL if not found).
unsigned int getID (  )  const [virtual]

Returns a unique identifier to the object.

string toString (  )  const

Forms a string from the object's attributes.

Implemented in Boolean, BooleanXor, Shape, and SimpleDrawable.


The documentation for this interface was generated from the following files:
Generated on Wed Jun 9 01:36:36 2010 for Gander by  doxygen 1.6.3