20 #ifndef SOURCEDISPLAY_H_INCLUDED
21 #define SOURCEDISPLAY_H_INCLUDED
28 #include "JuceHeader.h"
30 namespace wonderjuce {
54 int dotSize = 10,
int roomLineThickness = 2,
55 const Colour roomColour = Colours::yellow,
56 const Colour bgColour = Colours::black);
69 void paint (Graphics& g);
93 bool setRoom(std::shared_ptr <const wonder::Room> room);
123 std::shared_ptr <const wonder::Room> room_;
126 int roomLineThickness_;
135 #endif // SOURCEDISPLAY_H_INCLUDED
An abstract class extending juce::Component, adding methods to query a "focus point".
Definition: ComponentWithFocusPoint.h:32
SourceDisplay(const String &componentName=String::empty, int dotSize=10, int roomLineThickness=2, const Colour roomColour=Colours::yellow, const Colour bgColour=Colours::black)
Constructor.
Definition: SourceDisplay.cpp:25
virtual ~SourceDisplay()
Destructor.
Definition: SourceDisplay.cpp:39
void setShowNames(bool showNames)
Sets whether the names of the sources shall be shown next to them.
Definition: SourceDisplay.cpp:96
An abstract class for a GUI component that displays a two-dimensional view of WONDER sources and the ...
Definition: SourceDisplay.h:40
void paintSource(Graphics &g, const wonder::Source &source, uint8_t alpha=0xFF)
Paints a wonder::Source.
Definition: SourceDisplay.cpp:106
bool showsNames() const
Returns the current showNames setting.
Definition: SourceDisplay.cpp:101
int getPositionDotSize() const
Returns the size of the dot indicating the source's position (diameter in pixels).
Definition: SourceDisplay.cpp:80
void setPositionDotSize(int diameter)
Sets the size of the dot indicating the source's position.
Definition: SourceDisplay.cpp:72
bool setRoom(std::shared_ptr< const wonder::Room > room)
Sets the wonder::Room object that is used for painting the positions of the speaker arrays...
Definition: SourceDisplay.cpp:85
A class for objects representing a WONDER source with all its properties.
Definition: Source.h:60
void paint(Graphics &g)
Overriding juce::Component::paint, this will fill the display with its background colour and draw the...
Definition: SourceDisplay.cpp:43