File indexing completed on 2024-04-21 05:43:36

0001 //
0002 // C++ Interface: flowconnector
0003 //
0004 // Description:
0005 //
0006 //
0007 // Author: David Saxton, Alan Grimes, Zoltan Padrah <zoltan.padrah@gmail.com>, (C) 2008
0008 //
0009 // Copyright: See COPYING file that comes with this distribution
0010 //
0011 //
0012 #ifndef FLOWCONNECTOR_H
0013 #define FLOWCONNECTOR_H
0014 
0015 //#include "fpnode.h"
0016 #include "connector.h"
0017 
0018 class FPNode;
0019 
0020 /**
0021     @author David Saxton, Alan Grimes, Zoltan Padrah <zoltan.padrah@gmail.com>
0022 
0023     A flow connector, connecting 2 FPNodes
0024 */
0025 class FlowConnector : public Connector
0026 {
0027 public:
0028     FlowConnector(FPNode *startNode, FPNode *endNode, ICNDocument *_ICNDocument, QString *id = nullptr);
0029 
0030     ~FlowConnector() override;
0031 
0032     /**
0033      * Node at start of connector (which refers to this as the output connector)
0034      */
0035     Node *startNode() const override; // { return m_startFpNode );
0036 
0037     /**
0038      * Node at end of connector (which refers to this as the input connector)
0039      */
0040     Node *endNode() const override; // { return m_endFpNode; }
0041 
0042 private:
0043     /// the endnodes of the connector
0044     QPointer<FPNode> m_startFpNode;
0045     QPointer<FPNode> m_endFpNode;
0046 };
0047 
0048 #endif