Inheritance: AbstractEmitterType
Example #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));
        }
Example #2
0
 protected override void SetOutputs(IGH_DataAccess da)
 {
   AbstractEmitterType emitter = new CurveEmitterType(crv, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);
   da.SetData(nextOutputIndex++, emitter);
 }
Example #3
0
 public bool Equals(CurveEmitterType p)
 {
     return(base.Equals(p) && crv.Equals(p.crv));
 }
Example #4
0
 // Copy Constructor
 public CurveEmitterType(CurveEmitterType emitCrvType)
     : base(emitCrvType.continuousFlow, emitCrvType.creationRate, emitCrvType.numAgents, emitCrvType.velocityMin, emitCrvType.velocityMax)
 {
     crv = emitCrvType.crv;
 }
Example #5
0
        protected override void SetOutputs(IGH_DataAccess da)
        {
            AbstractEmitterType emitter = new CurveEmitterType(crv, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);

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