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

The tessellation process generates 2D texture coordinates. More...

#include <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 ()
 For this node it is "texCoord".

Public Attributes

auto_ptr< MFVec2fcontrolPoint
 Access type: inputOutput

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.

Protected Attributes

GLfloat * withWeights
GLfloat * u_knots
GLfloat * v_knots

Detailed Description

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 Data Documentation

auto_ptr< MFVec2f > H3D::NurbsTextureCoordinate::controlPoint
 

Access type: inputOutput

NurbsTextureCoordinate_controlPoint.dot

auto_ptr< SFInt32 > H3D::NurbsTextureCoordinate::uDimension
 

Defines the number of control points in the u dimension.

Access type: inputOutput
Default value: 0

NurbsTextureCoordinate_uDimension.dot

auto_ptr< MFDouble > H3D::NurbsTextureCoordinate::uKnot
 

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

Access type: inputOutput

NurbsTextureCoordinate_uKnot.dot

auto_ptr< SFInt32 > H3D::NurbsTextureCoordinate::uOrder
 

Defines the order of the surface in the u dimension.

Access type: inputOutput
Default value: 3

NurbsTextureCoordinate_uOrder.dot

auto_ptr< SFInt32 > H3D::NurbsTextureCoordinate::vDimension
 

Defines the number of control points in the v dimension.

Access type: inputOutput
Default value: 0

NurbsTextureCoordinate_vDimension.dot

auto_ptr< MFDouble > H3D::NurbsTextureCoordinate::vKnot
 

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

Access type: inputOutput

NurbsTextureCoordinate_vKnot.dot

auto_ptr< SFInt32 > H3D::NurbsTextureCoordinate::vOrder
 

Defines the order of the surface in the v dimension.

Access type: inputOutput
Default value: 3

NurbsTextureCoordinate_vOrder.dot

auto_ptr< MFFloat > H3D::NurbsTextureCoordinate::weight
 

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


Generated on Thu Aug 24 12:39:44 2006 for H3D API by  doxygen 1.4.5