H3D::Contour2D Class Reference

The Contour2D node groups a set of curve segments to a composite contour. More...

#include <H3D/Contour2D.h>

Inheritance diagram for H3D::Contour2D:

Inheritance graph

List of all members.

Classes

class  AddTheChildren
 This field class checks whether the given node is of the right type (ContourPolyline2D or NurbsCurve2D). More...
class  CheckTheChildren
 This field class checks whether the given Node is of the right type (ContourPolyline2D or NurbsCurve2D) for adding or removing. More...
class  RemoveTheChildren
 This field class checks whether the given node is of the right type (ContourPolyline2D or NurbsCurve2D). More...

Public Member Functions

void renderTrimmedCurve (GLUnurbsObj *nurbs_object)
 Make the check of the curve and call OpenGL routines to render it.
 Contour2D (Inst< SFNode > _metadata=0, Inst< AddTheChildren > _addChildren=0, Inst< RemoveTheChildren > _removeChildren=0, Inst< CheckTheChildren > _children=0)
 Constructor.

Public Attributes

auto_ptr< AddTheChildrenaddChildren
 Adds a node to the children field if it is the correct type of Node.
auto_ptr< RemoveTheChildrenremoveChildren
 Removes a node from the children field if it is the correct type of Node.
auto_ptr< CheckTheChildrenchildren
 Contains the curves making up the contour.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The Contour2D node groups a set of curve segments to a composite contour.

The children shall form a closed loop with the first point of the first child repeated as the last point of the last child and the last point of a segment repeated as the first point of the consecutive one. The segments shall be defined by concrete nodes that implement the X3DNurbsControlCurveNode abstract type nodes and shall be enumerated in the child field in consecutive order according to the topology of the contour.

The 2D coordinates used by the node shall be interpreted to lie in the (u, v) coordinate space defined by the NURBS surface.

Internal routes:
Contour2D.dot

Member Data Documentation

Adds a node to the children field if it is the correct type of Node.

Access type: inputOnly

Contour2D_addChildren.dot

Contains the curves making up the contour.

Access type: inputOutput

Contour2D_children.dot

Referenced by renderTrimmedCurve().

Removes a node from the children field if it is the correct type of Node.

Access type: inputOnly

Contour2D_removeChildren.dot


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:29:36 2008 for H3D API by  doxygen 1.5.7