Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 protected override void PreSetup()
 {
     if (this._use_bounding_box_for_range)
     {
         if (this._bounding_box != null)
         {
             var valid_input = new ValueSpace {
                 _Max_Value = Math.Min(
                     this._bounding_box.Bounds.size.x,
                     Math.Min(this._bounding_box.Bounds.size.y, this._bounding_box.Bounds.size.z))
             };
             valid_input._Min_Value = -valid_input._Max_Value;
             this.SingleSpace       = valid_input;
         }
     }
 }
 protected override void Awake()
 {
     this.AddToEnvironment();
     if (this._use_bounding_box_for_range)
     {
         if (this._bounding_box != null)
         {
             var valid_input = new ValueSpace {
                 MaxValue = Math.Min(
                     this._bounding_box._bounds.size.x,
                     Math.Min(this._bounding_box._bounds.size.y, this._bounding_box._bounds.size.z))
             };
             valid_input.MinValue        = -valid_input.MaxValue;
             this.ConfigurableValueSpace = valid_input;
         }
     }
 }
Exemplo n.º 3
0
 /*
  * Constructors
  */
 public PUCType(int lineNumber, ValueSpace valspc, Hashtable labels, ValueSpace exp)
 {
     _lineNumber = lineNumber;
     _valueSpace = (ValueSpace)valspc.Clone();
     if (labels != null)
     {
         _valueLabels = (Hashtable)labels.Clone();
     }
     else
     {
         _valueLabels = null;
     }
     if (exp != null)
     {
         _expectedSpace = (ValueSpace)exp.Clone();
     }
     else
     {
         _expectedSpace = null;
     }
 }
Exemplo n.º 4
0
 public PUCType(ValueSpace valspc)
     : this(-1, valspc)
 {
 }
Exemplo n.º 5
0
 public PUCType(int lineNumber, ValueSpace valspc)
     : this(lineNumber, valspc, null)
 {
 }
Exemplo n.º 6
0
 public PUCType(int lineNumber, ValueSpace space, Hashtable labels)
     : this(lineNumber, space, labels, null)
 {
 }