computeDisplayTransform Method
Compute the transform applied to a model or element at display time, if any. The display transform may be constructed from any combination of the following:
- PlanProjectionSettings.elevation applied to plan projection models by DisplayStyle3dSettings.planProjectionSettings;
- A per-model transform supplied by this view's modelDisplayTransformProvider; and/or
- A transform applied to an element by an RenderSchedule.ElementTimeline defined by this view's scheduleScript.
- A transform from the coordinate space of a ViewAttachment's view to that of the SheetViewState in which it is displayed.
- A transform from the coordinate space of a SpatialViewState to that of the DrawingViewState in which it is displayed, where the spatial view is attached via a SectionDrawing.
computeDisplayTransform(args: ComputeDisplayTransformArgs): undefined | Transform
@returns The computed transform, or undefined
if no display transform is to be applied.
Parameter | Type | Description |
---|---|---|
args | ComputeDisplayTransformArgs | A description of how to compute the transform. |
Returns - undefined | Transform
The computed transform, or undefined
if no display transform is to be applied.
Defined in
- core/frontend/src/ViewState.ts Line 1295
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.