示例#1
0
        /// <summary>
        /// Sets the element's visible.
        /// </summary>
        /// <param name="gf"></param>
        public static void SetExtrusionVisible(this GenericForm gf)
        {
            var visibility = gf.GetVisibility();

            // No display on plane view.
            visibility.IsShownInTopBottom = false;

            gf.SetVisibility(visibility);
        }
示例#2
0
        /// <summary>
        ///     Sets the element's visible.
        /// </summary>
        /// <param name="gf"></param>
        public static void SetExtrusionVisible(this GenericForm gf)
        {
            if (gf == null)
            {
                throw new ArgumentNullException(nameof(gf));
            }

            var visibility = gf.GetVisibility();

            // No display on plane view.
            visibility.IsShownInTopBottom = false;

            gf.SetVisibility(visibility);
        }
示例#3
0
        private void Stream( ArrayList data, GenericForm genForm )
        {
            data.Add( new Snoop.Data.ClassSeparator( typeof( GenericForm ) ) );

              data.Add( new Snoop.Data.Bool( "Visible", genForm.Visible ) );
              data.Add( new Snoop.Data.Bool( "Is solid", genForm.IsSolid ) );

              try
              {
            data.Add( new Snoop.Data.Object( "Visibillity", genForm.GetVisibility() ) );
              }
              catch { }

              Blend blend = genForm as Blend;
              if( blend != null )
              {
            Stream( data, blend );
            return;
              }

              Extrusion ext = genForm as Extrusion;
              if( ext != null )
              {
            Stream( data, ext );
            return;
              }

              Revolution rev = genForm as Revolution;
              if( rev != null )
              {
            Stream( data, rev );
            return;
              }

              Sweep sweep = genForm as Sweep;
              if( sweep != null )
              {
            Stream( data, sweep );
            return;
              }

              Form form = genForm as Form;
              if( form != null )
              {
            Stream( data, form );
            return;
              }

              SweptBlend sweptBlend = genForm as SweptBlend;
              if( sweptBlend != null )
              {
            Stream( data, sweptBlend );
            return;
              }
        }