Navigation:  »No topics above this level«

Render

Return to chapter overview

See Also

SeeAlso

CADBasics 1.0 Help


Description

Creates a photorealistic or realistically shaded image of a three-dimensional wireframe or solid model.

Render produces an image using information from a scene, the current selection set, or the current view.

 

Remarks

Vectordraw uses a Render engine. Some of this engine's properties and methods are exported through vdRender object. Basically these are usefull when the events below are fired :

Draw
DrawEntity
DrawAfterEntity
DrawAfter
DrawBackground
CommandActionDraw

VectorDraw renders the hole scene in a memory device context (memory bitmap). Then this bitmap is viewed. This default render object is returned from Render method of the component.

It is useful to draw in Low-Level without the need to add drawing objects.

VectorDraw renders in a Device, that can be a memory bitmap or a Device (hDC) that belongs to a Window (hWnd).

The basic properties of this vdRender object that are needed to transform the D.U. (Drawing Units) to Window-Pixels are :

Upper Left corner of the Device (Left and Top in pixels)
Width in pixels
Height in pixels
View Center (GetViewCenter) in D.U. of current view, 2D point
View Size the height of the view in D.U. that defines the zoom.
vdMatrix object transformation that is used to transform the objects coordinates from World CS to curent view coordinate system.