コード例 #1
0
ファイル: Boundary.cs プロジェクト: dorchard/mucell
 public Boundary()
 {
     this.shape = BoundaryShapes.Cuboid;
     this.width = 0;
     this.height = 0;
     this.depth = 0;
     this.radius = 0;
 }
コード例 #2
0
ファイル: Boundary.cs プロジェクト: dorchard/mucell
 /// <summary>
 /// Boundary constructor
 /// </summary>
 /// <param name="shape">Boundary geometry</param>
 /// <param name="width">Width of the cuboid</param>
 /// <param name="height">Height of the cuboid / cylinder</param>
 /// <param name="depth">Depth of the cuboid</param>
 /// <param name="radius">Radius of the cylinder / sphere</param>
 public Boundary(BoundaryShapes shape,float width,float height,float depth,float radius)
 {
     this.shape = shape;
     this.width = width;
     this.height = height;
     this.depth = depth;
     this.radius = radius;
 }
コード例 #3
0
        /// <summary>
        /// Sets which radio button is selected in the spatial settings tab.
        /// </summary>
        /// <param name="shape"></param>
        public void setBoundaryShape(BoundaryShapes shape)
        {
            switch (shape)
            {
                case BoundaryShapes.Cuboid:

                    cuboidRadioButton.Checked = true;
                    break;

                case BoundaryShapes.Cylinder:

                    cylinderRadioButton.Checked = true;
                    break;

                case BoundaryShapes.Sphere:

                    sphereRadioButton.Checked = true;
                    break;
            }
        }