TarzaNN
TarzaNN neural network simulator
|
#include <UI_DesignerConnection.h>
Public Member Functions | |
UI_DesignerConnection (UI_DesignerPlane *origin, UI_DesignerPlane *destination, Q3Canvas *canvas, FeaturePlaneInput *fpi) | |
~UI_DesignerConnection () | |
void | setConnColors (bool selected) |
Q3PointArray | areaPoints () const |
Public Attributes | |
UI_DesignerPlane * | originPlane |
UI_DesignerPlane * | destinationPlane |
FeaturePlaneInput * | featurePlaneInput |
Protected Member Functions | |
void | drawShape (QPainter &painter) |
Graphic representation of FeaturePlaneInput objects. Inherits from QCanvasLine. Each UI_DesignerConnection has a property of type FeaturePlaneInput which this UI_DesignerConnection represents and two properties of type UI_DesignerPlane one of which specifies the origin f. plane and the other the destination f. plane. Graphically UI_DesignerConnections are represented as arrows where the base of the arrow is connected to the bottom of the origin f. plane and the tip of the arrow is connected to the top of the destination feature plane. The color of a given UI_DesignerConnection indicates the destination input type property of its FeaturePlaneInput.
UI_DesignerConnection::UI_DesignerConnection | ( | UI_DesignerPlane * | origin, |
UI_DesignerPlane * | destination, | ||
Q3Canvas * | canvas, | ||
FeaturePlaneInput * | fpi | ||
) |
Creates a new UI_DesignerConnection. Its base is connected to the origin plane and its tip is connected to the destination plane. The canvas is passed on to the QCanvasLine constructor.
origin | The origin plane of this UI_DesignerConnection |
destination | The destination plane of this UI_DesignerConnection |
canvas | The parent canvas of this UI_DesignerConnection |
fpi | The FeaturePlaneInput which this UI_DesignerConnection represents graphically |
UI_DesignerConnection::~UI_DesignerConnection | ( | ) |
Destroys the object and frees any allocated resources.
Q3PointArray UI_DesignerConnection::areaPoints | ( | ) | const |
Returns the points bounding (i.e. outside and not touching) this UI_DesignerConnection. Reimplemented from QCanvasLine.
void UI_DesignerConnection::drawShape | ( | QPainter & | painter | ) | [protected] |
Draws the shape of this UI_DesignerConnection. The pen and brush of painter are already set prior to calling this function. Reimplemented from QCanvasLine.
painter | The painter for this UI_DesignerConnection |
void UI_DesignerConnection::setConnColors | ( | bool | selected | ) |
Sets the pen and brush of this UI_DesignerConnection acoording to the properties of featurePlaneInput.
selected | Specifies whether this UI_DesignerConnection is the currently selected item |
The destination plane.
The FeaturePLaneInput which this UI_DesignerConnection represents graphically
The origin plane.