isis/src/qisis/objs/RubberBandTool/RubberBandTool.cpp
void RubberBandTool::paintRectangle(QPoint upperLeft, QPoint upperRight,
                                      QPoint lowerLeft, QPoint lowerRight, QPainter *painter) {
    painter->drawLine(upperLeft, upperRight);
    painter->drawLine(upperRight, lowerRight);
    painter->drawLine(lowerRight, lowerLeft);
    painter->drawLine(lowerLeft, upperLeft);
  }
/**
   * This draws a box around the 4 points using the painter.
   *
   * @param upperLeft Initial corner
   * @param upperRight Corner connected to upperLeft, lowerRight
   * @param lowerLeft Corner connected to lowerRight, upperLeft
   * @param lowerRight Corner connected to lowerLeft, upperRight
   * @param painter
   */
This draws a box around the 4 points using the painter.
This draws a box around the 4 points using the painter .
void RubberBandTool::paintRectangle(QPoint upperLeft, QPoint upperRight,
                                      QPoint lowerLeft, QPoint lowerRight, QPainter *painter) {
    painter->drawLine(upperLeft, upperRight);
    painter->drawLine(upperRight, lowerRight);
    painter->drawLine(lowerRight, lowerLeft);
    painter->drawLine(lowerLeft, upperLeft);
  }
void RubberBandTool :: paintRectangle ( QPoint upperLeft , QPoint upperRight , QPoint lowerLeft , QPoint lowerRight , QPainter * painter ) { painter -> drawLine ( upperLeft , upperRight ) ; painter -> drawLine ( upperRight , lowerRight ) ; painter -> drawLine ( lowerRight , lowerLeft ) ; painter -> drawLine ( lowerLeft , upperLeft ) ; }
This draws a box around the 4 points using the painter.
This draws a box around the 4 points using the painter .