2 #include "ScopeController.h"
3 #include "ScopeController_p.h"
8 ScopeButton ScopeController::StartSingleButton;
9 ScopeButton ScopeController::StartLiveButton;
10 ScopeButton ScopeController::StartStackButton;
11 ScopeButton ScopeController::StartTimeseriesButton;
12 ScopeButton ScopeController::StartBehaviorButton;
13 ScopeButton ScopeController::StopButton;
14 ScopeButton ScopeController::QuitButton;
15 ScopeButton ScopeController::StackStartHereButton;
16 ScopeButton ScopeController::StackStopHereButton;
41 ScopeController::~ScopeController() {
43 DBOUT(L
"ScopeController::~ScopeController\n");
90 void ScopeController::DetachFrame(gui::CChannelFrame*
const cframe) {
94 void ScopeController::AttachFrame(gui::CHistogramFrame*
const hframe) {
98 bool ScopeController::HistogramAlreadyAttached(
const uint32_t& _area) {
102 void ScopeController::DetachFrame(gui::CHistogramFrame*
const hframe) {
std::wstring CurrentConfigFile() const
void AttachFrame(gui::CChannelFrame *const cframe)
Attach a CChannelFrame as observer.
void DetachFrame(gui::CChannelFrame *const cframe)
Detach an observing CChannelFrame.
static ScopeButton StageZeroButton
Button to zero main stage coordinates.
static ScopeNumber< double > TrialCounter
Updated from ScopeControllerImpl::RunBehavior, connected to edit control in CBehaviorSettingsPage.
static std::array< ScopeNumber< double >, SCOPE_NAREAS > FrameCounter
Updated from PipelineControllerImpl::Run, connected to progress indicator in CTimeSeriesSettingsPage ...
bool GetShutterState(const uint32_t &_area) const
bool GetShutterState(const uint32_t &_area) const
Current state of the shutter.
bool LoadParameters(const std::wstring &_filepath)
Loads current parameter set from disk.
void RegisterScanmodeCallback(std::function< void(const uint32_t &, const ScannerVectorType &)> _callback)
Registers a function to call when scanmode is changed.
void SetHistogramLimits(const uint32_t &_area, const uint32_t &_channel, const uint16_t &_lower, const uint16_t &_upper)
Sets display limits for a certain area and channel.
void OpenCloseShutter(const uint32_t &_area, const bool &_open)
Opens/closes the shutter.
void Version() const
Prints out the last Git commit date of the currently running version (see description at ScopeControl...
Base class for all Scope datatypes here, provides a uniform interface (and saves typing...).
Manages the display of images.
bool GetSwitchResonanceState(const uint32_t &_area) const
Current state of the resonance scanner relay.
void SetHistogramLimits(const uint32_t &_area, const uint32_t &_channel, const uint16_t &_lower, const uint16_t &_upper)
Sets the color limits for displaying imgages, calls DisplayController::SetHistogramLimits.
This is the include file for standard system include files, or project specific include files that ar...
void RegisterScanmodeCallback(std::function< void(const uint32_t &, const ScannerVectorType &)> _callback)
Registers a function to call when scanmode is changed.
bool SaveParameters(const std::wstring &_filepath)
Saves the current parameter set to disk.
Impl *const Pimpl() const
static ScopeNumber< double > PlaneCounter
Updated from ScopeControllerImpl::RunStack, connected to progress indicator in CStackSettingsPage.
bool GetSwitchResonanceState(const uint32_t &_area) const
std::wstring CurrentConfigFile() const
#define DBOUT(s)
A debug output to the debug console.
bool LoadParameters(const std::wstring &filepath)
Load a complete ScopeParameters set from disk.
static ScopeNumber< double > TotalTime
Updated from e.g.
static std::array< ScanModeButtons, SCOPE_NAREAS > ScanMode
Buttons for switching the scan mode.
Impl & GetImpl()
static local variable for singleton is in there.
void ZeroGalvoOutputs()
Zeros galvo outputs.
bool SaveParameters(const std::wstring &filepath)
Store the current complete ScopeParameters set to disk.
void TurnOnOffSwitchResonance(const uint32_t &_area, const bool &_on)
Turns the resonance scanner relay on and off.
void PrepareQuit()
Called via CMainDialogFrame::QuitApplication.
void SaveCurrentWindowPositions()
Saves current positions of windows by adding frames to WindowCollection of ScopeController::GuiParame...
void OpenCloseShutter(const uint32_t &_area, const bool &_open)
Opens/closes the shutter.
static std::array< FPUButtons, SCOPE_NAREAS > FPU
Buttons for FPU nudge.
void SaveCurrentWindowPositions()
Saves current positions of windows by adding frames to WindowCollection of ScopeController::GuiParame...
static std::array< ScopeNumber< double >, SCOPE_NAREAS > SingleFrameProgress
Updated from PipelineControllerImpl::Run.
ScopeController(void)
Injects pimpl of ScopeController into BaseControllers pimpl (saves memory, since pointer is reused fo...
static parameters::Scope GuiParameters
The complete pseudo-global parameter set of the microscope.
Base class for all controllers.
void TurnOnOffSwitchResonance(const uint32_t &_area, const bool &_on)
Turns the resonance scanner relay on and off.
void ZeroGalvoOutputs()
Calls the DaqController to set Galvo outputs to zero.
void Version()
Print the current ScopeController version to debug console.
bool HistogramAlreadyAttached(const uint32_t &_area)
static ScopeNumber< bool > ReadOnlyWhileScanning
Set to true while scanning, GUI elements can connect to this to disable buttons and controls (that ar...
static ScopeNumber< double > RepeatCounter
Updated from ScopeControllerImpl::RunTimeseries, connected to progress indicator in CTimeSeriesSettin...
void PrepareQuit()
Called by CMainDialogFrame::QuitApplication.
The implementation class of the ScopeController.