Last updated

API / geotoolkit3d / util / debug / CameraFrustumDebug / CameraFrustumDebug

Class: CameraFrustumDebug

debug.CameraFrustumDebug.CameraFrustumDebug

Utility class rendering camera frustum and objects' bounding boxes for debugging purpose.

Table of contents

Constructors
Methods

Contents

Constructors

new CameraFrustumDebug()

new CameraFrustumDebug()

Methods

createDebugVisuals

Static createDebugVisuals(plot, options?): Object3D

Create the debug visuals including camera frustum and objects' bounding boxes.
Note: the debug visual are meant to be added to the Plot root.

Parameters

Name Type Description
plotPlotthe Plot to debug
Optional optionsDisplayDebugVisualsOptionsDisplayDebugVisualsOptions.

Returns

Object3D

the container holding the debug visuals.


displayDebugVisuals

Static displayDebugVisuals(plot, options?): void

Display the debug visuals including camera frustum and objects' bounding boxes.
As opposed to createDebugVisuals() method, this method takes care of adding and updating the visuals automatically.

Parameters

Name Type Description
plotPlotthe Plot to debug
Optional optionsDisplayDebugVisualsOptionsDisplayDebugVisualsOptions.

Returns

void


getClassName

Static getClassName(): string

Returns

string


removeDebugVisuals

Static removeDebugVisuals(plot): void

Remove the debug visuals including camera frustum and objects' bounding boxes.

Parameters

Name Type Description
plotPlotthe Plot contains the debug visual

Returns

void