Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SLContext Class Reference

#include <SLContext.h>

List of all members.

Public Members

 SLContext (Int maxAttributes)
AttrPtr Get (AttrType attrType)
Get current attribute of type attrType.

Void Set (AttrType attrType, AttrPtr attrPtr)
Set attribute of type attrType.

Void SetDaemon (AttrType attrType, AttrDaemon *daemon)
Bool IsCurrent (AttrType attrType)
Void Push ()
Push current context.

Void Pop ()
Restore last context.

Void Clear ()
Clear the context stack.

Protected Members

AttrList attributeList
AttrStackList attributeStack
Int level


ostream& operator<< (ostream &s, const SLContext &ctx)

Detailed Description

State machine for rendering a scene; you can add attributes to the context, and also push & pop the current context.

The context maintains a list of the attributes (i.e., state variables), and can conceptually pop or push that list from/to a stack. In fact attributes are only pushed / popped on a need-to basis, to avoid the overhead of copying the entire list each time.

Definition at line 73 of file SLContext.h.

Constructor & Destructor Documentation

SLContext::SLContext (Int numAttrs)

Definition at line 34 of file

Member Function Documentation

Void SLContext::Clear ()

Clear the context stack.

Definition at line 135 of file

AttrPtr SLContext::Get (AttrType attrType)

Get current attribute of type attrType.

Definition at line 41 of file

Bool SLContext::IsCurrent (AttrType attrType)

Definition at line 130 of file

Void SLContext::Pop ()

Restore last context.

Definition at line 97 of file

Void SLContext::Push ()

Push current context.

Definition at line 88 of file

Void SLContext::Set (AttrType attrType, AttrPtr attrPtr)

Set attribute of type attrType.

Definition at line 49 of file

Void SLContext::SetDaemon (AttrType attrType, AttrDaemon * daemon)

Definition at line 78 of file

Friends And Related Function Documentation

ostream& operator<< (ostream & s, const SLContext & ctx) [friend]

Definition at line 163 of file SLContext.h.

Member Data Documentation

AttrList SLContext::attributeList [protected]

Definition at line 91 of file SLContext.h.

AttrStackList SLContext::attributeStack [protected]

Definition at line 92 of file SLContext.h.

Int SLContext::level [protected]

Definition at line 93 of file SLContext.h.

The documentation for this class was generated from the following files:
Generated at Sat Aug 5 00:17:10 2000 for Graphics Class Library by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000