Package pygext :: Package gl :: Package director :: Module entities :: Class EntityNode
[frames | no frames]

Type EntityNode

object --+    
         |    
      Node --+
             |
            EntityNode

Known Subclasses:
Entity, SimpleBaseMenu, StaticEntity

Base class for all Entities

A simple entity that uses a single shape to draw itself.
Method Summary
  __init__(self, shape, hotspot, **kw)
  enter(self)
enter() -> None
  get_alpha(self)
  get_bounding_rect(self)
get_bounding_rect() -> Rect
  init(self)
  place(self, layername)
place(layername) -> this
  set(self, **kw)
set(**kw) -> this
  set_alpha(self, alpha)
    Inherited from Node
  __iter__(self)
  __len__(self)
  __nonzero__(self)
  abort_actions(self, typefilter)
abort_actions([typefilter]) -> None
  add_collnode(self, group, *arg, **kw)
  attach_to(self, node, back)
attach_to(node) -> None
  clear(self)
clear() -> None
  clear_collnodes(self)
  delete(self)
delete() -> None
  detach(self)
detach() -> None
  do(self, *actions, **kw)
do(*actions) -> this
  end_actions(self, typefilter)
end_actions([typefilter]) -> None
  exit(self)
exit() -> None
  get_actions(self, typefilter)
Get a list of currently active actions from this Node
  transform_polygon(self, poly)
  transform_rect(self, rect)
  traverse(self)
traverse() -> None

Property Summary
  alpha
  bottom
  center
  centerx
  centery
  height
  left
  right
  top
  width

Class Variable Summary
NoneType image = None                                                                  
NoneType layer = None                                                                  
    Inherited from Node
bool fast_draw = False

Method Details

enter(self)

enter() -> None

Called when entering this node in graph traversal
Overrides:
pygext.gl.director.node.Node.enter (inherited documentation)

get_bounding_rect(self)

get_bounding_rect() -> Rect

Calculate the bounding rect for the entity.

place(self, layername)

place(layername) -> this

Place the entity on a layer in the currently active Scene.

set(self, **kw)

set(**kw) -> this

Set several attribute in one call, for example:

entity.set(x=10, y=20, angle=90)

Property Details

alpha

Get Method:
get_alpha(self)
Set Method:
set_alpha(self, alpha)

Class Variable Details

image

Type:
NoneType
Value:
None                                                                  

layer

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Mon Jun 12 18:21:21 2006 http://epydoc.sf.net