RenderContext Class

Provides context for producing RenderGraphics for drawing within a Viewport.

Extended by

Methods

Name Description
constructor(vp: Viewport, frustum?: Frustum): RenderContext    
createBranch(branch: GraphicBranch, location: Transform): RenderGraphic 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 Create a builder for creating a GraphicType.Scene RenderGraphic for rendering within this context's Viewport.  
getPixelSizeAtPoint(inPoint?: Primitives.Point3d): number Given a point in world coordinates, determine approximately how many pixels it occupies on screen based on this context's frustum.  

Properties

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

Defined in

Last Updated: 13 June, 2024