TarzaNN
TarzaNN neural network simulator
C:/Users/albertlr/projects/TarzaNN/TarzaNN/UI_DesignerConnection.h
Go to the documentation of this file.
00001 /****************************************************************************
00002  **
00003  ** Copyright C 2002-2012 Laboratory for Active and Attentive Vision (LAAV), Department of Computer Science and Engineering, York University, Toronto, ON, Canada.
00004  ** All rights reserved.
00005  **
00006  ** This file is part of the TarzaNN Neural Network Simulator.
00007  **
00008  ** This file may be distributed and/or modified under the terms of the
00009  ** GNU General Public License version 2 as published by the Free Software
00010  ** Foundation and appearing in the file LICENSE.GPL included in the
00011  ** packaging of this file.
00012  **
00013  ** See http://www.tarzann.org/gpl/ for GPL licensing information.
00014  **
00015  ** Contact info@tarzann.org if any conditions of this licensing are
00016  ** not clear to you.
00017  **
00018  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00019  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00020  **
00021  ****************************************************************************/
00022 
00023 #ifndef CONNECTION_H
00024 #define CONNECTION_H
00025 
00026 
00027 #include <QMap>
00028 #include <q3canvas.h>
00029 #include <q3pointarray.h>
00030 #include "UI_DesignerPlane.h"
00031 #include "FeaturePlaneInput.h"
00032 
00044 class UI_DesignerConnection : public Q3CanvasLine
00045 {
00046     
00047 public:
00048         
00059     UI_DesignerConnection(UI_DesignerPlane* origin, UI_DesignerPlane* destination, Q3Canvas * canvas, FeaturePlaneInput *fpi);
00060 
00064         ~UI_DesignerConnection();
00065 
00073         void setConnColors(bool selected);
00074 
00081         Q3PointArray areaPoints() const;
00082 
00086         UI_DesignerPlane * originPlane;
00087 
00091         UI_DesignerPlane * destinationPlane;
00092 
00097         FeaturePlaneInput * featurePlaneInput;
00098 
00099 protected:
00100 
00107         void drawShape ( QPainter & painter );
00108         
00109 private:
00110 
00114         static double arrowSize;
00115 
00119         QMap<QString,QString> colorScheme;
00120 
00121 };
00122 
00123 
00124 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines