|
Uranium
Application Framework
|
Public Member Functions | |
| __init__ (self, width, height, SelectionMode mode=SelectionMode.OBJECTS) | |
| setIgnoreUnselectedObjects (self, ignore_unselected_objects) | |
| render (self) | |
| renderObjectsMode (self) | |
| renderFacesMode (self) | |
| getIdAtPosition (self, x, y) | |
| getIdAtPositionFaceMode (self, x, y) | |
| int | getFaceIdAtPosition (self, x, y) |
| List[int] | getFacesIdsUnderMask (self, "QImage" mask, int x, int y) |
| Public Member Functions inherited from UM.View.RenderPass.RenderPass | |
| None | __init__ (self, str name, int width, int height, int priority=0) |
| str | getName (self) |
| Tuple[int, int] | getSize (self) |
| int | getPriority (self) |
| None | setSize (self, int width, int height) |
| bool | isEnabled (self) |
| None | setEnabled (self, bool enabled) |
| None | bind (self) |
| None | release (self) |
| int | getTextureId (self) |
| QImage | getOutput (self) |
Protected Member Functions | |
| _onActiveToolChanged (self) | |
| _getNodeColor (self, node) | |
| _dropAlpha (self, color) | |
| bool | _isInSelectedGroup (self, "SceneNode" node) |
| Protected Member Functions inherited from UM.View.RenderPass.RenderPass | |
| None | _updateRenderStorage (self) |
Static Protected Member Functions | |
| int | _getFaceId (int pixel) |
Protected Attributes | |
| _shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "selection.shader")) | |
| _face_shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "select_face.shader")) | |
| _tool_handle_shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "default.shader")) | |
| _scene = Application.getInstance().getController().getScene() | |
| _renderer = Application.getInstance().getRenderer() | |
| dict | _selection_map = {} |
| list | _face_mode_selection_map = [] |
| dict | _default_toolhandle_selection_map |
| dict | _toolhandle_selection_map = {} |
| _onActiveToolChanged | |
| _mode = mode | |
| _output = None | |
| bool | _ignore_unselected_objects = False |
| Protected Attributes inherited from UM.View.RenderPass.RenderPass | |
| str | _name = name |
| int | _width = width |
| int | _height = height |
| int | _priority = priority |
| bool | _enabled = True |
| _gl = OpenGL.getInstance().getBindingsObject() | |
| _fbo = None | |
Additional Inherited Members | |
| Static Public Attributes inherited from UM.View.RenderPass.RenderPass | |
| int | MaximumPriority = 999 |
A RenderPass subclass responsible for rendering selectable objects to a texture. This pass performs the rendering of selectable objects to a texture that can be sampled to retrieve the actual object that was underneath the mouse cursor. Additionally, information about what objects are actually selected is rendered into the alpha channel of this render pass so it can be used later on in the composite pass.
|
protected |
Get whether the given node is in a group that is selected. :param node: The node to check. :return: ``True`` if the node is in a selected group, or ``False`` if it's not.
| int UM.View.SelectionPass.SelectionPass.getFaceIdAtPosition | ( | self, | |
| x, | |||
| y ) |
Get an unique identifier to the face of the polygon at a certain pixel-coordinate.
| UM.View.SelectionPass.SelectionPass.getIdAtPosition | ( | self, | |
| x, | |||
| y ) |
Get the object id at a certain pixel coordinate.
| UM.View.SelectionPass.SelectionPass.getIdAtPositionFaceMode | ( | self, | |
| x, | |||
| y ) |
Get an unique identifier to any object currently selected for by-face manipulation at a pixel coordinate.
| UM.View.SelectionPass.SelectionPass.render | ( | self | ) |
Perform the actual rendering.
Reimplemented from UM.View.RenderPass.RenderPass.
|
protected |