v_sim.NodeMover¶
- Subclasses:
 
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
  | 
|
  | 
|
  | 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
percentage of completion during animation.  | 
||
r/w  | 
node ids to move.  | 
||
r/w  | 
nodes to apply the move to.  | 
||
r  | 
undo stack depth.  | 
||
r  | 
if mover parameters are valid.  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class v_sim.NodeMover(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
An opaque structure.
New in version 3.8.
- animate()¶
 Starts the animation defined by self. For an application of the change without animation, use
v_sim.NodeMover.apply().New in version 3.8.
- apply()¶
 Apply the modification defined by self. To animate the transition, use
v_sim.NodeMover.animate().New in version 3.8.
- getNodes()¶
 - Returns:
 a list of node ids.
- Return type:
 [
int]
Retrieves the node ids impacted by self.
New in version 3.8.
- push()¶
 Push the current modification on the undo stack without actually doing the modification.
New in version 3.8.
- setNodes(ids)¶
 - Parameters:
 ids ([
int]) – a list of node ids.
Defines the nodes that will be affected by the modification in self.
New in version 3.8.
- undo()¶
 Undo the last modification.
New in version 3.8.
- do_setup() virtual¶
 
Property Details¶
- v_sim.NodeMover.props.completion¶
 - 
percentage of completion during animation.
 
- v_sim.NodeMover.props.ids¶
 - Name:
 ids- Type:
 - Default Value:
 - Flags:
 
node ids to move.
- v_sim.NodeMover.props.nodes¶
 - Name:
 nodes- Type:
 - Default Value:
 - Flags:
 
nodes to apply the move to.
- v_sim.NodeMover.props.undo_stack_depth¶
 - 
undo stack depth.