Logo Search packages:      
Sourcecode: ktechlab version File versions

Connector * FPNode::createInputConnector ( Node startNode  )  [inherited]

Creates a new connector, sets this as the end node to the connector (i.e. this node is the connector's input node), and returns a pointer to the connector.

Definition at line 150 of file fpnode.cpp.

References FPNode::acceptInput(), and FPNode::addInputConnector().

Referenced by FlowICNDocument::createConnector(), and FlowICNDocument::joinConnectors().

      if( (!acceptInput()) || !startNode )
            return 0l;
      // FIXME dynamic_cast used
      Connector *connector = new FlowConnector( dynamic_cast<FPNode*>(startNode), dynamic_cast<FPNode*>(this), p_icnDocument );
      return connector;

Generated by  Doxygen 1.6.0   Back to index