1SoTextureCoordinate2(3IV)()                        SoTextureCoordinate2(3IV)()
2
3
4

NAME

6       SoTextureCoordinate2 — 2D texture coordinate node
7

INHERITS FROM

9       SoBase > SoFieldContainer > SoNode > SoTextureCoordinate2
10

SYNOPSIS

12       #include <Inventor/nodes/SoTextureCoordinate2.h>
13
14          Fields from class SoTextureCoordinate2:
15
16     SoMFVec2f           point
17
18          Methods from class SoTextureCoordinate2:
19
20                         SoTextureCoordinate2()
21     static SoType       getClassTypeId()
22
23          Methods from class SoNode:
24
25     void                setOverride(SbBool state)
26     SbBool              isOverride() const
27     SoNode *            copy(SbBool copyConnections = FALSE) const
28     virtual SbBool      affectsState() const
29     static SoNode *     getByName(const SbName &name)
30     static int          getByName(const SbName &name, SoNodeList &list)
31
32          Methods from class SoFieldContainer:
33
34     void                setToDefaults()
35     SbBool              hasDefaultValues() const
36     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
37     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
38                              copyConnections = FALSE)
39     SbBool              set(const char *fieldDataString)
40     void                get(SbString &fieldDataString)
41     virtual int         getFields(SoFieldList &resultList) const
42     virtual SoField *   getField(const SbName &fieldName) const
43     SbBool              getFieldName(const SoField *field, SbName &fieldName)
44                              const
45     SbBool              isNotifyEnabled() const
46     SbBool              enableNotify(SbBool flag)
47
48          Methods from class SoBase:
49
50     void                ref()
51     void                unref() const
52     void                unrefNoDelete() const
53     void                touch()
54     virtual SoType      getTypeId() const
55     SbBool              isOfType(SoType type) const
56     virtual void        setName(const SbName &name)
57     virtual SbName      getName() const
58
59

DESCRIPTION

61       This node defines a set of 2D coordinates to be used to map textures to
62       subsequent vertex-based shapes (those derived from  SoVertexShape).  It
63       replaces the current texture coordinates in the rendering state for the
64       shapes to use.
65
66       The current texture coordinate binding (see SoTextureCoordinateBinding)
67       determines how texture coordinates are mapped to vertices of shapes. An
68       alternative to using explicit texture coordinates is to  generate  them
69       using a function; see SoTextureCoordinateFunction.
70
71       Texture  coordinates range from 0 to 1 across the texture. The horizon‐
72       tal coordinate, called S, is specified first, followed by the  vertical
73       coordinate, T.
74

FIELDS

76     SoMFVec2f           point
77          Texture coordinate points.
78
79

METHODS

81                         SoTextureCoordinate2()
82          Creates a texture coordinate node with default settings.
83
84     static SoType       getClassTypeId()
85          Returns type identifier for this class.
86
87

ACTION BEHAVIOR

89       SoGLRenderAction, SoCallbackAction
90          Sets the current texture coordinates in the state.
91
92

FILE FORMAT/DEFAULTS

94       TextureCoordinate2 {
95          point  [  ]
96     }
97

SEE ALSO

99       SoTexture2,   SoTextureCoordinateBinding,  SoTextureCoordinateFunction,
100       SoVertexShape
101
102
103
104
105                                                   SoTextureCoordinate2(3IV)()
Impressum