Last change
on this file since 875 was
286,
checked in by Maciej Komosinski, 10 years ago
|
Updated headers
|
-
Property svn:eol-style set to
native
|
File size:
671 bytes
|
Rev | Line | |
---|
[286] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
---|
| 2 | // Copyright (C) 1999-2015 Maciej Komosinski and Szymon Ulatowski. |
---|
| 3 | // See LICENSE.txt for details. |
---|
[137] | 4 | |
---|
[135] | 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 | |
---|
| 11 | class NNLayoutState_Model : public NNLayoutState |
---|
| 12 | { |
---|
| 13 | public: |
---|
| 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.