inventor.FieldContainer
class FieldContainer(object)
Base class for scene objects of type SoFieldContainer.All field values and node kit parts are dynamically added as class attributes. Please refer to the Open Inventor documentation for the fields of each scene object type. Use the get_field() function to manage field connections, see also:
- Field: Object representing a field.
- EngineOutput: Object representing an engine output.
Methods defined here:
check_type(...)
Checks if a scene object is derived form a given type.
Args:
-
Name of type to check for as string.
Returns:
-
True if the instance is derived from the given type.
enable_notify(...)
Enables or disables change notifications for a scene object.
Args:
-
Boolean value indicating if notifications are enabled (True)
or not (False).
get(...)
Returns a field or part by name.
Args:
- name: Field or part name to be returned.
- createIfNeeded: For node kit parts the second parameter controls if the named part should be created if is doesn't exist yet.
Returns:
-
Field or node kit part if name is given. If no name is passed all
field values are returned as string.
get_field(...)
Returns a field object by name or list of all fields.
Returns:
-
Field matching the provided name or list of all fields if no name
was given.
get_name(...)
Returns the instance name of a scene object.
Returns:
-
String containing scene object name.
get_type(...)
Return the type name of a scene object.
Returns:
-
String containing scene object type.
internal_pointer(...)
Return the internal field container pointer.
Returns:
-
Internal pointer to field container instance.
set(...)
Initializes fields or parts of a node kit.
Args:
-
Initialization string containing field names and values.
set_name(...)
Sets the instance name of a scene object.
Args:
-
Name for scene object instance.
touch(...)
Marks a scene object as modified.