isis/src/qisis/objs/RubberBandTool/RubberBandTool.cpp
void RubberBandTool::paintVerticesConnected(QPainter *painter) {
    for(int vertex = 1; vertex < p_vertices->size(); vertex++) {
      QPoint start = (*p_vertices)[vertex - 1];
      QPoint end = (*p_vertices)[vertex];

      painter->drawLine(start, end);
    }

    if(p_tracking && (p_vertices->size() > 0)) {
      QPoint start = (*p_vertices)[p_vertices->size() - 1];
      QPoint end = *p_mouseLoc;

      painter->drawLine(start, end);
    }
  }
/**
   * This paints connecting lines to p_vertices. If tracking, a line is also drawn to
   *   the mouse location.
   *
   * @param painter
   */
This paints connecting lines to p_vertices. If tracking, a line is also drawn to
the mouse location.

@param painter
This paints connecting lines to p_vertices . If tracking a line is also drawn to the mouse location . @param painter
void RubberBandTool::paintVerticesConnected(QPainter *painter) {
    for(int vertex = 1; vertex < p_vertices->size(); vertex++) {
      QPoint start = (*p_vertices)[vertex - 1];
      QPoint end = (*p_vertices)[vertex];
      painter->drawLine(start, end);
    }
    if(p_tracking && (p_vertices->size() > 0)) {
      QPoint start = (*p_vertices)[p_vertices->size() - 1];
      QPoint end = *p_mouseLoc;
      painter->drawLine(start, end);
    }
  }
void RubberBandTool :: paintVerticesConnected ( QPainter * painter ) { for ( int vertex = 1 ; vertex < p_vertices -> size ( ) ; vertex ++ ) { QPoint start = ( * p_vertices ) [ vertex - 1 ] ; QPoint end = ( * p_vertices ) [ vertex ] ; painter -> drawLine ( start , end ) ; } if ( p_tracking && ( p_vertices -> size ( ) > 0 ) ) { QPoint start = ( * p_vertices ) [ p_vertices -> size ( ) - 1 ] ; QPoint end = * p_mouseLoc ; painter -> drawLine ( start , end ) ; } }
This paints connecting lines to p_vertices.
This paints connecting lines to p_vertices .