Karana.KUtils.MultibodyTUI.history#
Attributes#
Classes#
Container for a state object with undo and redo capabilities |
Module Contents#
- Karana.KUtils.MultibodyTUI.history.State#
- class Karana.KUtils.MultibodyTUI.history.StateHistory(init_state: State)[source]#
Bases:
Generic[State]Container for a state object with undo and redo capabilities
- property current_state_count: int#
The number of states in the undo stack
Note that this includes the current state and is always positive.
- property total_state_count: int#
The number of states - past, present, and future
This is similar to past_state_count but also includes states in the redo stack.