Inheritance: AbstractEnvironmentType
Exemplo n.º 1
0
        protected override void SetOutputs(IGH_DataAccess da)
        {
            SurfaceEnvironmentType environment = new SurfaceEnvironmentType(srf, wrap);

            da.SetData(nextOutputIndex++, environment);
            da.SetData(nextOutputIndex++, environment.RefEnvironment);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            // If parameter cannot be cast to ThreeDPoint return false:
            SurfaceEnvironmentType p = obj as SurfaceEnvironmentType;

            if (p == null)
            {
                return(false);
            }

            return(base.Equals(obj) && environment.Equals(p.environment));
        }
Exemplo n.º 3
0
    // Copy Constructor
    public SurfaceEnvironmentType(SurfaceEnvironmentType environment)
    {
      this.environment = environment.environment;
      Width = environment.Width;
      Height = environment.Height;
      Wrap = environment.Wrap;
      RefEnvironment = environment.RefEnvironment;

      Interval uDom = RefEnvironment.Domain(0);
      Interval vDom = RefEnvironment.Domain(1);

      minX = uDom.Min;
      maxX = uDom.Max;
      minY = vDom.Min;
      maxY = vDom.Max;
    }
Exemplo n.º 4
0
        // Copy Constructor
        public SurfaceEnvironmentType(SurfaceEnvironmentType environment)
        {
            this.environment = environment.environment;
            Width            = environment.Width;
            Height           = environment.Height;
            Wrap             = environment.Wrap;
            RefEnvironment   = environment.RefEnvironment;

            Interval uDom = RefEnvironment.Domain(0);
            Interval vDom = RefEnvironment.Domain(1);

            minX = uDom.Min;
            maxX = uDom.Max;
            minY = vDom.Min;
            maxY = vDom.Max;
        }
Exemplo n.º 5
0
        protected override void SetOutputs(IGH_DataAccess da)
        {
            AbstractEnvironmentType environment = new SurfaceEnvironmentType(srf, false);

            da.SetData(nextOutputIndex++, environment);
        }
Exemplo n.º 6
0
 protected override void SetOutputs(IGH_DataAccess da)
 {
   SurfaceEnvironmentType environment = new SurfaceEnvironmentType(srf, wrap);
   da.SetData(nextOutputIndex++, environment);
   da.SetData(nextOutputIndex++, environment.RefEnvironment);
 }
Exemplo n.º 7
0
 public bool Equals(SurfaceEnvironmentType p)
 {
   return base.Equals(p) && environment.Equals(p.environment);
 }
Exemplo n.º 8
0
 public bool Equals(SurfaceEnvironmentType p)
 {
     return(base.Equals(p) && environment.Equals(p.environment));
 }
 protected override void SetOutputs(IGH_DataAccess da)
 {
   AbstractEnvironmentType environment = new SurfaceEnvironmentType(srf, false);
   da.SetData(nextOutputIndex++, environment);
 }