MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoVertexAttributeNodes.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2011, MeVis Medical Solutions AG
4
**
5
** The user may use this file in accordance with the license agreement provided with
6
** the Software or, alternatively, in accordance with the terms contained in a
7
** written agreement between the user and MeVis Medical Solutions AG.
8
**
9
** For further information use the contact form at https://www.mevislab.de/contact
10
**
11
**************************************************************************************/
12
13
#ifndef SO_VERTEX_ATTRIBUTE_NODES_H
14
#define SO_VERTEX_ATTRIBUTE_NODES_H
15
16
18
19
#include "
SoShaderSystem.h
"
20
#include <Inventor/nodes/SoSubNode.h>
21
#include <
Inventor/elements/SoGLVertexAttributeElement.h
>
22
#include <Inventor/fields/SoSFString.h>
23
#include <Inventor/fields/SoSFBool.h>
24
#include <Inventor/fields/SoMFFloat.h>
25
#include <Inventor/fields/SoMFVec2f.h>
26
#include <Inventor/fields/SoMFVec3f.h>
27
#include <Inventor/fields/SoMFVec4f.h>
28
#include <Inventor/fields/SoMFRotation.h>
29
#include <Inventor/fields/SoMFUInt32.h>
30
#include <Inventor/fields/SoMFInt32.h>
31
33
class
INVENTOR_SHADER_API
SoVertexAttributeBase
:
public
SoNode
34
{
35
typedef
SoNode inherited;
36
37
SO_NODE_HEADER(
SoVertexAttributeBase
);
38
39
public
:
40
SoSFString
name
;
41
42
SoSFBool
perInstance
;
43
45
SoVertexAttributeBase
();
46
47
SoINTERNAL public :
49
static
void
initClass
();
50
51
void
GLRender
(SoGLRenderAction* action)
override
;
52
53
protected
:
54
virtual
void
updateInfo
() {};
55
56
SoVertexAttributeInfo
_info
;
57
};
58
59
//--------------------------------------------------------------------------
61
class
INVENTOR_SHADER_API
SoVertexAttribute1f
:
public
SoVertexAttributeBase
62
{
63
typedef
SoVertexAttributeBase
inherited;
64
65
SO_NODE_HEADER(
SoVertexAttribute1f
);
66
67
public
:
68
SoMFFloat
values
;
69
71
SoVertexAttribute1f
();
72
73
SoINTERNAL public :
75
static
void
initClass
();
76
77
protected
:
78
void
updateInfo
()
override
;
79
};
80
81
//--------------------------------------------------------------------------
83
class
INVENTOR_SHADER_API
SoVertexAttribute2f
:
public
SoVertexAttributeBase
84
{
85
typedef
SoVertexAttributeBase
inherited;
86
87
SO_NODE_HEADER(
SoVertexAttribute2f
);
88
89
public
:
90
SoMFVec2f
values
;
91
93
SoVertexAttribute2f
();
94
95
SoINTERNAL public :
97
static
void
initClass
();
98
99
protected
:
100
void
updateInfo
()
override
;
101
};
102
103
//--------------------------------------------------------------------------
105
class
INVENTOR_SHADER_API
SoVertexAttribute3f
:
public
SoVertexAttributeBase
106
{
107
typedef
SoVertexAttributeBase
inherited;
108
109
SO_NODE_HEADER(
SoVertexAttribute3f
);
110
111
public
:
112
SoMFVec3f
values
;
113
115
SoVertexAttribute3f
();
116
117
SoINTERNAL public :
119
static
void
initClass
();
120
121
protected
:
122
void
updateInfo
()
override
;
123
};
124
125
//--------------------------------------------------------------------------
127
class
INVENTOR_SHADER_API
SoVertexAttribute4f
:
public
SoVertexAttributeBase
128
{
129
typedef
SoVertexAttributeBase
inherited;
130
131
SO_NODE_HEADER(
SoVertexAttribute4f
);
132
133
public
:
134
SoMFVec4f
values
;
135
137
SoVertexAttribute4f
();
138
139
SoINTERNAL public :
141
static
void
initClass
();
142
143
protected
:
144
void
updateInfo
()
override
;
145
};
146
147
//--------------------------------------------------------------------------
149
class
INVENTOR_SHADER_API
SoVertexAttributeRotation
:
public
SoVertexAttributeBase
150
{
151
typedef
SoVertexAttributeBase
inherited;
152
153
SO_NODE_HEADER(
SoVertexAttributeRotation
);
154
155
public
:
156
SoMFRotation
values
;
157
159
SoVertexAttributeRotation
();
160
161
SoINTERNAL public :
163
static
void
initClass
();
164
165
protected
:
166
void
updateInfo
()
override
;
167
};
168
169
//--------------------------------------------------------------------------
171
class
INVENTOR_SHADER_API
SoVertexAttribute1ui
:
public
SoVertexAttributeBase
172
{
173
typedef
SoVertexAttributeBase
inherited;
174
175
SO_NODE_HEADER(
SoVertexAttribute1ui
);
176
177
public
:
178
SoMFUInt32
values
;
179
SoSFBool
normalized
;
180
182
SoVertexAttribute1ui
();
183
184
SoINTERNAL public :
186
static
void
initClass
();
187
188
protected
:
189
void
updateInfo
()
override
;
190
};
191
192
//--------------------------------------------------------------------------
194
class
INVENTOR_SHADER_API
SoVertexAttribute1i
:
public
SoVertexAttributeBase
195
{
196
typedef
SoVertexAttributeBase
inherited;
197
198
SO_NODE_HEADER(
SoVertexAttribute1i
);
199
200
public
:
201
SoMFInt32
values
;
202
SoSFBool
normalized
;
203
205
SoVertexAttribute1i
();
206
207
SoINTERNAL public :
209
static
void
initClass
();
210
211
protected
:
212
void
updateInfo
()
override
;
213
};
214
215
//--------------------------------------------------------------------------
221
class
INVENTOR_SHADER_API
SoVertexAttribute4ub
:
public
SoVertexAttributeBase
222
{
223
typedef
SoVertexAttributeBase
inherited;
224
225
SO_NODE_HEADER(
SoVertexAttribute4ub
);
226
227
public
:
228
SoMFUInt32
values
;
229
SoSFBool
normalized
;
230
232
SoVertexAttribute4ub
();
233
234
SoINTERNAL public :
236
static
void
initClass
();
237
238
protected
:
239
void
updateInfo
()
override
;
240
};
241
242
#endif
SoGLVertexAttributeElement.h
SoShaderSystem.h
INVENTOR_SHADER_API
#define INVENTOR_SHADER_API
Define class export specifier.
Definition
SoShaderSystem.h:20
SoVertexAttribute1f::SoVertexAttribute1f
SoVertexAttribute1f()
Constructor.
SoVertexAttribute1f::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttribute1f::updateInfo
void updateInfo() override
SoVertexAttribute1f::values
SoMFFloat values
Definition
SoVertexAttributeNodes.h:68
SoVertexAttribute1i::SoVertexAttribute1i
SoVertexAttribute1i()
Constructor.
SoVertexAttribute1i::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttribute1i::updateInfo
void updateInfo() override
SoVertexAttribute1i::normalized
SoSFBool normalized
Definition
SoVertexAttributeNodes.h:202
SoVertexAttribute1i::values
SoMFInt32 values
Definition
SoVertexAttributeNodes.h:201
SoVertexAttribute1ui::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttribute1ui::SoVertexAttribute1ui
SoVertexAttribute1ui()
Constructor.
SoVertexAttribute1ui::updateInfo
void updateInfo() override
SoVertexAttribute1ui::normalized
SoSFBool normalized
Definition
SoVertexAttributeNodes.h:179
SoVertexAttribute1ui::values
SoMFUInt32 values
Definition
SoVertexAttributeNodes.h:178
SoVertexAttribute2f::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttribute2f::updateInfo
void updateInfo() override
SoVertexAttribute2f::SoVertexAttribute2f
SoVertexAttribute2f()
Constructor.
SoVertexAttribute2f::values
SoMFVec2f values
Definition
SoVertexAttributeNodes.h:90
SoVertexAttribute3f::values
SoMFVec3f values
Definition
SoVertexAttributeNodes.h:112
SoVertexAttribute3f::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttribute3f::SoVertexAttribute3f
SoVertexAttribute3f()
Constructor.
SoVertexAttribute3f::updateInfo
void updateInfo() override
SoVertexAttribute4f::SoVertexAttribute4f
SoVertexAttribute4f()
Constructor.
SoVertexAttribute4f::values
SoMFVec4f values
Definition
SoVertexAttributeNodes.h:134
SoVertexAttribute4f::updateInfo
void updateInfo() override
SoVertexAttribute4f::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttribute4ub::SoVertexAttribute4ub
SoVertexAttribute4ub()
Constructor.
SoVertexAttribute4ub::updateInfo
void updateInfo() override
SoVertexAttribute4ub::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttribute4ub::normalized
SoSFBool normalized
Definition
SoVertexAttributeNodes.h:229
SoVertexAttribute4ub::values
SoMFUInt32 values
Definition
SoVertexAttributeNodes.h:228
SoVertexAttributeBase::updateInfo
virtual void updateInfo()
Definition
SoVertexAttributeNodes.h:54
SoVertexAttributeBase::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttributeBase::_info
SoVertexAttributeInfo _info
Definition
SoVertexAttributeNodes.h:56
SoVertexAttributeBase::perInstance
SoSFBool perInstance
Definition
SoVertexAttributeNodes.h:42
SoVertexAttributeBase::GLRender
void GLRender(SoGLRenderAction *action) override
SoVertexAttributeBase::name
SoSFString name
Definition
SoVertexAttributeNodes.h:40
SoVertexAttributeBase::SoVertexAttributeBase
SoVertexAttributeBase()
Constructor.
SoVertexAttributeRotation::updateInfo
void updateInfo() override
SoVertexAttributeRotation::initClass
static void initClass()
Initialize class with runtime type system.
SoVertexAttributeRotation::SoVertexAttributeRotation
SoVertexAttributeRotation()
Constructor.
SoVertexAttributeRotation::values
SoMFRotation values
Definition
SoVertexAttributeNodes.h:156
SoVertexAttributeInfo
Open Inventor element storing a list of vertex attributes.
Definition
SoGLVertexAttributeElement.h:27
MeVisLab
Standard
Sources
Inventor
SoShader
Inventor
nodes
SoVertexAttributeNodes.h
Generated by
1.18.0