コード例 #1
0
ファイル: WireframeImage.cs プロジェクト: widovd/NEUNET
        // ----------------------------------------------------------------------------------------
        #region View3DImage

        public void UpdateDimensions()
        {
            WireframeDimensions dimensions = new WireframeDimensions();

            WireframeNode?.UpdateDimensions(dimensions);
            _dimensions = dimensions;
        }
コード例 #2
0
ファイル: WireframeNode.cs プロジェクト: widovd/NEUNET
        public WireframeNode AddNewChildNode()
        {
            WireframeNode childNode = new WireframeNode(WireframeImage)
            {
                Parent = this
            };

            Nodes.Add(childNode);
            return(childNode);
        }
コード例 #3
0
ファイル: WireframeImage.cs プロジェクト: widovd/NEUNET
 public override void DrawImage(Bitmap bitmap)
 {
     if (WireframeNode == null)
     {
         return;
     }
     base.DrawImage(bitmap);
     WireframeNode.CalculatePointsF(VectorLength * UnitVectorLength, point => Project(point));
     using (Graphics graphics = Graphics.FromImage(bitmap))
         WireframeNode.DrawWireframes(graphics, this);
     GradientBitmap.DrawLegend(bitmap, minValue, maxValue, "G4", ColorGradient, InverseGradient, null);
 }
コード例 #4
0
ファイル: WireframeImage.cs プロジェクト: widovd/NEUNET
 private void SetWireframeNode(WireframeNode value)
 {
     _wireframeNode = value;
     try
     {
         SuspendImage();
         UpdateDimensions();
     }
     finally
     {
         ResumeImage();
     }
 }
コード例 #5
0
ファイル: WireframeImage.cs プロジェクト: widovd/NEUNET
        // ----------------------------------------------------------------------------------------
        #region WireframeImage

        public WireframeNode CreateRootNode()
        {
            WireframeNode childNode = new WireframeNode(this);

            return(childNode);
        }