git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@17 b431acfa-c32f-4a4a-93f1-934dc6c82436
87 lines
2.8 KiB
C++
87 lines
2.8 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
This is an automatically generated GUI class created by the Introjucer!
|
|
|
|
Be careful when adding custom code to these files, as only the code within
|
|
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
|
|
and re-saved.
|
|
|
|
Created with Introjucer version: 3.1.0
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
|
|
Copyright 2004-13 by Raw Material Software Ltd.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
#ifndef __JUCE_HEADER_7594B61AA9F7A49E__
|
|
#define __JUCE_HEADER_7594B61AA9F7A49E__
|
|
|
|
//[Headers] -- You can add your own extra header files here --
|
|
#include "JuceHeader.h"
|
|
//[/Headers]
|
|
|
|
|
|
|
|
//==============================================================================
|
|
/**
|
|
//[Comments]
|
|
An auto-generated component, created by the Introjucer.
|
|
|
|
Describe your class and how it works here!
|
|
//[/Comments]
|
|
*/
|
|
class DrawComponent : public Component
|
|
{
|
|
public:
|
|
//==============================================================================
|
|
DrawComponent (int width, int height);
|
|
~DrawComponent();
|
|
|
|
//==============================================================================
|
|
//[UserMethods] -- You can add your own custom methods in this section.
|
|
void drawAt(int x, int y);
|
|
void setData(const double *pData);
|
|
const double* getData();
|
|
void clear();
|
|
//[/UserMethods]
|
|
|
|
void paint (Graphics& g);
|
|
void resized();
|
|
void mouseMove (const MouseEvent& e);
|
|
void mouseEnter (const MouseEvent& e);
|
|
void mouseExit (const MouseEvent& e);
|
|
void mouseDown (const MouseEvent& e);
|
|
void mouseDrag (const MouseEvent& e);
|
|
void mouseUp (const MouseEvent& e);
|
|
void mouseDoubleClick (const MouseEvent& e);
|
|
void mouseWheelMove (const MouseEvent& e, const MouseWheelDetails& wheel);
|
|
|
|
|
|
|
|
private:
|
|
//[UserVariables] -- You can add your own custom variables in this section.
|
|
int m_width;
|
|
int m_height;
|
|
float m_scaleX;
|
|
float m_scaleY;
|
|
ScopedPointer<Graphics>m_pG;
|
|
ScopedPointer<double>m_pData;
|
|
Image m_image;
|
|
//[/UserVariables]
|
|
|
|
//==============================================================================
|
|
|
|
|
|
//==============================================================================
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DrawComponent)
|
|
};
|
|
|
|
//[EndFile] You can add extra defines here...
|
|
//[/EndFile]
|
|
|
|
#endif // __JUCE_HEADER_7594B61AA9F7A49E__
|