Inheritance: AbstractEmitterType
Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            // If parameter cannot be cast to ThreeDPoint return false:
            SurfaceEmitterType p = obj as SurfaceEmitterType;

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

            return(base.Equals(obj) && srf.Equals(p.srf));
        }
Ejemplo n.º 2
0
 protected override void SetOutputs(IGH_DataAccess da)
 {
   AbstractEmitterType emitter = new SurfaceEmitterType(srf, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);
   da.SetData(nextOutputIndex++, emitter);
 }
Ejemplo n.º 3
0
 public bool Equals(SurfaceEmitterType p)
 {
     return(base.Equals(p) && srf.Equals(p.srf));
 }
Ejemplo n.º 4
0
 // Copy Constructor
 public SurfaceEmitterType(SurfaceEmitterType e)
     : base(e.continuousFlow, e.creationRate, e.numAgents, e.velocityMin, e.velocityMax)
 {
     srf = e.srf;
 }
Ejemplo n.º 5
0
 public bool Equals(SurfaceEmitterType p)
 {
   return base.Equals(p) && srf.Equals(p.srf);
 }
Ejemplo n.º 6
0
 // Copy Constructor
 public SurfaceEmitterType(SurfaceEmitterType e)
   : base(e.continuousFlow, e.creationRate, e.numAgents, e.velocityMin, e.velocityMax)
 {
   srf = e.srf;
 }
Ejemplo n.º 7
0
        protected override void SetOutputs(IGH_DataAccess da)
        {
            AbstractEmitterType emitter = new SurfaceEmitterType(srf, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);

            da.SetData(nextOutputIndex++, emitter);
        }