Logo Search packages:      
Sourcecode: ktechlab version File versions

flowconnector.h

//
// C++ Interface: flowconnector
//
// Description: 
//
//
// Author: David Saxton, Alan Grimes, Zoltan Padrah <zoltan.padrah@gmail.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef FLOWCONNECTOR_H
#define FLOWCONNECTOR_H

#include <connector.h>

class FPNode;

/**
      @author David Saxton, Alan Grimes, Zoltan Padrah <zoltan.padrah@gmail.com>
      
      A flow connector, connecting 2 FPNodes
*/
00024 class FlowConnector : public Connector
{

public:
    FlowConnector(FPNode* startNode, FPNode* endNode, ICNDocument* _ICNDocument, QString* id = 0);

    ~FlowConnector();

      /**
       * Node at start of connector (which refers to this as the output connector)
       */
00035       virtual Node *startNode() const { return (Node *)startFpNode(); }
      FPNode *startFpNode() const { return m_startFpNode; }

      /**
       * Node at end of connector (which refers to this as the input connector)
       */
00041       virtual Node *endNode() const { return (Node *)endFpNode(); }
      FPNode *endFpNode() const { return m_endFpNode; }
      
private:
      /// the endnodes of the connector
00046       QGuardedPtr<FPNode> m_startFpNode;
      QGuardedPtr<FPNode> m_endFpNode;
      
};

#endif

Generated by  Doxygen 1.6.0   Back to index