Files
mpsk_rx_gui/Source/IQPlaneComponent.h
jens 4f19435059 - use Processor::Buffer for collecting symbol error
- Constellation diagram uses Processor::Buffer 

git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@1076 b431acfa-c32f-4a4a-93f1-934dc6c82436
2022-06-24 11:29:51 +00:00

94 lines
3.1 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_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<sym_err_t> &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<float> 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<float> point, float size);
void drawCircle(Graphics& g, juce::Point<float> 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__