source: cpp/frams/canvas/nn_layout_model.h @ 170

Last change on this file since 170 was 137, checked in by sz, 11 years ago

added (c) headers

  • Property svn:eol-style set to native
File size: 709 bytes
Line 
1// This file is a part of the Framsticks GDK.
2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
3// Refer to http://www.framsticks.com/ for further information.
4
5#ifndef _NN_LAYOUT_MODEL_H_
6#define _NN_LAYOUT_MODEL_H_
7
8#include "nn_layout.h"
9#include <frams/model/model.h>
10
11class NNLayoutState_Model : public NNLayoutState
12{
13public:
14
15        struct NeuronPos { int x, y, w, h; };
16
17        Model *model;
18        NeuronPos *neuron_pos;
19
20        NNLayoutState_Model(Model *m);
21        ~NNLayoutState_Model();
22
23        int GetElements();
24        int *GetXYWH(int el);
25        void SetXYWH(int el, int x, int y, int w, int h);
26        int GetInputs(int el);
27        int GetLink(int el, int i);
28        int *GetLinkXY(int el, int i);
29};
30
31#endif
Note: See TracBrowser for help on using the repository browser.