interface ViewManager { subviews: Subview[]; createSubview(theSize: WasmVector2d): number; fitAllAuto(theViewId: number, theIsAuto: boolean): void; fitAllObjects( theViewId: number, theAuto: boolean, theToUpdate: boolean, ): void; fitMinMax( theViewId: number, theMin: WasmVector3d, theMax: WasmVector3d, ): void; fitObjects(theViewId: number, theNames: string, theToUpdate: boolean): void; getInputFocus(theViewId: number): number; getMaxCamDistanceMultiplier(theViewId: number): number; getOrbitAcceleration(): number; getPerspectiveProjectionFOVy(theViewId: number): number; getRotationMode(): AIS_RotationMode; getSubviewBackgroundColor(theViewId: number): string; getSubviewBorderColor(): string; getSubviewCorner(theViewId: number): ViewCorner; getSubviewMargins(theViewId: number): WasmVector2d; getSubviewOffset(theViewId: number): WasmVector2d; getSubviewSize(theViewId: number): WasmVector2d; getViewPoint(theViewId: number): WasmCameraParams; hasInputFocus(theViewId: number): boolean; isActive(theViewId: number): boolean; isDefined(theViewId: number): boolean; isFullscreen(): boolean; isPerspectiveProjection(theViewId: number): boolean; isSubviewComposer(theViewId: number): boolean; isSubviewFullscreen(theViewId: number): boolean; removeAllSubviews(): void; removeSubview(theViewId: number): void; setActive(theViewId: number, theActive: boolean): void; setAllowPanning(theViewId: number, theToAllow: boolean): void; setAllowRotation(theViewId: number, theToAllow: boolean): void; setAllowZooming(theViewId: number, theToAllow: boolean): void; setFullscreen(theToEnable: boolean): void; setInputFocus(theViewId: number): void; setLockOrbitZUp(theViewId: number, theToLock: boolean): void; setMaxCamDistanceMultiplier(theViewId: number, theMax: number): void; setOrbitAcceleration(theAccel: number): void; setOrientation( theViewId: number, theOrientation: V3d_TypeOfOrientation, ): void; setPerspectiveProjection(theViewId: number, theIsPersp: boolean): void; setPerspectiveProjectionFOVy(theViewId: number, theFovy: number): void; setRotationMode(theMode: AIS_RotationMode): void; setSubviewBackgroundColor(theViewId: number, theBgColor: string): void; setSubviewBorderColor(theColor: string): void; setSubviewComposer(theViewId: number, theActive: boolean): void; setSubviewCorner(theViewId: number, theCorner: ViewCorner): void; setSubviewFullscreen(theViewId: number, theToEnable: boolean): void; setSubviewMargins(theViewId: number, theMargins: WasmVector2d): void; setSubviewOffset(theViewId: number, theOffset: WasmVector2d): void; setSubviewSize(theViewId: number, theSize: WasmVector2d): void; setViewPoint(theViewId: number, theParams: WasmCameraParams): void; toAllowPanning(theViewId: number): boolean; toAllowRotation(theViewId: number): boolean; toAllowZooming(theViewId: number): boolean; toLockOrbitZUp(theViewId: number): boolean;} Properties
Methods
fitAllAuto
- fitAllAuto(theViewId: number, theIsAuto: boolean): void
Parameters
- theViewId: number
- theIsAuto: boolean
Returns void
fitAllObjects
- fitAllObjects(theViewId: number, theAuto: boolean, theToUpdate: boolean): void
Parameters
- theViewId: number
- theAuto: boolean
- theToUpdate: boolean
Returns void
fitObjects
- fitObjects(theViewId: number, theNames: string, theToUpdate: boolean): void
Parameters
- theViewId: number
- theNames: string
- theToUpdate: boolean
Returns void
getInputFocus
- getInputFocus(theViewId: number): number
Returns number
getMaxCamDistanceMultiplier
- getMaxCamDistanceMultiplier(theViewId: number): number
Returns number
getOrbitAcceleration
- getOrbitAcceleration(): number
Returns number
getPerspectiveProjectionFOVy
- getPerspectiveProjectionFOVy(theViewId: number): number
Returns number
getSubviewBackgroundColor
- getSubviewBackgroundColor(theViewId: number): string
Returns string
getSubviewBorderColor
- getSubviewBorderColor(): string
Returns string
hasInputFocus
- hasInputFocus(theViewId: number): boolean
Returns boolean
isActive
- isActive(theViewId: number): boolean
Returns boolean
isDefined
- isDefined(theViewId: number): boolean
Returns boolean
isFullscreen
- isFullscreen(): boolean
Returns boolean
isPerspectiveProjection
- isPerspectiveProjection(theViewId: number): boolean
Returns boolean
isSubviewComposer
- isSubviewComposer(theViewId: number): boolean
Returns boolean
isSubviewFullscreen
- isSubviewFullscreen(theViewId: number): boolean
Returns boolean
removeAllSubviews
- removeAllSubviews(): void
Returns void
removeSubview
- removeSubview(theViewId: number): void
Returns void
setActive
- setActive(theViewId: number, theActive: boolean): void
Parameters
- theViewId: number
- theActive: boolean
Returns void
setAllowPanning
- setAllowPanning(theViewId: number, theToAllow: boolean): void
Parameters
- theViewId: number
- theToAllow: boolean
Returns void
setAllowRotation
- setAllowRotation(theViewId: number, theToAllow: boolean): void
Parameters
- theViewId: number
- theToAllow: boolean
Returns void
setAllowZooming
- setAllowZooming(theViewId: number, theToAllow: boolean): void
Parameters
- theViewId: number
- theToAllow: boolean
Returns void
setFullscreen
- setFullscreen(theToEnable: boolean): void
Returns void
setInputFocus
- setInputFocus(theViewId: number): void
Returns void
setLockOrbitZUp
- setLockOrbitZUp(theViewId: number, theToLock: boolean): void
Parameters
- theViewId: number
- theToLock: boolean
Returns void
setMaxCamDistanceMultiplier
- setMaxCamDistanceMultiplier(theViewId: number, theMax: number): void
Parameters
- theViewId: number
- theMax: number
Returns void
setOrbitAcceleration
- setOrbitAcceleration(theAccel: number): void
Returns void
setPerspectiveProjection
- setPerspectiveProjection(theViewId: number, theIsPersp: boolean): void
Parameters
- theViewId: number
- theIsPersp: boolean
Returns void
setPerspectiveProjectionFOVy
- setPerspectiveProjectionFOVy(theViewId: number, theFovy: number): void
Parameters
- theViewId: number
- theFovy: number
Returns void
setSubviewBackgroundColor
- setSubviewBackgroundColor(theViewId: number, theBgColor: string): void
Parameters
- theViewId: number
- theBgColor: string
Returns void
setSubviewBorderColor
- setSubviewBorderColor(theColor: string): void
Returns void
setSubviewComposer
- setSubviewComposer(theViewId: number, theActive: boolean): void
Parameters
- theViewId: number
- theActive: boolean
Returns void
setSubviewCorner
- setSubviewCorner(theViewId: number, theCorner: ViewCorner): void
Returns void
setSubviewFullscreen
- setSubviewFullscreen(theViewId: number, theToEnable: boolean): void
Parameters
- theViewId: number
- theToEnable: boolean
Returns void
setSubviewMargins
- setSubviewMargins(theViewId: number, theMargins: WasmVector2d): void
Returns void
setSubviewOffset
- setSubviewOffset(theViewId: number, theOffset: WasmVector2d): void
Returns void
setSubviewSize
- setSubviewSize(theViewId: number, theSize: WasmVector2d): void
Returns void
toAllowPanning
- toAllowPanning(theViewId: number): boolean
Returns boolean
toAllowRotation
- toAllowRotation(theViewId: number): boolean
Returns boolean
toAllowZooming
- toAllowZooming(theViewId: number): boolean
Returns boolean
toLockOrbitZUp
- toLockOrbitZUp(theViewId: number): boolean
Returns boolean
Represents manager for subviews. See also OccViewer.viewManager property.