inventor.Node
class Node(FieldContainer)
Base class for scene objects of type SoNode. Note that children of group nodes can be accessed as Python sequences, including indexing, slicing, len and del operators.Method resolution order:
- Node
- FieldContainer
- object
Methods defined here:
append(...)
Appends a scene object to a group node.Args:
-
Node or sequence of nodes to be added as child(ren).
get_nodekit_catalog(...)
Returns catalog entries of a nodekit instance.Returns:
-
NodekitCatalog object, which is a list of dictionaries with
details about each nodekit part.
insert(...)
Inserts a scene object into a group node.Args:
- index: Position where node will be inserted.
- node: Node to be inserted as child.
- other: If not None than the node will be inserted relative to this node, which must be a child of the group.
node_id(...)
Return the unique node identifier.Returns:
-
Unique node identifier, which changes with each change of the node
or one of its children.
remove(...)
Removes a scene object from a group node.Args:
-
Index or child node to be removed from group.
replace_manip(...)
Replaces this manipulator from the position identified by the given path with a transform node. This instance must be derived from SoTransformManip.Args:
-
Path to manipulator to be replaced and optionally instance of
transformation node to be inserted. If none is given an instance
of Transform will be created.
replace_node(...)
Replaces the node at the end of given path with this manipulator instance, which must be derived from SoTransformManip.Args:
-
Path to transform node that will be replaced with manipulator.
Methods inherited from FieldContainer:
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.