The vrFieldAccess class offers access to any kind of data (fields)
inside the scenegraph (regardless if it is a node, a geometry, material
etc.). You get access to the fieldpointer within the materials or nodes
via the fields()-method.
The names of the fields can be found in the node editor. The type of a
field is shown in a tool tip when hovering over the right side column in
the table of the Node Editor.
A type beginning with 'SF...' stands for Single field, it holds a
single value or object. For example, 'SFInt8' means the field holds an 8
bit int value. It can be accessed with setInt8 and getInt8.
A type beginning with 'MF...' means it is a multi-field. A multi field
is a list of values or objects. For example, 'MFString' is a list of
strings.The methods for multi fields start with getM... or setM..., for
example setMString and getMString for a string multi field.
|
__init__(source)
The constructor of the FieldContainerPtr class. |
|
|
|
|
bool
|
addAttachment(attachment)
Adds an attachment to an AttachmentContainer. |
|
|
FieldContainerPtr
|
|
bool
|
getBool(fname)
Returns the value of a bool field. |
|
|
list of floats (32bit)
|
getColor(fname,
d)
Returns the value of a color field. |
|
|
FieldContainerPtr
|
|
unsigned int (32bit)
|
|
unsigned int (32bit)
|
|
GLenum
|
getGLenum(fname)
Returns the value of a GLenum field. |
|
|
unsigned int (32bit)
|
getID()
Returns the internal id of the field container. |
|
|
int (16bit)
|
getInt16(fname)
Returns the value of a short field (16bit signed). |
|
|
int (32bit)
|
getInt32(fname)
Returns the value of an int field (32bit signed). |
|
|
int (64bit)
|
getInt64(fname)
Returns the value of an int field (64bit signed). |
|
|
int (8bit)
|
getInt8(fname)
Returns the value of a short field (8bit signed). |
|
|
list of booleans
|
getMBool(fname)
Returns the values of a boolean multi field. |
|
|
list of Color3fs
|
getMColor3f(fname)
Returns the values of a Color3f multi field. |
|
|
list of Color4fs
|
getMColor4f(fname)
Returns the values of a Color4f multi field. |
|
|
list of FieldContainerPtrs
|
|
list of unsigned ints (32bit)
|
|
list of GLenums
|
getMGLenum(fname)
Returns the values of a GLenum multi field. |
|
|
list of integers (signed 16 bit)
|
getMInt16(fname)
Returns the values of an integer multi field. |
|
|
list of integers (signed 32 bit)
|
getMInt32(fname)
Returns the values of an integer multi field. |
|
|
list of integers (signed 64 bit)
|
getMInt64(fname)
Returns the values of an integer multi field. |
|
|
list of integers (signed 8 bit)
|
getMInt8(fname)
Returns the values of an integer multi field. |
|
|
list of Pnt2fs
|
getMPnt2f(fname)
Returns the values of a Pnt2f multi field. |
|
|
list of Pnt3fs
|
getMPnt3f(fname)
Returns the values of a Pnt3f multi field. |
|
|
list of Pnt4fs
|
getMPnt4f(fname)
Returns the values of a Pnt4f multi field. |
|
|
list of floats (32 bit)
|
getMReal32(fname)
Returns the values of a float multi field. |
|
|
list of floats (64 bit)
|
getMReal64(fname)
Returns the values of a float multi field. |
|
|
list of strings
|
getMString(fname)
Returns the values of a string multi field. |
|
|
list of unsigned ints (16 bit)
|
getMUInt16(fname)
Returns the values of an unsigned int multi field. |
|
|
list of unsigned ints (32 bit)
|
getMUInt32(fname)
Returns the values of an unsigned int multi field. |
|
|
list of unsigned ints (64 bit)
|
getMUInt64(fname)
Returns the values of an unsigned int multi field. |
|
|
list of unsigned ints (8 bit)
|
getMUInt8(fname)
Returns the values of an unsigned int multi field. |
|
|
list of Vec2fs
|
getMVec2f(fname)
Returns the values of a Vec2f multi field. |
|
|
list of Vec3fs
|
getMVec3f(fname)
Returns the values of a Vec3f multi field. |
|
|
list of Vec4fs
|
getMVec4f(fname)
Returns the values of a Vec4f multi field. |
|
|
list of floats (32bit)
|
getMatrix(fname)
Returns the value of a matrix field. |
|
|
NodePtr
|
getNode(fname)
Returns the value of a node field. |
|
|
list of floats (32bit)
|
getPnt(fname,
d)
Returns the value of a point field. |
|
|
float (32bit)
|
getReal32(fname)
Returns the value of a float field (32bit). |
|
|
float (64bit)
|
getReal64(fname)
Returns the value of a double field (64bit). |
|
|
string
|
getString(fname)
Returns the value of a string field. |
|
|
time (float 64bit)
|
getTime(fname)
Returns the value of a time field (64bit). |
|
|
unsigned int (16bit)
|
getUInt16(fname)
Returns the value of an unsigned short field (16bit unsigned). |
|
|
unsigned int (32bit)
|
getUInt32(fname)
Returns the value of an unsigned int field (32bit unsigned). |
|
|
unsigned int (64bit)
|
getUInt64(fname)
Returns the value of an unsigned int field (64bit unsigned). |
|
|
unsigned int (8bit)
|
getUInt8(fname)
Returns the value of an unsigned short field (8bit unsigned). |
|
|
list of floats (32bit)
|
getVec(fname,
d)
Returns the value of a vector field. |
|
|
bool
|
hasAttachment(fname)
Checks the existence of an attachment via name. |
|
|
bool
|
hasField(fname)
Checks the existence of a field via name. |
|
|
bool
|
isValid()
Returns true if the FieldContainer is valid. |
|
|
|
setBool(fname,
v)
Sets the value of a bool field. |
|
|
|
setColor(fname,
v)
Sets an n-dimensional color field (n in [3,4]). |
|
|
|
setColor4f(fname,
r,
g,
b,
a)
Sets a 4-dimensional color field. |
|
|
|
|
|
|
|
setGLenum(fname,
v)
Sets the value of a GLenum field. |
|
|
|
setInt16(fname,
v)
Sets the value of a short field. |
|
|
|
setInt32(fname,
v)
Sets the value of an int field. |
|
|
|
setInt64(fname,
v)
Sets the value of an int field. |
|
|
|
setInt8(fname,
v)
Sets the value of a byte field. |
|
|
|
setMBool(fname,
v)
Sets the value of a bool multi field. |
|
|
|
setMColor3f(fname,
v)
Sets the value of a Color3f multi field. |
|
|
|
setMColor4f(fname,
v)
Sets the value of a Color4f multi field. |
|
|
|
|
|
|
|
setMGLenum(fname,
v)
Sets the value of a GLenum multi field. |
|
|
|
setMInt16(fname,
v)
Sets the value of an int multi field. |
|
|
|
setMInt32(fname,
v)
Sets the value of an integer multi field. |
|
|
|
setMInt64(fname,
v)
Sets the value of an integer multi field. |
|
|
|
setMInt8(fname,
v)
Sets the value of an int multi field. |
|
|
|
setMPnt2f(fname,
v)
Sets the value of a Pnt2f multi field. |
|
|
|
setMPnt3f(fname,
v)
Sets the value of a Pnt3f multi field. |
|
|
|
setMPnt4f(fname,
v)
Sets the value of a Pnt4f multi field. |
|
|
|
setMReal32(fname,
v)
Sets the value of a float multi field. |
|
|
|
setMReal64(fname,
v)
Sets the value of a float multi field. |
|
|
|
setMString(fname,
v)
Sets the value of a string multi field. |
|
|
|
setMUInt16(fname,
v)
Sets the value of an unsigned int multi field. |
|
|
|
setMUInt32(fname,
v)
Sets the value of a unsigned int multi field. |
|
|
|
setMUInt64(fname,
v)
Sets the value of a unsigned int multi field. |
|
|
|
setMUInt8(fname,
v)
Sets the value of an unsigned int multi field. |
|
|
|
setMVec2f(fname,
v)
Sets the value of a Vec2f multi field. |
|
|
|
setMVec3f(fname,
v)
Sets the value of a Vec3f multi field. |
|
|
|
setMVec4f(fname,
v)
Sets the value of a Vec4f multi field. |
|
|
|
setMatrix(fname,
v,
transposed)
Sets an 16-dimensional matrix field. |
|
|
|
setNode(fname,
v)
Sets the value of a node field. |
|
|
|
setPnt(fname,
v)
Sets the value of an n-dimensional point field (n in [2,4]). |
|
|
|
setPnt2f(fname,
x,
y)
Sets the value of a 2-dimensional point field. |
|
|
|
setPnt3f(fname,
x,
y,
z)
Sets the value of a 3-dimensional point field. |
|
|
|
setReal32(fname,
v)
Sets the value of a float field. |
|
|
|
setReal64(fname,
v)
Sets the value of a double field. |
|
|
|
setString(fname,
v)
Sets the value of a string field. |
|
|
|
setTime(fname,
v)
Sets the value of a time field. |
|
|
|
setUInt16(fname,
v)
Sets the value of an unsigned short field. |
|
|
|
setUInt32(fname,
v)
Sets the value of an unsigned int field. |
|
|
|
setUInt64(fname,
v)
Sets the value of an unsigned int field. |
|
|
|
setUInt8(fname,
v)
Sets the value of an unsigned byte field. |
|
|
|
setVec(fname,
v)
Sets the value of an n-dimensional vector field (n in [2,4]). |
|
|
|
setVec2f(fname,
x,
y)
Sets the value of a 2-dimensional vector field. |
|
|
|
setVec3f(fname,
x,
y,
z)
Sets the value of a 3-dimensional vector field. |
|
|
|
setVec4f(fname,
x,
y,
z,
w)
Sets the value of a 4-dimensional vector field. |
|
|
bool
|
subAttachment(attachment)
Removes an attachment from the AttachmentContainer. |
|
|
Inherited from unreachable.instance :
__new__
|