DrawContext (object)¶
バージョン 1.12.0 で追加.
The DrawContext is used to provide contextual information during a custom draw. Please see the OGLInlineDrawing for an example of this.
Members¶
Viewport | viewport | the viewport used for this drawing |
Mat44 | projectionMat | the camera projection matrix |
Mat44 | viewMat | camera view matrix |
Mat33 | invViewMat | inverse view matrix as Mat44 |
Vec3[] | lightPositions | Array of lights position |
Color[] | lightColors | Corresponding array of light colors |
Scalar | time | The DCC’s current time |
RTVal[String][String] | viewportParams | viewport parameters |
Methods¶
DrawContext ( in DrawContext other ) | |
DrawContext () | |
DrawContext | clone ? () |
RTVal[String] | getCurrentViewportParams ! () |
DrawContext | getInstance ? () |
RTVal[String] | getViewportParams ! ( in String name ) |
resetAllViewportParams ! () | |
setCurrentViewportParams ! ( in RTVal params[String] ) | |
setViewportParams ! ( in String name, in RTVal params[String] ) |
Methods in detail¶
DrawContext ( in DrawContext other )
copy constructor
DrawContext ()
standard constructor
DrawContext DrawContext.clone? ()
clone method
RTVal[String] DrawContext.getCurrentViewportParams! ()
get the current viewport’s parameters
DrawContext DrawContext.getInstance? ()
Get the DrawContext singleton, but through a method
RTVal[String] DrawContext.getViewportParams! ( in String name )
get the parameters for a given viewport
DrawContext.resetAllViewportParams! ()
resets all viewport parameters
DrawContext.setCurrentViewportParams! ( in RTVal params[String] )
set the current viewport’s parameters
DrawContext.setViewportParams! ( in String name, in RTVal params[String] )
set the parameters for a given viewport