A renderer for a 2D neural network. More...
#include <view2D.h>
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. | |
| Corpus * | corpus () |
| Returns the corpus. | |
| NeuralNetwork * | net () |
| 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) | |
A renderer for a 2D neural network.
| void View2D::renderScene | ( | ) |
Rendering function.
: compute less points and interpolate between them.
1.8.1.1