1SoTextureCoordinatePlane(3IV)() SoTextureCoordinatePlane(3IV)()
2
3
4
6 SoTextureCoordinatePlane — node that specifies texture coordinates by
7 projection from a plane
8
10 SoBase > SoFieldContainer > SoNode > SoTextureCoordinateFunction >
11 SoTextureCoordinatePlane
12
14 #include <Inventor/nodes/SoTextureCoordinatePlane.h>
15
16 Fields from class SoTextureCoordinatePlane:
17
18 SoSFVec3f directionS
19 SoSFVec3f directionT
20
21 Methods from class SoTextureCoordinatePlane:
22
23 SoTextureCoordinatePlane()
24 static SoType getClassTypeId()
25
26 Methods from class SoNode:
27
28 void setOverride(SbBool state)
29 SbBool isOverride() const
30 SoNode * copy(SbBool copyConnections = FALSE) const
31 virtual SbBool affectsState() const
32 static SoNode * getByName(const SbName &name)
33 static int getByName(const SbName &name, SoNodeList &list)
34
35 Methods from class SoFieldContainer:
36
37 void setToDefaults()
38 SbBool hasDefaultValues() const
39 SbBool fieldsAreEqual(const SoFieldContainer *fc) const
40 void copyFieldValues(const SoFieldContainer *fc, SbBool
41 copyConnections = FALSE)
42 SbBool set(const char *fieldDataString)
43 void get(SbString &fieldDataString)
44 virtual int getFields(SoFieldList &resultList) const
45 virtual SoField * getField(const SbName &fieldName) const
46 SbBool getFieldName(const SoField *field, SbName &fieldName)
47 const
48 SbBool isNotifyEnabled() const
49 SbBool enableNotify(SbBool flag)
50
51 Methods from class SoBase:
52
53 void ref()
54 void unref() const
55 void unrefNoDelete() const
56 void touch()
57 virtual SoType getTypeId() const
58 SbBool isOfType(SoType type) const
59 virtual void setName(const SbName &name)
60 virtual SbName getName() const
61
62
64 This node creates texture coordinates for points on an object's surface
65 by projecting them onto a plane. The directionS and directionT fields
66 define the plane. The S coordinate is computed as the distance from the
67 object-space origin along the vector specified in the directionS field.
68 The T coordinate is computed similarly, using the directionT field.
69
70 The length of the direction vector is also taken into account. For
71 example, assume directionS is (0.5, 0, 0) and directionT is (0, 1, 0).
72 The square defined by the (x, y, z) vertices:
73
74 (-1, -1, 0) (1, -1, 0) (1, 1, 0) (-1, 1, 0)
75
76 will be assigned the (s, t) texture coordinates:
77
78 (-2, -1) (2, -1) (2, 1) (-2, 1)
79
80
81
83 SoSFVec3f directionS
84 SoSFVec3f directionT
85 Directions of projection for S and T coordinates.
86
87
89 SoTextureCoordinatePlane()
90 Creates a texture function node with default settings.
91
92 static SoType getClassTypeId()
93 Returns type identifier for this class.
94
95
97 SoGLRenderAction, SoCallbackAction, SoRayPickAction
98 Sets the current texture function in the state.
99
100
102 TextureCoordinatePlane {
103 directionS 1 0 0
104 directionT 0 1 0
105 }
106
108 SoTexture2, SoTexture2Transform, SoTextureCoordinateDefault, SoTexture‐
109 CoordinateEnvironment
110
111
112
113
114 SoTextureCoordinatePlane(3IV)()