man SoTextureCoordinatePlane () - node that specifies texture coordinates by projection from a plane

NAME

SoTextureCoordinatePlane - node that specifies texture coordinates by projection from a plane

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoTextureCoordinateFunction > SoTextureCoordinatePlane

SYNOPSIS

#include <Inventor/nodes/SoTextureCoordinatePlane.h> Fields from class SoTextureCoordinatePlane: c } c } directionS

c } c } directionT Methods from class SoTextureCoordinatePlane: c } c } SoTextureCoordinatePlane()

c } c } getClassTypeId() Methods from class SoNode: c } c } setOverride(SbBool state)

c } c } isOverride() const

c } c } copy(SbBool copyConnections = FALSE) const

c } c } affectsState() const

c } c } getByName(const SbName &name)

c } c } getByName(const SbName &name, SoNodeList &list) Methods from class SoFieldContainer: c } c } setToDefaults()

c } c } hasDefaultValues() const

c } c } fieldsAreEqual(const SoFieldContainer *fc) const

c } c } copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)

c } c } set(const char *fieldDataString)

c } c } get(SbString &fieldDataString)

c } c } getFields(SoFieldList &resultList) const

c } c } getField(const SbName &fieldName) const

c } c } getFieldName(const SoField *field, SbName &fieldName) const

c } c } isNotifyEnabled() const

c } c } enableNotify(SbBool flag) Methods from class SoBase: c } c } ref()

c } c } unref() const

c } c } unrefNoDelete() const

c } c } touch()

c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setName(const SbName &name)

c } c } getName() const

DESCRIPTION

This node creates texture coordinates for points on an object's surface by projecting them onto a plane. The directionS and directionT fields define the plane. The S coordinate is computed as the distance from the object-space origin along the vector specified in the directionS field. The T coordinate is computed similarly, using the directionT field. The length of the direction vector is also taken into account. For example, assume directionS is (0.5, 0, 0) and directionT is (0, 1, 0). The square defined by the (x, y, z) vertices:

(-1, -1, 0) (1, -1, 0) (1, 1, 0) (-1, 1, 0)

will be assigned the (s, t) texture coordinates:

(-2, -1) (2, -1) (2, 1) (-2, 1)

FIELDS

c } c } directionS

c } c } directionT

Directions of projection for S and T coordinates.

METHODS

c } c } SoTextureCoordinatePlane()

Creates a texture function node with default settings. c } c } getClassTypeId()

Returns type identifier for this class.

ACTION BEHAVIOR

SoGLRenderAction, SoCallbackAction, SoRayPickAction

Sets the current texture function in the state.

FILE FORMAT/DEFAULTS

TextureCoordinatePlane {
directionS	1 0 0
directionT	0 1 0
}

SEE ALSO

SoTexture2, SoTexture2Transform, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment