Logo Search packages:      
Sourcecode: ktechlab version File versions

void Connector::rerouteConnector (  )  [inherited]

Reroute the connector. Note that if this connector is controlled by a NodeGroup, it will do nothing (other than print out a warning)

Definition at line 378 of file connector.cpp.

References Connector::endNode(), ConRouter::mapRoute(), Connector::nodeGroup(), Connector::startNode(), and Connector::updateConnectorPoints().

                                 {
      if (!isVisible()) return;

      if (nodeGroup()) {
            kdWarning() << k_funcinfo << "Connector is controlled by a NodeGroup! Use that to reroute the connector" << endl;
            return;
      }

      if (!startNode() || !endNode()) return;

      updateConnectorPoints(false);

      m_conRouter->mapRoute(int(startNode()->x()),
                        int(startNode()->y()),
                        int(endNode()->x()),
                              int(endNode()->y()));

      b_manualPoints = false;
      updateConnectorPoints(true);
}


Generated by  Doxygen 1.6.0   Back to index