NodeSphere Class Reference

#include <NodeSphere.h>

Inheritance diagram for NodeSphere:

Node List of all members.

Public Member Functions

 NodeSphere (Scene *scene, Proto *proto)
virtual ~NodeSphere ()
virtual int getType () const
virtual Node * copy () const
virtual int getNodeClass () const
virtual void draw ()

Detailed Description

According to the Sphere Node of VRML97 specification.

  Sphere { 
  field SFFloat radius  1    # (0,)
}


Constructor & Destructor Documentation

NodeSphere::NodeSphere ( Scene *  scene,
Proto *  proto 
)

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


Member Function Documentation

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

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

Implements Node.

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

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

Reimplemented from Node.

void NodeSphere::draw (  )  [virtual]

To be overriden by the subclasses

Reimplemented from Node.


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