/* ============================================================================== 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_6591F9469DB772__ #define __JUCE_HEADER_6591F9469DB772__ //[Headers] -- You can add your own extra header files here -- #include "JuceHeader.h" #include "Receiver.hpp" #define NUM_TRACKER_POINTS 4 //[/Headers] //============================================================================== /** //[Comments] An auto-generated component, created by the Introjucer. Describe your class and how it works here! //[/Comments] */ class IQPlaneComponent : public Component, public ReceiverStatusListener { public: //============================================================================== IQPlaneComponent (uint32 maxNumPoints); ~IQPlaneComponent(); //============================================================================== //[UserMethods] -- You can add your own custom methods in this section. void pointAdd(Processor::Buffer &points); void trackerPointEnable(uint32_t id, juce::Colour color, cpx_t pos, float size); void trackerPointDisable(uint32_t id); //[/UserMethods] void paint (Graphics& g); void resized(); void mouseDown (const MouseEvent& e); private: //[UserVariables] -- You can add your own custom variables in this section. typedef struct _trackerPoint_t { bool isEnabled; juce::Colour color; juce::Point point; float size; } trackerPoint_t; sym_err_t *m_pPointArray; uint32 m_maxNumPoints; uint32 m_numPoints; float getScreenCoordX(float x); float getScreenCoordY(float y); void drawReference(Graphics& g, uint32_t numConst, float radius, float size); void drawCross(Graphics& g, juce::Point point, float size); void drawCircle(Graphics& g, juce::Point point, float size); void receiverStatusChanged(ReceiverInterface *pReceiver); uint32_t m_numConst; trackerPoint_t m_trackerPoints[NUM_TRACKER_POINTS]; //[/UserVariables] //============================================================================== //============================================================================== JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (IQPlaneComponent) }; //[EndFile] You can add extra defines here... //[/EndFile] #endif // __JUCE_HEADER_6591F9469DB772__