Uranium
Application Framework
|
This class is responsible for keeping track of what objects are selected It uses signals to notify others of changes in the selection It also has a convenience function that allows it to apply a single operation to all selected objects. More...
Public Member Functions | |
def | add |
def | remove |
def | getCount |
Get number of selected objects. | |
def | getAllSelectedObjects |
def | getBoundingBox |
def | getSelectedObject |
Get selected object by index. More... | |
def | isSelected |
def | clear |
def | hasSelection |
Check if anything is selected at all. More... | |
def | getSelectionCenter |
def | applyOperation |
Apply an operation to the entire selection. More... | |
Static Public Attributes | |
tuple | selectionChanged = Signal() |
tuple | selectionCenterChanged = Signal() |
This class is responsible for keeping track of what objects are selected It uses signals to notify others of changes in the selection It also has a convenience function that allows it to apply a single operation to all selected objects.
def UM.Scene.Selection.Selection.applyOperation | ( | cls, | |
operation, | |||
args, | |||
kwargs | |||
) |
Apply an operation to the entire selection.
This will create and push an operation onto the operation stack. Dependent on whether there is one item selected or multiple it will be just the operation or a grouped operation containing the operation for each selected node.
operation | Class The operation to create and push. It should take a SceneNode as first positional parameter. |
args | The additional positional arguments passed along to the operation constructor. |
kwargs | The additional keyword arguements that will be passed along to the operation constructor. |
def UM.Scene.Selection.Selection.getSelectedObject | ( | cls, | |
index | |||
) |
Get selected object by index.
index | index of the objectto return |
def UM.Scene.Selection.Selection.hasSelection | ( | cls | ) |
Check if anything is selected at all.