Esempio n. 1
0
        // ----------------------------------------------------------------------------------------
        #region View3DImage

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

            WireframeNode?.UpdateDimensions(dimensions);
            _dimensions = dimensions;
        }
Esempio n. 2
0
        public WireframeNode AddNewChildNode()
        {
            WireframeNode childNode = new WireframeNode(WireframeImage)
            {
                Parent = this
            };

            Nodes.Add(childNode);
            return(childNode);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 private void SetWireframeNode(WireframeNode value)
 {
     _wireframeNode = value;
     try
     {
         SuspendImage();
         UpdateDimensions();
     }
     finally
     {
         ResumeImage();
     }
 }
Esempio n. 5
0
        // ----------------------------------------------------------------------------------------
        #region WireframeImage

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

            return(childNode);
        }