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

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

            return(base.Equals(obj) && crv.Equals(p.crv));
        }
Esempio n. 2
0
 protected override void SetOutputs(IGH_DataAccess da)
 {
   AbstractEmitterType emitter = new CurveEmitterType(crv, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);
   da.SetData(nextOutputIndex++, emitter);
 }
Esempio n. 3
0
 public bool Equals(CurveEmitterType p)
 {
     return(base.Equals(p) && crv.Equals(p.crv));
 }
Esempio n. 4
0
 // Copy Constructor
 public CurveEmitterType(CurveEmitterType emitCrvType)
     : base(emitCrvType.continuousFlow, emitCrvType.creationRate, emitCrvType.numAgents, emitCrvType.velocityMin, emitCrvType.velocityMax)
 {
     crv = emitCrvType.crv;
 }
Esempio n. 5
0
        protected override void SetOutputs(IGH_DataAccess da)
        {
            AbstractEmitterType emitter = new CurveEmitterType(crv, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);

            da.SetData(nextOutputIndex++, emitter);
        }
Esempio n. 6
0
 public bool Equals(CurveEmitterType p)
 {
   return base.Equals(p) && crv.Equals(p.crv);
 }
Esempio n. 7
0
 // Copy Constructor
 public CurveEmitterType(CurveEmitterType emitCrvType)
   : base(emitCrvType.continuousFlow, emitCrvType.creationRate, emitCrvType.numAgents, emitCrvType.velocityMin, emitCrvType.velocityMax)
 {
   crv = emitCrvType.crv;
 }