Uranium
Application Framework
UM.View.SelectionPass.SelectionPass Class Reference
Inheritance diagram for UM.View.SelectionPass.SelectionPass:
UM.View.RenderPass.RenderPass

Public Member Functions

def __init__ (self, width, height)
 
def render (self)
 
def getIdAtPosition (self, x, y)
 
def getFaceIdAtPosition (self, x, y)
 
- Public Member Functions inherited from UM.View.RenderPass.RenderPass
def __init__
 
def getName (self)
 
def getSize (self)
 
def getPriority (self)
 
def setSize
 
def bind (self)
 
def release (self)
 
def render (self)
 
def getTextureId (self)
 
def getOutput (self)
 

Additional Inherited Members

- Static Public Attributes inherited from UM.View.RenderPass.RenderPass
int MaximumPriority = 999
 

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.

Member Function Documentation

◆ getFaceIdAtPosition()

def UM.View.SelectionPass.SelectionPass.getFaceIdAtPosition (   self,
  x,
  y 
)
Get an unique identifier to the face of the polygon at a certain pixel-coordinate.

◆ getIdAtPosition()

def UM.View.SelectionPass.SelectionPass.getIdAtPosition (   self,
  x,
  y 
)
Get the object id at a certain pixel coordinate.

◆ render()

def UM.View.SelectionPass.SelectionPass.render (   self)
Perform the actual rendering.

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