isis/src/qisis/objs/Tool/Tool.cpp
void Tool::setCubeViewport(MdiCubeViewport *cvp) {
    if(cvp == m_cvp) {
      updateTool();
      return;
    }

    if(m_active)
      removeViewportConnections();

    m_cvp = cvp;

    if(m_active) {
      addViewportConnections();
      enableToolBar();
    }
    else {
      updateTool();
    }

    emit viewportChanged();
  }
/**
   * Sets the current viewport to the given cvp
   *
   * @param cvp
   */
Sets the current viewport to the given cvp
@param cvp
Sets the current viewport to the given cvp @param cvp
void Tool::setCubeViewport(MdiCubeViewport *cvp) {
    if(cvp == m_cvp) {
      updateTool();
      return;
    }
    if(m_active)
      removeViewportConnections();
    m_cvp = cvp;
    if(m_active) {
      addViewportConnections();
      enableToolBar();
    }
    else {
      updateTool();
    }
    emit viewportChanged();
  }
void Tool :: setCubeViewport ( MdiCubeViewport * cvp ) { if ( cvp == m_cvp ) { updateTool ( ) ; return ; } if ( m_active ) removeViewportConnections ( ) ; m_cvp = cvp ; if ( m_active ) { addViewportConnections ( ) ; enableToolBar ( ) ; } else { updateTool ( ) ; } emit viewportChanged ( ) ; }
Sets the current viewport to the given cvp
 @param cvp
Sets the current viewport to the given cvp @param cvp