TarzaNN
TarzaNN neural network simulator
Public Member Functions | Public Attributes | Protected Member Functions
UI_DesignerConnection Class Reference

#include <UI_DesignerConnection.h>

List of all members.

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_DesignerPlaneoriginPlane
UI_DesignerPlanedestinationPlane
FeaturePlaneInputfeaturePlaneInput

Protected Member Functions

void drawShape (QPainter &painter)

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
originThe origin plane of this UI_DesignerConnection
destinationThe destination plane of this UI_DesignerConnection
canvasThe parent canvas of this UI_DesignerConnection
fpiThe FeaturePlaneInput which this UI_DesignerConnection represents graphically
UI_DesignerConnection::~UI_DesignerConnection ( )

Destroys the object and frees any allocated resources.


Member Function Documentation

Q3PointArray UI_DesignerConnection::areaPoints ( ) const

Returns the points bounding (i.e. outside and not touching) this UI_DesignerConnection. Reimplemented from QCanvasLine.

Returns:
The points bounding this UI_DesignerConnection
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.

Parameters:
painterThe 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.

Parameters:
selectedSpecifies whether this UI_DesignerConnection is the currently selected item

Member Data Documentation

The destination plane.

The FeaturePLaneInput which this UI_DesignerConnection represents graphically

The origin plane.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines