Copiste  0.1
 All Classes Functions Variables Enumerations Friends Pages
Signals | Public Member Functions | Protected Member Functions
View2D Class Reference

A renderer for a 2D neural network. More...

#include <view2D.h>

List of all members.

Signals

void rendering ()
 Rendering started (signal)
void rendered ()
 Rendering finished (signal)
void hoveringElement (std::string)
 User hovered an element (signal)

Public Member Functions

 View2D (QWidget *parent=0)
 Constructor. Sets up the renderer.
void renderToImage (std::string fileName, std::string format="PNG", int w=VIEW_OUTPUT_WIDTH, int h=VIEW_OUTPUT_HEIGHT)
 Render the graph to a file rather than displaying it on the screen.
void setCorpus (Corpus *corpus)
 Sets the corpus to render.
void setNet (NeuralNetwork *net)
 Sets the network to render.
void updateQuadtree ()
 Updates the current quadtree.
void renderScene ()
 Rendering function.
Corpuscorpus ()
 Returns the corpus.
NeuralNetworknet ()
 Returns the network.
void handleKeyReleaseEvent (QKeyEvent *event)
 Sends key events from parent widgets.
void setCurrentPoint (bool point)
 Change the type of point.

Protected Member Functions

void paintEvent (QPaintEvent *event)
 Event handling function (redraws the scene)
void mouseMoveEvent (QMouseEvent *event)
 Handles dynamic zoom.
void mousePressEvent (QMouseEvent *event)
 Handles dynamic zoom.
void mouseReleaseEvent (QMouseEvent *event)
 Handles dynamic zoom.
void keyReleaseEvent (QKeyEvent *event)
 Handles dynamic zoom.
void emitHoveringElement (std::string name)
 Emits the signal hoveringElement(std::string)

Detailed Description

A renderer for a 2D neural network.


Member Function Documentation

void View2D::renderScene ( )

Rendering function.

: compute less points and interpolate between them.


The documentation for this class was generated from the following files: