Open Inventor Reference
SoTextureCoordinatePlane Class Reference

Node that specifies texture coordinates by projection from a plane. More...

#include <Inventor/nodes/SoTextureCoordinatePlane.h>

Inheritance diagram for SoTextureCoordinatePlane:
SoTextureCoordinateFunction SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoTextureCoordinatePlane ()
 Creates a texture function node with default settings.
void GLRender (SoGLRenderAction *action)
 These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing.
void pick (SoPickAction *action)
void callback (SoCallbackAction *action)
void doAction (SoAction *action)
 This method performs the "typical" operation of a node for any action.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFVec3f directionS
 S coordinates projection direction.
SoSFVec3f directionT
 T coordinates projection direction.

Protected Member Functions

virtual ~SoTextureCoordinatePlane ()

Detailed 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)
File Format/Default
TextureCoordinatePlane {
  directionS 1 0 0
  directionT 0 1 0
}
Action Behavior
SoGLRenderAction, SoCallbackAction, SoRayPickAction
Sets the current texture function in the state.
See Also
SoTexture2, SoTexture2Transform, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment

Definition at line 111 of file SoTextureCoordinatePlane.h.


Constructor & Destructor Documentation

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

Member Function Documentation

void SoTextureCoordinatePlane::callback ( SoCallbackAction action) [virtual]

Reimplemented from SoNode.

void SoTextureCoordinatePlane::doAction ( SoAction action) [virtual]

The default implementation does nothing.

Reimplemented from SoNode.

void SoTextureCoordinatePlane::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoNode.

static void SoTextureCoordinatePlane::initClass ( ) [static]

Reimplemented from SoTextureCoordinateFunction.

void SoTextureCoordinatePlane::pick ( SoPickAction action) [virtual]

Reimplemented from SoNode.


Member Data Documentation


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