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

#include <UI_Layer.h>

Inheritance diagram for UI_Layer:
UI_Widget Observer

List of all members.

Public Member Functions

 UI_Layer (Layer *layer, QWidget *parent, const char *name=0, Qt::WFlags fl=0)
 ~UI_Layer (void)
virtual void updateNN (Observer *sourceFP, bool functional)
virtual void resizeEvent (QResizeEvent *e)
virtual void paintEvent (QPaintEvent *e)

Protected Member Functions

void DrawArrow (QPainter *painter, float x_center, float y_center, int length, int distance_from_center, float angle)
void Init ()
void Destroy ()
void DrawLayer ()
void UpdateLabels ()
int Pos (int speed, int dir)
void GetLengthAndOffset (float &length, int &offset)
QTransform GetTransform (float x_center, float y_center, int length, int distance_from_center, float angle, float y_squeeze=1)
float ConvertDirToDeg (int dirs, int dir)

Protected Attributes

Layer_layer
QPolygonF _arrow
QList< QLabel * > _fpLabels
int _numberDirections
int _numberSpeeds
int _numberGradients
const float _arrow_Width
const float _arrow_Length

Constructor & Destructor Documentation

UI_Layer::UI_Layer ( Layer layer,
QWidget *  parent,
const char *  name = 0,
Qt::WFlags  fl = 0 
)
UI_Layer::~UI_Layer ( void  )

Member Function Documentation

float UI_Layer::ConvertDirToDeg ( int  dirs,
int  dir 
) [protected]
void UI_Layer::Destroy ( ) [protected]
void UI_Layer::DrawArrow ( QPainter *  painter,
float  x_center,
float  y_center,
int  length,
int  distance_from_center,
float  angle 
) [protected]
void UI_Layer::DrawLayer ( ) [protected]
void UI_Layer::GetLengthAndOffset ( float &  length,
int &  offset 
) [protected]
QTransform UI_Layer::GetTransform ( float  x_center,
float  y_center,
int  length,
int  distance_from_center,
float  angle,
float  y_squeeze = 1 
) [protected]
void UI_Layer::Init ( ) [protected]
void UI_Layer::paintEvent ( QPaintEvent *  e) [virtual]
int UI_Layer::Pos ( int  speed,
int  dir 
) [protected]
void UI_Layer::resizeEvent ( QResizeEvent *  e) [virtual]
void UI_Layer::UpdateLabels ( ) [protected]
void UI_Layer::updateNN ( Observer sourceFP,
bool  functional 
) [virtual]

Implements Observer.


Member Data Documentation

QPolygonF UI_Layer::_arrow [protected]
const float UI_Layer::_arrow_Length [protected]
const float UI_Layer::_arrow_Width [protected]
QList<QLabel*> UI_Layer::_fpLabels [protected]
Layer* UI_Layer::_layer [protected]
int UI_Layer::_numberDirections [protected]
int UI_Layer::_numberGradients [protected]
int UI_Layer::_numberSpeeds [protected]

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