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

#include <UI_DesignerPlane.h>

List of all members.

Public Member Functions

 UI_DesignerPlane (Q3Canvas *canvas, FeaturePlaneAbstract *fp)
 ~UI_DesignerPlane ()
QString getName ()
QString getType ()
void setPlaneColors (bool selected)

Public Attributes

Q3CanvasItemList * InConnectionsList
Q3CanvasItemList * OutConnectionsList
FeaturePlaneAbstractfeaturePlane

Protected Member Functions

void drawShape (QPainter &painter)

Detailed Description

Graphic representation of FeaturePlaneAbstract objects. Inherits from QCanvasRectangle. Each UI_DesignerPlane has a property of type FeaturePlaneAbstract which this UI_DesignerPlane represents. UI_DesignerPlanes also have two lists of UI_DesignerConnections. One stores the incoming UI_DesignerConnections and the other the outgoing UI_DesignerConnections. Graphically UI_DesignerPlanes are represented as rectangles. The color of a given UI_DesignerPlane indicates the type property of its FeaturePlaneAbstract.


Constructor & Destructor Documentation

UI_DesignerPlane::UI_DesignerPlane ( Q3Canvas *  canvas,
FeaturePlaneAbstract fp 
)

Creates a new UI_DesignerPlane. The canvas is passed on to the QCanvasRectangle constructor.

Parameters:
canvasThe parent canvas of this UI_DesignerPlane
fpThe FeaturePlaneAbstract which this UI_DesignerPlane represents graphically
UI_DesignerPlane::~UI_DesignerPlane ( )

Destroys the object and frees any allocated resources


Member Function Documentation

void UI_DesignerPlane::drawShape ( QPainter &  painter) [protected]

Draws the shape of this UI_DesignerPlane. The pen and brush of painter are already set prior to calling this function. Reimplemented from QCanvasRectangle.

Parameters:
painterThe painter for this UI_DesignerPlane
QString UI_DesignerPlane::getName ( )

Returns the name of this UI_DesignerPlane.

QString UI_DesignerPlane::getType ( )

Returns the type of this UI_DesignerPlane.

void UI_DesignerPlane::setPlaneColors ( bool  selected)

Sets the pen and brush of this UI_DesignerPlane acoording to the properties of featurePlane.

Parameters:
selectedSpecifies whether this UI_DesignerPlane is the currently selected item

Member Data Documentation

The FeaturePlaneAbstract which this UI_DesignerPlane represents graphically

The list of all incoming UI_DesignerConnections

The list of all outgoing UI_DesignerConnections.


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