Kamaelia docs : Kamaelia.UI.OpenGL.Container.Container

Kamaelia.UI.OpenGL.Container.Container

For examples and more explanations, see the module level docs.


class Container(Axon.AdaptiveCommsComponent.AdaptiveCommsComponent)

Container(...) -> A new Container component.

A container to control several OpenGLComponents.

Keyword arguments:

  • position -- Initial container position (default=(0,0,0)).
  • rotation -- Initial container rotation (default=(0,0,0)).
  • scaling -- Initial container scaling (default=(1,1,1)).
  • contents -- Nested dictionary of contained components.

Inboxes

  • control : For shutdown messages
  • scaling : receive scaling triple (x,y,z)
  • inbox :
  • position : receive position triple (x,y,z)
  • rotation : receive rotation triple (x,y,z)
  • rel_scaling : receive scaling triple (x,y,z)
  • rel_position : receive position triple (x,y,z)
  • rel_rotation : receive rotation triple (x,y,z)

Outboxes

  • outbox :
  • signal : For shutdown messages

Methods defined here

__init__(self, **argd)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

applyTransforms(self)

Use the objects translation/rotation/scaling values to generate a new transformation Matrix if changes have happened.

handleMovement(self)

Handle movement commands received by corresponding inboxes.

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: