OpenMayaRender.MSelectionInfo Class Reference

Class Description

This class gives informations on the selection.
+ Inheritance diagram for OpenMayaRender.MSelectionInfo:

Public Member Functions

__init__ ()
 
selectForHilite ()
 
selectable ()
 
selectableComponent ()
 

Properties

 alignmentMatrix
 
 isRay
 
 isSingleSelection
 
 localRay
 
 selectClosest
 
 selectOnHilitedOnly
 
 selectRect
 

Constructor & Destructor Documentation

OpenMayaRender.MSelectionInfo.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMayaRender.MSelectionInfo.selectable ( )
selectable(mask) -> bool

Given the selection mask, determines if the shape is selectable.

* mask (MSelectionMask) - The mask to test.
OpenMayaRender.MSelectionInfo.selectableComponent ( )
selectableComponent(displayed, mask) -> bool

Given the selection mask, determines if the component is selectable.

* displayed (bool) - Is the component displayed.
* mask (MSelectionMask) - The mask to test.
OpenMayaRender.MSelectionInfo.selectForHilite ( )
selectForHilite(mask) -> bool

Given the selection mask, determines if this shape can be selected for the hilite list.

* mask (MSelectionMask) - The mask to test.

Property Documentation

OpenMayaRender.MSelectionInfo.alignmentMatrix
static
 The alignment matrix.
 This is used to find ray object intersection.
OpenMayaRender.MSelectionInfo.isRay
static
 Whether or not there is a selection ray.
 This is used to find ray object intersection
OpenMayaRender.MSelectionInfo.isSingleSelection
static
 Whether or not we want to select a single shape or component.
OpenMayaRender.MSelectionInfo.localRay
static
 The selection ray (starting point and direction).
 This is used to find ray object intersection
OpenMayaRender.MSelectionInfo.selectClosest
static
 Whether or not we want to select the closest shape or component.
OpenMayaRender.MSelectionInfo.selectOnHilitedOnly
static
 Whether or not the components can only be selected if the shape is hilited.
OpenMayaRender.MSelectionInfo.selectRect
static
 The current selection rectangle dimensions (x, y, width, height).