Uranium
Application Framework
|
Public Member Functions | |
def | __init__ (self, width, height) |
def | render (self) |
def | getIdAtPosition (self, x, y) |
def | getFaceIdAtPosition (self, x, y) |
![]() | |
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) |
None | bind (self) |
None | release (self) |
None | render (self) |
int | getTextureId (self) |
QImage | getOutput (self) |
Protected Member Functions | |
def | _onActiveToolChanged (self) |
def | _onSelectedFaceChanged (self) |
def | _renderObjectsMode (self) |
def | _renderFacesMode (self) |
def | _getNodeColor (self, node) |
def | _dropAlpha (self, color) |
bool | _isInSelectedGroup (self, "SceneNode" node) |
![]() | |
None | _updateRenderStorage (self) |
Protected Attributes | |
_shader | |
_face_shader | |
_tool_handle_shader | |
_gl | |
_scene | |
_renderer | |
_selection_map | |
_default_toolhandle_selection_map | |
_toolhandle_selection_map | |
_mode | |
_output | |
![]() | |
_name | |
_width | |
_height | |
_priority | |
_gl | |
_fbo | |
Additional Inherited Members | |
![]() | |
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.
def UM.View.SelectionPass.SelectionPass.__init__ | ( | self, | |
width, | |||
height | |||
) |
Reimplemented from UM.View.RenderPass.RenderPass.
|
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.
def UM.View.SelectionPass.SelectionPass.getFaceIdAtPosition | ( | self, | |
x, | |||
y | |||
) |
Get an unique identifier to the face of the polygon at a certain pixel-coordinate.
def UM.View.SelectionPass.SelectionPass.getIdAtPosition | ( | self, | |
x, | |||
y | |||
) |
Get the object id at a certain pixel coordinate.
def UM.View.SelectionPass.SelectionPass.render | ( | self | ) |
Perform the actual rendering.
Reimplemented from UM.View.RenderPass.RenderPass.