- make Visible and set bounds
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@622 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -48,9 +48,6 @@ DrawComponent::DrawComponent (int width, int height, float offset, float scale)
|
|||||||
|
|
||||||
|
|
||||||
//[Constructor] You can add your own custom stuff here..
|
//[Constructor] You can add your own custom stuff here..
|
||||||
// m_pG = new Graphics(m_image);
|
|
||||||
m_data.resize(width*height);
|
|
||||||
|
|
||||||
m_pG->setImageResamplingQuality(Graphics::lowResamplingQuality);
|
m_pG->setImageResamplingQuality(Graphics::lowResamplingQuality);
|
||||||
clear();
|
clear();
|
||||||
//[/Constructor]
|
//[/Constructor]
|
||||||
|
|||||||
@@ -73,7 +73,9 @@ public:
|
|||||||
|
|
||||||
Layer* onConstruct(const std::string &name, size_t id, size_t numVisibleX, size_t numVisibleY, size_t numHidden)
|
Layer* onConstruct(const std::string &name, size_t id, size_t numVisibleX, size_t numVisibleY, size_t numHidden)
|
||||||
{
|
{
|
||||||
return new RbmComponent(name, id, numVisibleX, numVisibleY, numHidden);
|
RbmComponent *pComp = new RbmComponent(name, id, numVisibleX, numVisibleY, numHidden);
|
||||||
|
addAndMakeVisible(pComp);
|
||||||
|
return pComp;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ RbmComponent::RbmComponent (const std::string &name, size_t id, size_t numVisibl
|
|||||||
|
|
||||||
setSize (430, 130);
|
setSize (430, 130);
|
||||||
resized();
|
resized();
|
||||||
|
setBounds (16, 140*id+16, 430, 130);
|
||||||
}
|
}
|
||||||
|
|
||||||
RbmComponent::~RbmComponent()
|
RbmComponent::~RbmComponent()
|
||||||
|
|||||||
Reference in New Issue
Block a user