- added Robbins-Monro (but doesn't work well)

- added DrawListener
- added realtime reconstruct
- additional LayerArray constructor

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@20 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-10-07 20:42:57 +00:00
parent 39bf50701b
commit da30d95e31
6 changed files with 151 additions and 45 deletions
+13 -1
View File
@@ -22,6 +22,14 @@
//[Headers] -- You can add your own extra header files here --
#include "JuceHeader.h"
class DrawComponent;
class DrawListener
{
public:
DrawListener() {}
virtual ~DrawListener() {}
virtual void onDraw(DrawComponent &obj) = 0;
};
//[/Headers]
@@ -43,7 +51,8 @@ public:
//==============================================================================
//[UserMethods] -- You can add your own custom methods in this section.
void drawAt(int x, int y);
void setListener(DrawListener *pListener);
void drawAt(int x, int y, bool setColor);
void setData(const double *pData);
const double* getData();
void clear();
@@ -64,6 +73,7 @@ public:
private:
//[UserVariables] -- You can add your own custom variables in this section.
DrawListener *m_pListener;
int m_width;
int m_height;
float m_scaleX;
@@ -71,6 +81,8 @@ private:
ScopedPointer<Graphics>m_pG;
ScopedPointer<double>m_pData;
Image m_image;
double m_currData;
Colour m_currColor;
//[/UserVariables]
//==============================================================================