InlineViewport (object)

The InlineViewport object is used to send Viewport information from the host application to the InlineDrawing system and the Manipulation system.

InlineViewport InlineViewport InlineViewport Viewport Viewport InlineViewport->Viewport Viewport_Virtual Viewport_Virtual InlineViewport->Viewport_Virtual OGLStandaloneViewport OGLStandaloneViewport OGLStandaloneViewport->InlineViewport

Methods

  InlineViewport ( in InlineViewport other )
  InlineViewport ()
Ray calcRayFromScreenPos ? ( in Vec2 pos )
InlineViewport clone ? ()
  deregisterCallback ! ( in ViewportDrawPhase phase, in ViewportCallback callback )
Camera getCamera ? ()
Vec2 getDimensions ? ()
String getName ? ()
Mat44 getProjectionMat ? ()
Viewport_Virtual getSubViewport ? ( in SInt32 viewportPosX, in SInt32 viewportPosY, io SInt32 upperLeftX, io SInt32 upperLeftY, io SInt32 bottomRightX, io SInt32 bottomRightY )
Mat44 getViewMat ? ()
  registerCallback ! ( in ViewportDrawPhase phase, in ViewportCallback callback )
  setCamera ! ( in Camera camera )
  setName ! ( in String name )

Methods in detail

InlineViewport ( in InlineViewport other )

copy constructor


InlineViewport ()

default constructor


Ray InlineViewport.calcRayFromScreenPos? ( in Vec2 pos )

compute a ray into the scene based on a mouse coordinate


InlineViewport InlineViewport.clone? ()

clone method


InlineViewport.deregisterCallback! ( in ViewportDrawPhase phase, in ViewportCallback callback )

deregisters a callback for the viewport


Camera InlineViewport.getCamera? ()

returns the camera of this viewport


Vec2 InlineViewport.getDimensions? ()

returns the dimensions of the viewport in pixels.


String InlineViewport.getName? ()

Get the name of the viewport


Mat44 InlineViewport.getProjectionMat? ()

returns the camera’s projection matrix


Viewport_Virtual InlineViewport.getSubViewport? ( in SInt32 viewportPosX, in SInt32 viewportPosY, io SInt32 upperLeftX, io SInt32 upperLeftY, io SInt32 bottomRightX, io SInt32 bottomRightY )

Gets sub-viewport if any: not the case by default


Mat44 InlineViewport.getViewMat? ()

returns the camera’s view matrix


InlineViewport.registerCallback! ( in ViewportDrawPhase phase, in ViewportCallback callback )

registers a callback for the viewport


InlineViewport.setCamera! ( in Camera camera )

returns the camera of this viewport


InlineViewport.setName! ( in String name )

sets the name of the viewport