TarzaNN
TarzaNN neural network simulator
Signals | Public Member Functions | Public Attributes
UI_DesignerCanvas Class Reference

#include <UI_DesignerCanvas.h>

List of all members.

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
NetworkNN

Detailed Description

The UI_DesignerCanvas class manages 2D graphic representations of the neural network. Inherits from QCanvas.


Constructor & Destructor Documentation

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.

Parameters:
NNThe neural network
parentThe parent of this canvas
nameThe 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.


Member Function Documentation

Q3CanvasPolygonalItem * UI_DesignerCanvas::getSelected ( )

Returns the currently selected item.

Returns:
The 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.

Parameters:
planeThe plane for which the connections should be rearanged
originPlanespecifies 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.

Parameters:
prThe selected item

Member Data Documentation

Q3CanvasItemList* UI_DesignerCanvas::connsList

List of all the connections.

The neural network.

Q3CanvasItemList* UI_DesignerCanvas::planesList

List of all the planes.


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