NodeSegment Class Reference

#include <NodeSegment.h>

Inheritance diagram for NodeSegment:

Node List of all members.

Public Member Functions

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

Protected Member Functions

virtual ~NodeSegment ()

Detailed Description

According to the Segment H-Anim Proto of the H-Anim1.1 Specification.

  PROTO Segment [
        exposedField   SFString    name                ""
        exposedField   SFFloat     mass                0
        exposedField   SFVec3f     centerOfMass        0 0 0
        field          SFVec3f     bboxCenter          0 0 0
        field          SFVec3f     bboxSize            -1 -1 -1
        exposedField   MFNode      children            [ ]
    ]


Constructor & Destructor Documentation

NodeSegment::NodeSegment ( Scene scene,
Proto proto 
)

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


Member Function Documentation

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

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

Implements Node.

void NodeSegment::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:20 2007 for vhdPLUS by  doxygen 1.5.1-p1