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

Avar Class Reference

#include <Avars.h>

List of all members.

Public Members

 Avar ()
 Avar ( StrConst name, GCLReal value = 0.0, GCLReal lowerBound = 0.0, GCLReal upperBound = 1.0 )
StrConst name
GCLReal value
GCLReal lowerBound
GCLReal upperBound

Detailed Description

Scene attributes return a list of avars they handle via the HasAvars() method. They also make a note of the avar slot they've been assigned. When they're called during a pass traversal, they check that slot, and recalculate themselves if its value has changed. If there is no AvarList containing the slots, they use their default values.

The rationale behind this is, we'd like lazy evaluation, and to avoid tracking all the dependencies of an avar. This way, when we change an avar, we don't have to track and change all of the attributes that use it explicitly. Those attributes read the value out of the avar table, if* they're actually used.

Definition at line 20 of file Avars.h.

Constructor & Destructor Documentation

Avar::Avar () [inline]

Definition at line 23 of file Avars.h.

Avar::Avar (StrConst name, GCLReal value = 0.0, GCLReal lowerBound = 0.0, GCLReal upperBound = 1.0)

Definition at line 25 of file Avars.h.

Member Data Documentation

GCLReal Avar::lowerBound

Definition at line 36 of file Avars.h.

StrConst Avar::name

Definition at line 34 of file Avars.h.

GCLReal Avar::upperBound

Definition at line 37 of file Avars.h.

GCLReal Avar::value

Definition at line 35 of file Avars.h.

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