1SoTexture2Transform(3IV)()                          SoTexture2Transform(3IV)()
2
3
4

NAME

6       SoTexture2Transform — 2D texture transformation node
7

INHERITS FROM

9       SoBase > SoFieldContainer > SoNode > SoTexture2Transform
10

SYNOPSIS

12       #include <Inventor/nodes/SoTexture2Transform.h>
13
14          Fields from class SoTexture2Transform:
15
16     SoSFVec2f           translation
17     SoSFFloat           rotation
18     SoSFVec2f           scaleFactor
19     SoSFVec2f           center
20
21          Methods from class SoTexture2Transform:
22
23                         SoTexture2Transform()
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

DESCRIPTION

64       This  node  defines a 2D transformation applied to texture coordinates.
65       This affects the way textures are applied to the surfaces of subsequent
66       shapes.  The  transformation consists of (in order) a non-uniform scale
67       about an arbitrary center point, a rotation about that same point,  and
68       a  translation.  (Note:  while the transformations can be thought of as
69       being applied in that order, the GL matrices are actually premultiplied
70       in  the  opposite  order.  Therefore,  the operations are listed in the
71       reverse order throughout this reference page.) This allows  a  user  to
72       change the size and position of the textures on objects.
73

FIELDS

75     SoSFVec2f           translation
76          Translation in S and T.
77
78     SoSFFloat           rotation
79          Counter-clockwise rotation of the coordinate space, in radians. This
80          results in a clockwise rotation of the texture on the object.
81
82     SoSFVec2f           scaleFactor
83          Scaling factors in S and T.
84
85     SoSFVec2f           center
86          Center point used for scaling and rotation.
87
88

METHODS

90                         SoTexture2Transform()
91          Creates a texture transformation node with default settings.
92
93     static SoType       getClassTypeId()
94          Returns type identifier for this class.
95
96

ACTION BEHAVIOR

98       SoGLRenderAction, SoCallbackAction
99          Concatenates transformation with the current texture transformation.
100
101

FILE FORMAT/DEFAULTS

103       Texture2Transform {
104          translation  0 0
105          rotation     0
106          scaleFactor  1 1
107          center       0 0
108     }
109

SEE ALSO

111       SoTexture2, SoTextureCoordinate2, SoTextureCoordinateFunction
112
113
114
115
116                                                    SoTexture2Transform(3IV)()
Impressum