H3D::NurbsTextureCoordinate Class Reference
[X3D node classes.]

The NurbsTextureCoordinate node is a NURBS surface existing in the parametric domain of its surface host specifying the mapping of the texture onto the surface. More...

#include <H3D/NurbsTextureCoordinate.h>

Inheritance diagram for H3D::NurbsTextureCoordinate:

Inheritance graph

List of all members.

Public Member Functions

void renderTexForNurbs (GLUnurbsObj *nurbs_object)
 Calls OpenGL routines to render the texture.
 ~NurbsTextureCoordinate ()
 Destructor.
 NurbsTextureCoordinate (Inst< SFNode > _metadata=0, Inst< MFVec2f > _controlPoint=0, Inst< MFFloat > _weight=0, Inst< SFInt32 > _uDimension=0, Inst< SFInt32 > _vDimension=0, Inst< MFDouble > _uKnot=0, Inst< MFDouble > _vKnot=0, Inst< SFInt32 > _uOrder=0, Inst< SFInt32 > _vOrder=0)
 Constructor.
virtual string defaultXMLContainerField ()
 Returns the default xml containerField attribute value.

Public Attributes

auto_ptr< MFVec2fcontrolPoint
 controlPoint defines a set of control points of dimension uDimension vDimension.
auto_ptr< MFFloatweight
 A weight value that shall be greater than zero is assigned to each controlPoint.
auto_ptr< SFInt32uDimension
 Defines the number of control points in the u dimension.
auto_ptr< SFInt32vDimension
 Defines the number of control points in the v dimension.
auto_ptr< MFDoubleuKnot
 Defines the knot values of the surface in the u dimension.
auto_ptr< MFDoublevKnot
 Defines the knot values of the surface in the v dimension.
auto_ptr< SFInt32uOrder
 Defines the order of the surface in the u dimension.
auto_ptr< SFInt32vOrder
 Defines the order of the surface in the v dimension.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The NurbsTextureCoordinate node is a NURBS surface existing in the parametric domain of its surface host specifying the mapping of the texture onto the surface.

Internal routes:
NurbsTextureCoordinate.dot
The parameters are as specified in NurbsTextureCoordinate with the exception that the control points are specified in (u, v) coordinates.

The tessellation process generates 2D texture coordinates. If a NurbsTextureCoordinate is undefined, texture coordinates are computed by the client on the basis of parametric step size. Conventional vertex parameters do not apply on NURBS surfaces because triangles are only available after polygonalization. However, the conventional texture transform may be used.

NurbsTextureCoordinate nodes are accessed through the texCoord field of a node derived from NurbsTextureCoordinate. A NurbsTextureCoordinate node separately encountered is ignored.


Member Function Documentation

virtual string H3D::NurbsTextureCoordinate::defaultXMLContainerField (  )  [inline, virtual]

Returns the default xml containerField attribute value.

For this node it is "texCoord".

Reimplemented from H3D::Node.


Member Data Documentation

controlPoint defines a set of control points of dimension uDimension vDimension.

This set of points defines a mesh where the points do not have a uniform spacing. uDimension points define a polyline in u-direction followed by further u-polylines with the v-parameter in ascending order. The number of control points shall be equal or greater than the order. The control points are specified as (u, v) coordinates in this node.

Access type: inputOutput

NurbsTextureCoordinate_controlPoint.dot

Referenced by NurbsTextureCoordinate(), and renderTexForNurbs().

Defines the number of control points in the u dimension.

Access type: inputOutput
Default value: 0

NurbsTextureCoordinate_uDimension.dot

Referenced by NurbsTextureCoordinate(), and renderTexForNurbs().

Defines the knot values of the surface in the u dimension.

Access type: inputOutput

NurbsTextureCoordinate_uKnot.dot

Referenced by NurbsTextureCoordinate(), and renderTexForNurbs().

Defines the order of the surface in the u dimension.

Access type: inputOutput
Default value: 3

NurbsTextureCoordinate_uOrder.dot

Referenced by NurbsTextureCoordinate(), and renderTexForNurbs().

Defines the number of control points in the v dimension.

Access type: inputOutput
Default value: 0

NurbsTextureCoordinate_vDimension.dot

Referenced by NurbsTextureCoordinate(), and renderTexForNurbs().

Defines the knot values of the surface in the v dimension.

Access type: inputOutput

NurbsTextureCoordinate_vKnot.dot

Referenced by NurbsTextureCoordinate(), and renderTexForNurbs().

Defines the order of the surface in the v dimension.

Access type: inputOutput
Default value: 3

NurbsTextureCoordinate_vOrder.dot

Referenced by NurbsTextureCoordinate(), and renderTexForNurbs().

A weight value that shall be greater than zero is assigned to each controlPoint.

The ordering of the values is equivalent to the ordering of the control point values. The number of values shall be identical to the number of control points. If the length of the weight vector is 0, the default weight 1.0 is assumed for each control point, thus defining a non-Rational curve. If the number of weight values is less than the number of control points, all weight values shall be ignored and a value of 1.0 shall be used.

Access type: inputOutput

NurbsTextureCoordinate_weight.dot

Referenced by NurbsTextureCoordinate(), and renderTexForNurbs().


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

Generated on Fri Nov 7 10:30:40 2008 for H3D API by  doxygen 1.5.7