Viewport.kl

Interfaces

Viewport_Virtual (interface)

バージョン 1.15.0 で追加.

The interface Viewport is implemented in case we require different kinds of viewport objects to support the same interface. This interface is currently used by InlineDrawing/InlineViewport and RTR2/Manipulation/RTRViewport. It’s called Viewport because InlineDrawing/InlineViewport already defines a class named Viewport. This is temporary until InlineDrawing is depreciated, and this interface WILL BE RENAMED Viewport.

参考

InlineViewport, RTRViewport

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

Functions

Camera getCamera ? ()
Vec2 getDimensions ? ()
String getName ? ()
Viewport_Virtual getSubViewport ? ( in SInt32 viewportPosX, in SInt32 viewportPosY, io SInt32 upperLeftX, io SInt32 upperLeftY, io SInt32 bottomRightX, io SInt32 bottomRightY )

Functions in detail

Camera Viewport_Virtual.getCamera? ()

Get the camera of this viewport


Vec2 Viewport_Virtual.getDimensions? ()

Get the dimensions of the viewport in pixels.


String Viewport_Virtual.getName? ()

Get the name of the viewport


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

Gets a sub-viewport at this position if any, else returns “this”.