Visualizer

Visualizer class for rendering 3D Tiles and managing interactions.

Constructor

new Visualizer(extent, layerConfigs, options)

Parameters:
NameTypeDescription
extentmodule:itowns~Extent

The extent of the area being visualized in the itowns framework.

layerConfigsArray.<LayerConfig>

Configuration parameters for 3DTiles layers.

optionsobject

Configuration options for the visualizer.

Properties
NameTypeAttributesDefaultDescription
parentDomElementHTMLElement

The DOM element where the planar view will be appended.

domElementClassstring

CSS class to apply to the main DOM element.

c3DTilesLoadingDomElementClassesArray.<string>

CSS classes for loading indicators.

cameraobject

Camera configuration options.

Properties
NameTypeDescription
defaultobject

Default camera settings.

Properties
NameTypeDescription
positionobject

Default position for the camera.

maxSubdivisionLevelnumber

Maximum level of detail for base map texture.

defaultPointCloudSizenumber

Default size for point cloud points.

raycasterPointsThresholdnumber<optional>
Visualizer.RAYCASTER_POINTS_THRESHOLD

Threshold for raycaster points.

measurenumber<optional>

If true, initializes the measure tool.

The constructor sets up the visualization environment, including initializing scenes, camera settings, layer management, and UI components. It also handles the rendering loop and event listeners for user interactions.

Note: options.camera.default.quaternion is not available option since the camera is initialized as pointing towards the center of the bounding box of the observed 3DTiles.

Classes

Visualizer

Members

clippingPlane :ClippingPlane

clippingPlaneDetails

Getter for the clipping plane details.

domElementTargetDragElement

Getter for the DOM element used in target dragging.

itownsView

Getter for the itowns view instance.

layers

Getter for the layer manager's layers.

measure :Measure

Type:

measureDomElement

Getter for the DOM element associated with the measure tool.

orbitControls

Getter for orbit controls.

raycaster :Raycaster

Type:
  • Raycaster

topScene :Scene

Type:
  • Scene

viewManager :ViewManager

(static) CAMERA_LOCAL_STORAGE_KEY

Key for storing camera settings in local storage.

(static) CLIPPING_PLANE_LOCAL_STORAGE_KEY

Key for storing clipping plane settings in local storage.

(static) DEFAULT_POINT_SIZE

Default size for points in the point cloud visualization.

(static) RAYCASTER_POINTS_THRESHOLD

Threshold for the raycaster points.

(static) TARGET_LOCAL_STORAGE_KEY

Key for storing target information in local storage.