コード例 #1
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
        public object Clone()
        {
            GDIGraphics3D gdiGraphics3D = new GDIGraphics3D(this.graphicsConfig_0, this.matrix4D_0);

            gdiGraphics3D.method_0(this);
            return((object)gdiGraphics3D);
        }
コード例 #2
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
 public void AddDrawables(
     DxfModel model,
     IList <DxfEntity> modelSpaceEntities,
     Matrix4D modelTransform)
 {
     GDIGraphics3D.smethod_0();
     WireframeGraphicsFactoryUtil.CreateDrawables((IWireframeGraphicsFactory) new GDIGraphics3D.Class942(this), this.graphicsConfig_0, model, modelSpaceEntities, modelTransform);
 }
コード例 #3
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
 public void AddDrawables(DxfModel model, DxfLayout layout, ICollection <DxfViewport> viewports)
 {
     GDIGraphics3D.smethod_0();
     WireframeGraphicsFactoryUtil.CreateDrawables((IWireframeGraphicsFactory) new GDIGraphics3D.Class942(this), this.graphicsConfig_0, model, layout, viewports);
     if (this.dxfLayout_0 != null)
     {
         return;
     }
     this.dxfLayout_0 = this.Layout;
 }
コード例 #4
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
 public void CreateDrawables(
     DxfModel model,
     DxfLayout layout,
     IList <DxfEntity> entities,
     Matrix4D modelTransform)
 {
     GDIGraphics3D.smethod_0();
     this.Clear();
     WireframeGraphicsFactoryUtil.CreateDrawables((IWireframeGraphicsFactory) new GDIGraphics3D.Class942(this), this.graphicsConfig_0, model, layout, entities, modelTransform);
     if (this.dxfLayout_0 != null)
     {
         return;
     }
     this.dxfLayout_0 = this.Layout;
 }
コード例 #5
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
 public Class942(GDIGraphics3D graphics)
 {
     this.graphicsConfig_0    = graphics.graphicsConfig_0;
     this.linkedListNodeRef_0 = new LinkedListNodeRef <Interface12>(graphics.linkedList_0, graphics.linkedList_0.Last);
     this.linkedListNodeRef_1 = new LinkedListNodeRef <Interface12>(graphics.linkedList_1, graphics.linkedList_1.Last);
     this.float_0             = graphics.float_0;
     this.float_1             = graphics.float_1;
     this.bool_0       = graphics.bool_0;
     this.bool_1       = graphics.bool_1;
     this.dictionary_0 = graphics.dictionary_0;
     if (!graphics.bool_1)
     {
         return;
     }
     this.stack_0 = new Stack <GDIGraphics3D.Class941>();
 }
コード例 #6
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
        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);
                }
            }
        }
コード例 #7
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
 private void method_0(GDIGraphics3D from)
 {
     this.dxfLayout_0 = from.dxfLayout_0;
 }
コード例 #8
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
 public IWireframeGraphicsFactory CreateGraphicsFactory()
 {
     GDIGraphics3D.smethod_0();
     return((IWireframeGraphicsFactory) new GDIGraphics3D.Class942(this));
 }
コード例 #9
0
ファイル: GDIGraphics3D.cs プロジェクト: 15831944/WW
 public void CreateDrawables(DxfModel model, Matrix4D modelTransform)
 {
     GDIGraphics3D.smethod_0();
     this.Clear();
     WireframeGraphicsFactoryUtil.CreateDrawables((IWireframeGraphicsFactory) new GDIGraphics3D.Class942(this), this.graphicsConfig_0, model, modelTransform);
 }