DynamicsContext Class

Provides context for an InteractiveTool to display decorations representing its current state.

see InteractiveTool.onDynamicFrame



Name Description
constructor(vp: Viewport, frustum?: Frustum): DynamicsContext    
addGraphic(graphic: RenderGraphic): void Add a graphic to the list of dynamic graphics to be drawn in this context's Viewport.  

Inherited methods

Name Inherited from Description
createBranch(branch: GraphicBranch, location: Transform): RenderGraphic RenderContext Create a RenderGraphic which groups a set of graphics into a node in a scene graph, applying to each a transform and optional clip volume and symbology overrides.
createSceneGraphicBuilder(transform?: Transform): GraphicBuilder RenderContext Create a builder for creating a GraphicType.Scene RenderGraphic for rendering within this context's Viewport.
getPixelSizeAtPoint(inPoint?: Primitives.Point3d): number RenderContext Given a point in world coordinates, determine approximately how many pixels it occupies on screen based on this context's frustum.

Inherited properties

Name Type Inherited from Description
frustum Frustum RenderContext Frustum extracted from the context's Viewport.
frustumPlanes FrustumPlanes RenderContext Frustum planes extracted from the context's Viewport.
viewFlags ViewFlags RenderContext ViewFlags extracted from the context's Viewport.
viewport Viewport RenderContext The Viewport associated with this context.

Defined in

Last Updated: 20 September, 2019