ns-allinone-2.35/nam-1.15/queue.cc
void 
QueueItem::draw(View* nv, double time ) {
  BBox bb;
  nv->BoundingBox(bb);

  if (bb.inside(bb_)) {
    nv->fill(px_, py_, 4, paint_);
    if (monitor_ != NULL)
        monitor_->draw(nv, px_[0],py_[0]);
  }
}
//----------------------------------------------------------------------
// void 
// QueueItem::draw(View* nv, double time )
//   - Draws a packet queue on a link next to the node  
//   - only draw things that are within the bounding
//     box... otherwise, we might hang the display :( -kfall
//
//   - note: this is an incomplete fix; there remains
//           a bug where the packets in the queue aren't erased
//           properly when this case triggers 8/8/99
//
//           I believe I fixed this bug. It was due to th bounding 
//           box for the view was not being calculated properly so
//           queues would be cut off before they reached their proper
//           height.   -John Mehringer
//----------------------------------------------------------------------
void
QueueItem::draw(View* nv, double time )
Draws a packet queue on a link next to the node
only draw things that are within the bounding
box... otherwise, we might hang the display :( -kfall

this is an incomplete fix; there remains
a bug where the packets in the queue aren't erased
properly when this case triggers 8/8/99

I believe I fixed this bug. It was due to th bounding
box for the view was not being calculated properly so
queues would be cut off before they reached their proper
height.   -John Mehringer
void QueueItem :: draw ( View * nv double time ) Draws a packet queue on a link next to the node only draw things that are within the bounding box ... otherwise we might hang the display : ( - kfall this is an incomplete fix ; there remains a bug where the packets in the queue aren ' t erased properly when this case triggers 8 / 8 / 99 I believe I fixed this bug . It was due to th bounding box for the view was not being calculated properly so queues would be cut off before they reached their proper height . - John Mehringer
void 
QueueItem::draw(View* nv, double time ) {
  BBox bb;
  nv->BoundingBox(bb);
  if (bb.inside(bb_)) {
    nv->fill(px_, py_, 4, paint_);
    if (monitor_ != NULL)
        monitor_->draw(nv, px_[0],py_[0]);
  }
}
void QueueItem :: draw ( View * nv , double time ) { BBox bb ; nv -> BoundingBox ( bb ) ; if ( bb . inside ( bb_ ) ) { nv -> fill ( px_ , py_ , 4 , paint_ ) ; if ( monitor_ != NULL ) monitor_ -> draw ( nv , px_ [ 0 ] , py_ [ 0 ] ) ; } }
void
QueueItem::draw(View* nv, double time )
 Draws a packet queue on a link next to the node
 only draw things that are within the bounding
box... otherwise, we might hang the display :( -kfall
void QueueItem :: draw ( View * nv double time ) Draws a packet queue on a link next to the node only draw things that are within the bounding box ... otherwise we might hang the display : ( - kfall