Uranium
Application Framework
UM.View.SelectionPass.SelectionPass Class Reference

A RenderPass subclass responsible for rendering selectable objects to a texture. More...

Inheritance diagram for UM.View.SelectionPass.SelectionPass:
UM.View.RenderPass.RenderPass

Public Member Functions

def __init__ (self, width, height)
 
def render (self)
 Perform the actual rendering.
 
def getIdAtPosition (self, x, y)
 Get the object id at a certain pixel coordinate.
 
def getFaceIdAtPosition (self, x, y)
 Get an unique identifier to the face of the polygon at a certain pixel-coordinate.
 
- Public Member Functions inherited from UM.View.RenderPass.RenderPass
None __init__ (self, str name, int width, int height, int priority=0)
 
str getName (self)
 Get the name of this RenderPass. More...
 
Tuple[int, int] getSize (self)
 
int getPriority (self)
 Get the priority of this RenderPass. More...
 
None setSize (self, int width, int height)
 Set the size of this render pass. More...
 
None bind (self)
 Bind the render pass so it can be rendered to. More...
 
None release (self)
 Release the render pass. More...
 
int getTextureId (self)
 Get the texture ID of this render pass so it can be reused by other passes. More...
 
QImage getOutput (self)
 Get the pixel data produced by this render pass. More...
 

Additional Inherited Members

- Static Public Attributes inherited from UM.View.RenderPass.RenderPass
int MaximumPriority = 999
 The maximum priority of a render pass. More...
 

Detailed Description

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.


The documentation for this class was generated from the following file: