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
centerXdoubleThe X of the centre of the frame, in paper units.
centerYdoubleThe Y of the centre of the frame, in paper units.
widthdoubleThe width of the frame in paper units.
heightdoubleThe height of the frame in paper units.
viewCenterXdoubleThe X of the point of model space at the centre of the frame.
viewCenterYdoubleThe Y of the point of model space at the centre of the frame.
scaledoubleThe paper length of one unit of model space: a viewport at 1:20 has 0.05.
twistdoubleThe angle the view is turned by, in radians.
modelDisplayList2The model-space items it shows.
frozenLayersISet<string>The layers frozen in this viewport, which it leaves out; may be null.
styleDisplayStyleHow its frame is drawn.
handlestringThe handle of the viewport entity.
layerstringThe layer of the viewport entity.