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

FogClass Class Reference

Class object for Fog nodes. More...

Inheritance diagram for FogClass:

NodeClass List of all members.

Public Methods

 FogClass (Browser &browser)
 Constructor.

virtual ~FogClass () throw ()
 Destructor.

void setFirst (Fog &fog) throw ()
 Set the first Fog node in the world.

bool hasFirst () const throw ()
 Check to see if the first node has been set.

void bind (Fog &fog, double timestamp) throw (std::bad_alloc)
 Push a Fog on the top of the bound node stack.

void unbind (Fog &fog, double timestamp) throw ()
 Remove a Fog from the bound node stack.

virtual void initialize (double timestamp) throw ()
 NodeClass-specific initialization.

virtual void render (Viewer &viewer) throw ()
 NodeClass-specific rendering.

virtual const NodeTypePtr createType (const std::string &id, const NodeInterfaceSet &) throw (UnsupportedInterface, std::bad_alloc)
 Create a NodeType.


Private Attributes

Fogfirst
std::vector< NodePtrboundNodes

Detailed Description

Class object for Fog nodes.


Constructor & Destructor Documentation

FogClass Browser   browser [explicit]
 

Constructor.

Parameters:
browser the Browser associated with this class object.

~FogClass   throw () [virtual]
 

Destructor.


Member Function Documentation

void bind Fog   fog,
double    timestamp
throw (std::bad_alloc)
 

Push a Fog on the top of the bound node stack.

Parameters:
fog the node to bind.
timestamp the current time.

const NodeTypePtr createType const std::string &    id,
const NodeInterfaceSet   interfaces
throw (UnsupportedInterface, std::bad_alloc) [virtual]
 

Create a NodeType.

Parameters:
id the name for the new NodeType.
interfaces the interfaces for the new NodeType.
Returns:
a NodeTypePtr to a NodeType capable of creating Fog nodes.
Exceptions:
UnsupportedInterface if interfaces includes an interface not supported by FogClass.
std::bad_alloc if memory allocation fails.

Implements NodeClass.

bool hasFirst   const throw ()
 

Check to see if the first node has been set.

This method is used by Fog::initializeImpl.

Returns:
true if the first node has already been set; false otherwise.

void initialize double    timestamp throw () [virtual]
 

NodeClass-specific initialization.

Parameters:
timestamp the current time.

Reimplemented from NodeClass.

void render Viewer   viewer throw () [virtual]
 

NodeClass-specific rendering.

Render the active Fog node.

Parameters:
viewer a Viewer.

Reimplemented from NodeClass.

void setFirst Fog   fog throw ()
 

Set the first Fog node in the world.

The first Fog node in the world is used for the initial fog. This method is used by Fog::initializeImpl.

Parameters:
fog a Fog node.

void unbind Fog   fog,
double    timestamp
throw ()
 

Remove a Fog from the bound node stack.

Parameters:
fog the node to unbind.
timestamp the current time.