Uranium
Application Framework
|
Public Member Functions | |
def | add |
def | remove |
def | getFaceSelectMode (cls) |
def | setFaceSelectMode |
def | setFace |
def | unsetFace |
def | toggleFace |
def | hoverFace |
def | unhoverFace |
def | getCount (cls) |
def | getAllSelectedObjects (cls) |
def | getSelectedFace (cls) |
def | getHoverFace (cls) |
def | getBoundingBox (cls) |
def | getSelectedObject |
def | isSelected |
def | clear (cls) |
def | clearFace (cls) |
def | hasSelection (cls) |
def | getSelectionCenter (cls) |
def | applyOperation (cls, operation, args, kwargs) |
Static Public Attributes | |
selectionChanged = Signal() | |
selectionCenterChanged = Signal() | |
selectedFaceChanged = Signal() | |
hoverFaceChanged = 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. :param operation: :type{Class} The operation to create and push. It should take a SceneNode as first positional parameter. :param args: The additional positional arguments passed along to the operation constructor. :param kwargs: The additional keyword arguments that will be passed along to the operation constructor. :return: list of instantiated operations
def UM.Scene.Selection.Selection.getCount | ( | cls, | |
int | |||
) |
Get number of selected objects
def UM.Scene.Selection.Selection.hasSelection | ( | cls, | |
bool | |||
) |
Check if anything is selected at all.