Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgNode Class Reference

Class to render a generic object in the scene. More...

#include <ddgnode.h>

Class diagram for ddgNode:

ddgUIObj ddgTree ddgTorus ddgSquare ddgMaterial ddgLightObj ddgLight ddgGroup ddgGrass ddgGeneralObj ddgDLNode ddgCylinder ddgCameraObj ddgBox

List of all members.


Public Members

 ddgNode (void)
Constructor.

virtual bool draw ( ddgContext *ctx ) = 0
Render this node. More...

virtual bool init ( ddgContext *ctx )
Initialize the node. More...

RenderFlags mode

Detailed Description

Class to render a generic object in the scene.

Other objects can be subclassed from this object to implement differing drawing capabilities. This is an Abstract class.


Member Function Documentation

virtual bool ddgNode::draw (ddgContext * c) [pure virtual]

Render this node.

This function must be overidden. Return true if error.

Reimplemented in ddgAxis, ddgBox, ddgCameraObj, ddgClippedFacetSet, ddgClipper, ddgCloud, ddgCylinder, ddgFacetSet, ddgFog, ddgForest, ddgForestBlock, ddgGeodesic, ddgGrass, ddgGrid, ddgGround, ddgGroup, ddgHistograph, ddgLattice, ddgLight, ddgLightModel, ddgLightObj, ddgLineObj, ddgMaterial, ddgMeshRender, ddgReflection, ddgScene, ddgSky, ddgSquare, ddgStarClass, ddgText, ddgTorus, ddgTransform, ddgTree, ddgUIColorView, ddgUIControl, ddgUIGroup, and ddgVBuffer.

virtual bool ddgNode::init (ddgContext * ctx) [virtual]

Initialize the node.

This function should be overridden. Return false if no error occured. true if object is already initialized. true if initialization failed, in that case mode.flags.init should be reset to false. All sub classes should have the following at the start of their init method: if (super::init()) return true;

Reimplemented in ddgBox, ddgClippedFacetSet, ddgClipper, ddgCloud, ddgDLNode, ddgFacetSet, ddgFog, ddgForest, ddgForestBlock, ddgGrass, ddgGround, ddgGroup, ddgHistograph, ddgMeshRender, ddgReflection, ddgScene, ddgSky, ddgSquare, ddgStarClass, ddgText, ddgTorus, ddgTree, and ddgVBuffer.


The documentation for this class was generated from the following files:
Generated at Sun Sep 17 19:27:55 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999