Home Reference Source
import {Orthographic} from 'bimsurfer3/viewer/orthographic.js'
public class | source

Orthographic

Extends:

Projection → Orthographic

Configures orthographic projection mode for the camera. In this projection mode, an object's size in the rendered image stays constant regardless of its distance} from the camera. Orthographic projection is represented as a viewing frustum, given as six planes.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public set

bottom(bottom: Number)

Sets the position of bottom plane on the negative View-space Y-axis.

public get

Gets the position of bottom plane on the negative View-space Y-axis.

public set

left(left: Number)

Sets the position of the left plane on the negative View-space X-axis.

public get

left: Number: *

Gets the position of the left plane on the negative View-space X-axis.

public set

right(right: Number)

Sets the position of the right plane on the positive View-space X-axis.

public get

Gets the position of the right plane on the positive View-space X-axis.

public set

top(top: Number)

Sets the position of the top plane on the positive View-space Y-axis.

public get

top: Number: *

Gets the position of the top plane on the positive View-space Y-axis.

public
Private Members
private

_bottom: *

private
private

_left: *

private
private

_right: *

private

_top: *

Method Summary

Public Methods
public

build()

public

setModelBounds(modelBounds: *)

public

zoom(delta: *)

Inherited Summary

From class Projection
public get

far: Number: *

Gets the position of the far clipping plane on the positive View-space Z-axis.

public set

far(far: Number)

Sets the position of the far plane on the positive View-space Z-axis.

public get

near: Number: *

Gets the position of the near plane on the positive View-space Z-axis.

public set

near(near: Number)

Sets the position of the near plane on the positive View-space Z-axis.

public get

Gets the current projection projection transform matrix.

public get
public
public

viewer: *

private
private

_far: *

private

_near: *

private
private
public

build()

public

setModelBounds(modelBounds: *)

private

Public Constructors

public constructor() source

Override:

Projection#constructor

Public Members

public set bottom(bottom: Number) source

Sets the position of bottom plane on the negative View-space Y-axis.

public get bottom: Number: * source

Gets the position of bottom plane on the negative View-space Y-axis.

Return:

Number

Position of the bottom plane.

public set left(left: Number) source

Sets the position of the left plane on the negative View-space X-axis.

public get left: Number: * source

Gets the position of the left plane on the negative View-space X-axis.

Return:

Number

Position of the left plane.

public set right(right: Number) source

Sets the position of the right plane on the positive View-space X-axis.

public get right: Number: * source

Gets the position of the right plane on the positive View-space X-axis.

Return:

Number

Position of the right plane.

public set top(top: Number) source

Sets the position of the top plane on the positive View-space Y-axis.

public get top: Number: * source

Gets the position of the top plane on the positive View-space Y-axis.

Return:

Number

Position of the top plane.

public zoomFactor: number source

Private Members

private _bottom: * source

private _far: number source

Override:

Projection#_far

private _left: * source

private _near: number source

Override:

Projection#_near

private _right: * source

private _top: * source

Public Methods

public build() source

Override:

Projection#build

public setModelBounds(modelBounds: *) source

Override:

Projection#setModelBounds

Params:

NameTypeAttributeDescription
modelBounds *

public zoom(delta: *) source

Params:

NameTypeAttributeDescription
delta *