예제 #1
0
        self.finish()


nodes = {
    "SavedSelection": SavedSelection
}

actions = {
    "SelectNone": SelectNone,
    "SelectTargets": SelectTargets,
    "SelectParents": SelectParents,
    "SelectChildren": SelectChildren,
    "SelectChildrenByExpression": SelectChildrenByExpression,
    "SaveSelection": SaveSelection,
    "RestoreSavedSelection": RestoreSavedSelection,
    "EditSelectionFilter": EditSelectionFilter,
    "PickSelection": PickSelection,
}

interactive_groups = {
    "selection": InteractiveGroup(
        image_name="plugins/basic/selection_picker.svg",
        description="Selection picker",
        initial_mask=0,
        order=0,
        authors=[authors.toon_verstraelen],
    )
}


예제 #2
0
                       (first != self.measurements.model_objects[-1] or \
                        last  != self.measurements.model_objects[-1]):
                        self.measurements.reverse()
                self.measurements.add_object(first)
                self.measurements.add_object(last)
                self.finish()
                return
        elif event.button == 2:
            self.measurements.reverse()
            self.finish()
            return
        elif event.button == 3:
            self.measurements.remove_last_object()
            self.finish()
            return
        self.measurements.clear()
        self.finish()


actions = {"Measure": Measure}

interactive_groups = {
    "measure":
    InteractiveGroup(
        image_name="plugins/basic/measure.svg",
        description="Measurement tool",
        order=5,
        authors=[authors.toon_verstraelen],
    )
}
예제 #3
0
    "TranslateObjectMouse": TranslateObjectMouse,
    "TranslateObjectKeyboard": TranslateObjectKeyboard,
    "TranslateWorldMouse": TranslateWorldMouse,
    "TranslateWorldKeyboard": TranslateWorldKeyboard,
    "TranslateViewerMouse": TranslateViewerMouse,
    "TranslateViewerKeyboard": TranslateViewerKeyboard,
    "TranslateRotationCenterMouse": TranslateRotationCenterMouse,
    "TranslateRotationCenterKeyboard": TranslateRotationCenterKeyboard,
}

interactive_groups = {
    "rotate":
    InteractiveGroup(
        image_name="plugins/basic/rotate.svg",
        description="Rotate",
        initial_mask=gtk.gdk.CONTROL_MASK,
        order=1,
        authors=[authors.toon_verstraelen],
    ),
    "translate":
    InteractiveGroup(
        image_name="plugins/basic/translate.svg",
        description="Translate",
        initial_mask=gtk.gdk.SHIFT_MASK,
        order=2,
        authors=[authors.toon_verstraelen],
    ),
    "translate_viewer":
    InteractiveGroup(
        image_name="plugins/basic/translate_viewer.svg",
        description="Translate the viewer",