Last change
on this file since 135 was
135,
checked in by sz, 10 years ago
|
neuron layout algorithm (for schematic drawing), usage example in frams/_demos/neuro_layout_test.cpp
|
-
Property svn:eol-style set to
native
|
File size:
500 bytes
|
Rev | Line | |
---|
[135] | 1 | #ifndef _NN_LAYOUT_MODEL_H_ |
---|
| 2 | #define _NN_LAYOUT_MODEL_H_ |
---|
| 3 | |
---|
| 4 | #include "nn_layout.h" |
---|
| 5 | #include <frams/model/model.h> |
---|
| 6 | |
---|
| 7 | class NNLayoutState_Model : public NNLayoutState |
---|
| 8 | { |
---|
| 9 | public: |
---|
| 10 | |
---|
| 11 | struct NeuronPos { int x, y, w, h; }; |
---|
| 12 | |
---|
| 13 | Model *model; |
---|
| 14 | NeuronPos *neuron_pos; |
---|
| 15 | |
---|
| 16 | NNLayoutState_Model(Model *m); |
---|
| 17 | ~NNLayoutState_Model(); |
---|
| 18 | |
---|
| 19 | int GetElements(); |
---|
| 20 | int *GetXYWH(int el); |
---|
| 21 | void SetXYWH(int el, int x, int y, int w, int h); |
---|
| 22 | int GetInputs(int el); |
---|
| 23 | int GetLink(int el, int i); |
---|
| 24 | int *GetLinkXY(int el, int i); |
---|
| 25 | }; |
---|
| 26 | |
---|
| 27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.