Open Inventor Reference
|
Node that specifies texture coordinates by projection from a plane. More...
#include <Inventor/nodes/SoTextureCoordinatePlane.h>
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 () |
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)
TextureCoordinatePlane { directionS 1 0 0 directionT 0 1 0 }
Definition at line 111 of file SoTextureCoordinatePlane.h.
SoTextureCoordinatePlane::SoTextureCoordinatePlane | ( | ) |
virtual SoTextureCoordinatePlane::~SoTextureCoordinatePlane | ( | ) | [protected, virtual] |
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.
Definition at line 119 of file SoTextureCoordinatePlane.h.
Definition at line 121 of file SoTextureCoordinatePlane.h.