TarzaNN
TarzaNN neural network simulator
|
#include <UI_DesignerPlane.h>
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 |
FeaturePlaneAbstract * | featurePlane |
Protected Member Functions | |
void | drawShape (QPainter &painter) |
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.
UI_DesignerPlane::UI_DesignerPlane | ( | Q3Canvas * | canvas, |
FeaturePlaneAbstract * | fp | ||
) |
Creates a new UI_DesignerPlane. The canvas is passed on to the QCanvasRectangle constructor.
canvas | The parent canvas of this UI_DesignerPlane |
fp | The FeaturePlaneAbstract which this UI_DesignerPlane represents graphically |
UI_DesignerPlane::~UI_DesignerPlane | ( | ) |
Destroys the object and frees any allocated resources
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.
painter | The 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.
selected | Specifies whether this UI_DesignerPlane is the currently selected item |
The FeaturePlaneAbstract which this UI_DesignerPlane represents graphically
Q3CanvasItemList* UI_DesignerPlane::InConnectionsList |
The list of all incoming UI_DesignerConnections
Q3CanvasItemList* UI_DesignerPlane::OutConnectionsList |
The list of all outgoing UI_DesignerConnections.