Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

anoid::base::Element Class Reference

#include <element.hh>

Inheritance diagram for anoid::base::Element:

Inheritance graph
[legend]
Collaboration diagram for anoid::base::Element:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual Objectadd (Object *o)
virtual AbilitylookupAbility (const char *name)
virtual void redraw ()
ShapegetShape ()
virtual vector< Ability
* >::iterator 
beginA ()
virtual vector< Ability
* >::iterator 
endA ()

Protected Attributes

string_map< Ability * > abilities
ShapetheShape

Private Attributes

vector< Ability * > childrenA

Friends

class Ability

Member Function Documentation

Object * anoid::base::Element::add Object   o [virtual]
 

Add an object to this object

Parameters:
o  the object to be added

Reimplemented from anoid::base::Object.

Definition at line 8 of file element.cc.

References childrenA, and theShape.

virtual vector<Ability*>::iterator anoid::base::Element::beginA   [inline, virtual]
 

Definition at line 28 of file element.hh.

References childrenA.

virtual vector<Ability*>::iterator anoid::base::Element::endA   [inline, virtual]
 

Definition at line 29 of file element.hh.

References childrenA.

Shape* anoid::base::Element::getShape   [inline]
 

Definition at line 27 of file element.hh.

Ability * anoid::base::Element::lookupAbility const char *    c [virtual]
 

@fixme Skal vi delete her, hvis der allerede er noget?

Definition at line 22 of file element.cc.

References abilities.

Referenced by anoid::plugin::anoid::Pad::receive().

void anoid::base::Element::redraw   [virtual]
 

Called just after update has been called on the entire world. This should draw the objects (using OpenGL).

Reimplemented from anoid::base::Object.

Definition at line 26 of file element.cc.

References childrenA, anoid::base::AbstractWorld::getContext(), anoid::base::Object::getWorld(), anoid::simple::i(), anoid::context::Context::popMatrix(), anoid::context::Context::pushMatrix(), anoid::base::Shape::redraw(), and theShape.


Friends And Related Function Documentation

friend class Ability [friend]
 

Definition at line 30 of file element.hh.


Member Data Documentation

string_map<Ability*> anoid::base::Element::abilities [protected]
 

Definition at line 17 of file element.hh.

Referenced by lookupAbility(), anoid::base::Ability::lookupFellowAbility(), and anoid::base::Ability::registerName().

vector<Ability*> anoid::base::Element::childrenA [private]
 

Definition at line 15 of file element.hh.

Referenced by add(), beginA(), endA(), and redraw().

Shape* anoid::base::Element::theShape [protected]
 

Definition at line 18 of file element.hh.

Referenced by add(), and redraw().


The documentation for this class was generated from the following files:
Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen