public Class385( GraphicsConfig graphicsConfig, Graphics graphics, SmoothingMode?textSmoothingMode, BlinnClipper4D drawingBoundsClipper, Matrix4D transform, Interface38 textLineWeightScaler, Interface38 nonTextLineWeightScaler, float fixedTextPenWidth, float fixedNonTextPenWidth, Interface22 nonTextColorContext, Interface22 textColorContext) { this.graphicsConfig_0 = graphicsConfig; this.graphics_0 = graphics; this.smoothingMode_0 = graphics.SmoothingMode; this.nullable_0 = textSmoothingMode; this.blinnClipper4D_0 = drawingBoundsClipper; this.matrix4D_0 = transform; this.interface38_1 = textLineWeightScaler; this.interface38_2 = nonTextLineWeightScaler; this.float_1 = fixedTextPenWidth; this.float_2 = fixedNonTextPenWidth; this.interface22_1 = nonTextColorContext; this.interface22_2 = textColorContext; this.interface22_0 = nonTextColorContext; this.interface38_0 = nonTextLineWeightScaler; this.float_0 = fixedNonTextPenWidth; }
public Class938( DxfViewport viewport, Matrix4D postTransform, double shapeFlattenEpsilon, double shapeFlattenEpsilonForBoundsCalculation, bool scaleLineTypes) { this.dxfViewport_0 = viewport; if (viewport == null) { throw new ArgumentException("Viewport may not be null"); } this.double_0 = shapeFlattenEpsilon; this.double_1 = shapeFlattenEpsilonForBoundsCalculation; this.matrix4D_0 = viewport.method_14(); this.matrix4D_1 = postTransform * viewport.method_15(); this.matrix4D_2 = this.matrix4D_1 * this.matrix4D_0; this.blinnClipper4D_0 = new BlinnClipper4D(viewport.FrontClippingActive, viewport.BackClippingActive); if (scaleLineTypes) { this.matrix3D_0 = viewport.method_16(); this.ilineTypeScaler_0 = Class624.Create(this.matrix3D_0); } else { this.matrix3D_0 = Matrix3D.Identity; this.ilineTypeScaler_0 = (ILineTypeScaler)Class624.Class626.class626_0; } }
public Class386( GraphicsConfig graphicsConfig, Graphics graphics, Rasterizer2D fastRasterizer, SmoothingMode?textSmoothingMode, BlinnClipper4D drawingBoundsClipper, Matrix4D transform, Interface38 textLineWeightScaler, Interface38 nonTextLineWeightScaler, float fixedTextPenWidth, float fixedNonTextPenWidth, Interface22 nonTextColorContext, Interface22 textColorContext) : base(graphicsConfig, graphics, textSmoothingMode, drawingBoundsClipper, transform, textLineWeightScaler, nonTextLineWeightScaler, fixedTextPenWidth, fixedNonTextPenWidth, nonTextColorContext, textColorContext) { this.rasterizer2D_0 = fastRasterizer; }
public Class1039( Graphics graphics, SmoothingMode?textSmoothingMode, BlinnClipper4D drawingBoundsClipper, ITransformer4D transformer, Interface22 nonTextColorContext, Interface22 textColorContext) { this.graphics_0 = graphics; this.smoothingMode_0 = graphics.SmoothingMode; this.nullable_0 = textSmoothingMode; this.blinnClipper4D_0 = drawingBoundsClipper; this.itransformer4D_0 = transformer; this.interface22_1 = nonTextColorContext; this.interface22_2 = textColorContext; this.interface22_0 = nonTextColorContext; }
private void method_4( Graphics graphics, BlinnClipper4D drawingBoundsClipper, Class385 context, Vector4D t1, Vector4D t2) { IList <Segment4D> segment4DList = drawingBoundsClipper.Clip(new Segment4D(t1, t2)); if (segment4DList.Count <= 0) { return; } Pen pen = this.method_2(context); foreach (Segment4D segment4D in (IEnumerable <Segment4D>)segment4DList) { Point3D start = (Point3D)segment4D.Start; Point3D end = (Point3D)segment4D.End; graphics.DrawLine(pen, (float)start.X, (float)start.Y, (float)end.X, (float)end.Y); } }
internal void Draw( Graphics graphics, Rasterizer2D fastRasterizer, Rectangle drawingBounds, System.Drawing.Color backColor) { GDIGraphics3D.smethod_0(); GraphicsConfig config = (GraphicsConfig)this.graphicsConfig_0.Clone(); config.BackColor = (ArgbColor)backColor; BlinnClipper4D drawingBoundsClipper = new BlinnClipper4D((double)drawingBounds.Left, (double)drawingBounds.Right, (double)drawingBounds.Top, (double)drawingBounds.Bottom, 0.0, 0.0, false, true); using (Class386 context = new Class386(this.graphicsConfig_0, graphics, fastRasterizer, this.nullable_0, drawingBoundsClipper, this.matrix4D_0, this.method_5(), this.method_6(), this.float_0, this.float_1, Class1002.Create(config, this.float_1), Class1002.Create(config, this.float_0))) { foreach (Interface12 nterface12 in this.linkedList_0) { nterface12.Draw(context); } foreach (Interface12 nterface12 in this.linkedList_1) { nterface12.Draw(context); } } if (this.nodeCollection_0 == null || this.nodeCollection_0.Count <= 0) { return; } foreach (WW.Cad.Drawing.Node node in (List <WW.Cad.Drawing.Node>) this.nodeCollection_0) { using (Pen pen = new Pen((System.Drawing.Color) this.graphicsConfig_0.NodeColor, node.HighLighted ? 2f : 1f)) { WW.Math.Point2D position = this.matrix4D_0.TransformTo2D(node.Position); GdiDrawUtil.DrawEditHandle(graphics, pen, position, this.graphicsConfig_0.NodeSize); } } }