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

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

            return(base.Equals(obj) && pt.Equals(p.pt));
        }
示例#2
0
 public bool Equals(PointEmitterType p)
 {
     return(base.Equals(p) && pt.Equals(p.pt));
 }
示例#3
0
 // Copy Constructor
 public PointEmitterType(PointEmitterType p)
     : base(p.continuousFlow, p.creationRate, p.numAgents, p.velocityMin, p.velocityMax)
 {
     pt = p.pt;
 }
示例#4
0
 public bool Equals(PointEmitterType p)
 {
   return base.Equals(p) && pt.Equals(p.pt);
 }
示例#5
0
 // Copy Constructor
 public PointEmitterType(PointEmitterType p)
   : base(p.continuousFlow, p.creationRate, p.numAgents, p.velocityMin, p.velocityMax)
 {
   pt = p.pt;
 }
示例#6
0
 protected override void SetOutputs(IGH_DataAccess da)
 {
   AbstractEmitterType emitterPt = new PointEmitterType(pt, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);
   da.SetData(nextOutputIndex++, emitterPt);
 }
示例#7
0
        protected override void SetOutputs(IGH_DataAccess da)
        {
            AbstractEmitterType emitterPt = new PointEmitterType(pt, continuousFlow, creationRate, numAgents, velocityMin, velocityMax);

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