TarzaNN
TarzaNN neural network simulator
|
#include <UI_DesignerCanvas.h>
Signals | |
void | selectedChanged (Q3CanvasPolygonalItem *item) |
Public Member Functions | |
UI_DesignerCanvas (Network *NN, QWidget *parent=0, const char *name=0) | |
~UI_DesignerCanvas () | |
void | setSelected (Q3CanvasPolygonalItem *pr) |
Q3CanvasPolygonalItem * | getSelected () |
void | repositionConnections (UI_DesignerPlane *plane, bool originPlane) |
Public Attributes | |
Q3CanvasItemList * | planesList |
Q3CanvasItemList * | connsList |
Network * | NN |
The UI_DesignerCanvas class manages 2D graphic representations of the neural network. Inherits from QCanvas.
UI_DesignerCanvas::UI_DesignerCanvas | ( | Network * | NN, |
QWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Creates a new canvas. If NN is defined, displays the existing planes and the connections, otherwise creates an empty canvas.
NN | The neural network |
parent | The parent of this canvas |
name | The name of this canvas The name is passed on to the QCanvas constructor. |
UI_DesignerCanvas::~UI_DesignerCanvas | ( | ) |
Destroys the object and frees any allocated resources.
Q3CanvasPolygonalItem * UI_DesignerCanvas::getSelected | ( | ) |
Returns the currently selected item.
void UI_DesignerCanvas::repositionConnections | ( | UI_DesignerPlane * | plane, |
bool | originPlane | ||
) |
Rearanges the graphical representaion of the connections for a given plane. Called when the number of connections changes. For example when a new connection is added.
plane | The plane for which the connections should be rearanged |
originPlane | specifies whether the outgoing connections or the incoming connections should be rearanged |
void UI_DesignerCanvas::selectedChanged | ( | Q3CanvasPolygonalItem * | item | ) | [signal] |
This signal is emited when the scurrently selected item changes.
void UI_DesignerCanvas::setSelected | ( | Q3CanvasPolygonalItem * | pr | ) |
Changes the selected property to the new value. Highlights the selected item by changing its' color.
pr | The selected item |
Q3CanvasItemList* UI_DesignerCanvas::connsList |
List of all the connections.
The neural network.
Q3CanvasItemList* UI_DesignerCanvas::planesList |
List of all the planes.