Open Ephys GUI
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions
Clock Class Reference

Displays the time. More...

#include <ControlPanel.h>

Inheritance diagram for Clock:
OpenGLCanvas

List of all members.

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.
- Public Member Functions inherited from OpenGLCanvas
 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

- Public Types inherited from OpenGLCanvas
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
}
- Protected Member Functions inherited from OpenGLCanvas
virtual int getTotalHeight ()
void showScrollBars ()
- Protected Attributes inherited from OpenGLCanvas
int scrollPix
bool animationIsActive
int refreshMs

Detailed Description

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).

See also:
ControlPanel

Constructor & Destructor Documentation

Clock::Clock ( )
Clock::~Clock ( )

Member Function Documentation

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.


The documentation for this class was generated from the following file: