createSectionGraphicsProvider Function

Creates a TiledGraphicsProvider that can be associated with a Viewport to display 2d section graphics and annotations in the context of a SpatialViewState. Typically used indirectly via HyperModelingDecorator.

createSectionGraphicsProvider(state: SectionDrawingLocationState): Promise<TiledGraphicsProvider>

@returns A provider suitable for passing to Viewport.addTiledGraphicsProvider.

@see toggleAttachment to activate section graphics for a given SectionMarker.

Parameter Type Description
state SectionDrawingLocationState The section drawing location specifying which section drawing to display.

Returns - Promise<TiledGraphicsProvider>

A provider suitable for passing to Viewport.addTiledGraphicsProvider.

Defined in

Last Updated: 21 November, 2024