NodeMaterial Class Reference

#include <NodeMaterial.h>

Inheritance diagram for NodeMaterial:

Node List of all members.

Public Member Functions

 NodeMaterial (Scene *scene, Proto *proto)
virtual ~NodeMaterial ()
virtual int getType () const
virtual Nodecopy () const
virtual int getNodeClass () const
virtual void bind ()
virtual void unbind ()

Detailed Description

According to the Material Node of VRML97 specification.

  Material { 
  exposedField SFFloat ambientIntensity  0.2         # [0,1]
  exposedField SFColor diffuseColor      0.8 0.8 0.8 # [0,1]
  exposedField SFColor emissiveColor     0 0 0       # [0,1]
  exposedField SFFloat shininess         0.2         # [0,1]
  exposedField SFColor specularColor     0 0 0       # [0,1]
  exposedField SFFloat transparency      0           # [0,1]
}


Constructor & Destructor Documentation

NodeMaterial::NodeMaterial ( Scene scene,
Proto proto 
)

virtual NodeMaterial::~NodeMaterial (  )  [inline, virtual]


Member Function Documentation

virtual int NodeMaterial::getType (  )  const [inline, virtual]

Returns the Type of a Node in the Node subclasses(here pure virtual). E.g. for the NodeGroup it returns NODE_GROUP

Implements Node.

virtual Node* NodeMaterial::copy (  )  const [inline, virtual]

Creates a new instance of that Node in the Node subclasses(here pure virtual).

Implements Node.

virtual int NodeMaterial::getNodeClass (  )  const [inline, virtual]

Returns a NODE_CHILD as a node class (used to validate the scene)

Reimplemented from Node.

void NodeMaterial::bind (  )  [virtual]

To be overriden by the subclasses

Reimplemented from Node.

void NodeMaterial::unbind (  )  [virtual]

To be overriden by the subclasses

Reimplemented from Node.


Generated on Thu Jan 18 10:06:19 2007 for vhdPLUS by  doxygen 1.5.1-p1