NodeDefBody Class Reference

#include <NodeDefBody.h>

Inheritance diagram for NodeDefBody:

Node List of all members.

Public Member Functions

 NodeDefBody (Scene *scene, Proto *proto)
virtual int getType () const
virtual Nodecopy () const
virtual void setField (int index, FieldValue *value)

Protected Member Functions

virtual ~NodeDefBody ()

Detailed Description

According to the DefBody H-Anim Proto Geometry node (child of H-Anim Segment Proto).

  PROTO DefBody [
	exposedField SFString name "Def"
	exposedField SFVec3f translation 0 0 0

	exposedField SFFloat ambientIntensity 0.2
	exposedField SFColor diffuseColor 0.8 0.8 0.8
	exposedField SFColor emissiveColor 0 0 0
	exposedField SFFloat shininess 0.2
	exposedField SFColor specularColor 0 0 0
	exposedField SFFloat transparency 0

	exposedField SFInt32 NbContours 0
	exposedField SFInt32 NbPoints 0
	exposedField SFInt32 ExtrContour -1
	exposedField SFInt32 FixedUpperDef 0
	exposedField SFInt32 UpperDef 0
	exposedField SFInt32 LowerDef 0

	exposedField MFVec3f Points []
	field MFInt32 PointsIndex []
]


Constructor & Destructor Documentation

NodeDefBody::NodeDefBody ( Scene scene,
Proto proto 
)

NodeDefBody::~NodeDefBody (  )  [protected, virtual]


Member Function Documentation

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

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

Implements Node.

void NodeDefBody::setField ( int  index,
FieldValue value 
) [virtual]

Sets the Field at that index with the specified FieldValue value. Special care is taken if the field is SF-MFNode.

Reimplemented from Node.


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