Table of Contents

Constructor DisplayViewport2

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

DisplayViewport2(double, double, double, double, double, double, double, double, DisplayList2, ISet<string>, DisplayStyle, string, string)

Makes a viewport.

public DisplayViewport2(double centerX, double centerY, double width, double height, double viewCenterX, double viewCenterY, double scale, double twist, DisplayList2 model, ISet<string> frozenLayers, DisplayStyle style, string handle, string layer)

Parameters

centerX double

The X of the centre of the frame, in paper units.

centerY double

The Y of the centre of the frame, in paper units.

width double

The width of the frame in paper units.

height double

The height of the frame in paper units.

viewCenterX double

The X of the point of model space at the centre of the frame.

viewCenterY double

The Y of the point of model space at the centre of the frame.

scale double

The paper length of one unit of model space: a viewport at 1:20 has 0.05.

twist double

The angle the view is turned by, in radians.

model DisplayList2

The model-space items it shows.

frozenLayers ISet<string>

The layers frozen in this viewport, which it leaves out; may be null.

style DisplayStyle

How its frame is drawn.

handle string

The handle of the viewport entity.

layer string

The layer of the viewport entity.