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

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

            return(base.Equals(obj) && box.Equals(p.box));
        }
        protected override void SetOutputs(IGH_DataAccess da)
        {
            AbstractEmitterType emitter = new BoxEmitterType(box, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);

            da.SetData(nextOutputIndex++, emitter);
        }
Exemple #3
0
 public bool Equals(BoxEmitterType p)
 {
   return base.Equals(p) && box.Equals(p.box);
 }
Exemple #4
0
 // Copy Constructor
 public BoxEmitterType(BoxEmitterType boxEmitter)
 {
   box = boxEmitter.box;
 }
Exemple #5
0
 public bool Equals(BoxEmitterType p)
 {
     return(base.Equals(p) && box.Equals(p.box));
 }
Exemple #6
0
 // Copy Constructor
 public BoxEmitterType(BoxEmitterType boxEmitter)
 {
     box = boxEmitter.box;
 }
 protected override void SetOutputs(IGH_DataAccess da)
 {
   AbstractEmitterType emitter = new BoxEmitterType(box, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);
   da.SetData(nextOutputIndex++, emitter);
 }