ProtoNode Class Reference

#include <Proto.h>

Inheritance diagram for ProtoNode:

Node List of all members.

Public Member Functions

 ProtoNode (Scene *scene, Proto *proto)
virtual ~ProtoNode ()
virtual int getType () const
virtual Nodecopy () const

Detailed Description

The Proto class when calls create(Scence*) it returns a ProtoNode(Node) object. In the same manner a ProtoGroup(Proto) class when calls the overriden create(Scene*) a NodeGroup(Node) is returned.


Constructor & Destructor Documentation

ProtoNode::ProtoNode ( Scene scene,
Proto proto 
)

ProtoNode empty constructor(to be overriden). The method "Node *Proto::create(Scene *scene)" of the Proto Class returns a ProtoNode (which is also a Node) at the request of the parser to create a new Node. That is the intermediate step, between the chain creation of the VRML node in this parser: Proto+(ProtoNode)->Node.

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


Member Function Documentation

virtual int ProtoNode::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* ProtoNode::copy (  )  const [inline, virtual]

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

Implements Node.


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