Displays the time. More...
#include <ControlPanel.h>
Public Member Functions | |
Clock () | |
~Clock () | |
void | newOpenGLContextCreated () |
Initializes an OpenGL context in which drawing occurs. | |
void | renderOpenGL () |
Draws the current time. | |
void | start () |
Starts the acquisition (yellow) clock. | |
void | stop () |
Stops the acquisition (yellow) clock. | |
void | startRecording () |
Starts the recording (red) clock. | |
void | stopRecording () |
Stops the recording (red) clock. | |
void | resetRecordTime () |
Sets the cumulative recording time to zero. | |
![]() | |
OpenGLCanvas () | |
~OpenGLCanvas () | |
void | setUp2DCanvas () |
void | activateAntiAliasing () |
virtual void | refreshState () |
void | resized () |
virtual void | canvasWasResized () |
void | mouseDown (const MouseEvent &e) |
void | mouseDrag (const MouseEvent &e) |
void | mouseMove (const MouseEvent &e) |
void | mouseUp (const MouseEvent &e) |
void | mouseWheelMove (const MouseEvent &, float, float) |
virtual void | mouseDownInCanvas (const MouseEvent &e) |
virtual void | mouseDragInCanvas (const MouseEvent &e) |
virtual void | mouseMoveInCanvas (const MouseEvent &e) |
virtual void | mouseUpInCanvas (const MouseEvent &e) |
virtual void | mouseWheelMoveInCanvas (const MouseEvent &, float, float) |
void | startCallbacks () |
void | stopCallbacks () |
int | getScrollAmount () |
int | getScrollBarWidth () |
void | drawScrollBars () |
void | drawRoundedRect (float x, float y, float w, float h, float r, int n) |
FTGLPixmapFont * | getFont (int fontCode) |
virtual int | getHeaderHeight () |
virtual int | getFooterHeight () |
void | setClearColor (int colorCode) |
Additional Inherited Members | |
![]() | |
enum | colorCodes { white, black, lightgrey, darkgrey } |
enum | fontCodes { miso_regular = 0, miso_bold = 1, miso_light = 2, bebas_neue = 3, ostrich = 4, cpmono_extra_light = 5, cpmono_light = 6, cpmono_plain = 7, cpmono_bold = 8, nordic = 9, silkscreen = 10 } |
![]() | |
virtual int | getTotalHeight () |
void | showScrollBars () |
![]() | |
int | scrollPix |
bool | animationIsActive |
int | refreshMs |
Displays the time.
The Clock is located in the ControlPanel. If acquisition (but not recording) is active, it displays (in yellow) the cumulative amount of time that the GUI has been acquiring data since the application was launched. If recording is active, the Clock displays (in red) the cumulative amount of time that recording has been active.
The Clock uses built-in JUCE functions for getting the system time. It does not currently interact with timestamps from ProcessorGraph sources.
The Clock draws the time using OpenGL (and the FTGL font library).
Clock::Clock | ( | ) |
Clock::~Clock | ( | ) |
void Clock::newOpenGLContextCreated | ( | ) |
Initializes an OpenGL context in which drawing occurs.
void Clock::renderOpenGL | ( | ) |
Draws the current time.
void Clock::start | ( | ) |
Starts the acquisition (yellow) clock.
void Clock::stop | ( | ) |
Stops the acquisition (yellow) clock.
void Clock::startRecording | ( | ) |
Starts the recording (red) clock.
void Clock::stopRecording | ( | ) |
Stops the recording (red) clock.
void Clock::resetRecordTime | ( | ) |
Sets the cumulative recording time to zero.