Scope
DisplayController.cpp
1 #include "StdAfx.h"
2 #include "DisplayController.h"
3 #include "DisplayController_p.h"
4 
5 namespace scope {
6 
8  : BaseController( new Impl(_iqueue, _parameters) ) {
9 }
10 
12  return static_cast<DisplayController::Impl*>(BaseController<1>::Pimpl());
13 }
14 
15 void DisplayController::SetHistogramLimits(const uint32_t& _area, const uint32_t& _channel, const uint16_t& _lower, const uint16_t& _upper) {
16  Pimpl()->SetHistogramLimits(_area, _channel, _lower, _upper);
17 }
18 
20  Pimpl()->ResolutionChange(_parameters);
21 }
22 
24  Pimpl()->AttachFrame(cframe);
25 }
26 
28  Pimpl()->DetachFrame(cframe);
29 }
30 
32  Pimpl()->AttachFrame(hframe);
33 }
34 
35 bool DisplayController::HistogramAlreadyAttached(const uint32_t& _area) const {
36  return Pimpl()->HistogramAlreadyAttached(_area);
37 }
38 
40  Pimpl()->DetachFrame(hframe);
41 }
42 
44  return Pimpl()->GetWindowCollection();
45 }
46 
47 }
Parameters for a whole area (includes a daq and a fpu)
Definition: Scope.h:64
void AttachFrame(gui::CChannelFrame *const _cframe)
Attaches a CChannelFrame as observer to the DisplayController.
DisplayController(DisplayController &other)
disable copy
The master parameters class.
Definition: Scope.h:204
Impl * Pimpl() const
void ResolutionChange(const parameters::Area &_parameters)
Request resize of CChannelFrame observers to cope with new image size.
bool HistogramAlreadyAttached(const uint32_t &_area) const
parameters::WindowCollection GetWindowCollection() const
Adds frames to a WindowCollection.
Manages the display of images.
Definition: ChannelFrame.h:26
The implementation class of the DisplayController.
void DetachFrame(gui::CChannelFrame *const cframe)
Detaches a CChannelFrame as an observer.
This is the include file for standard system include files, or project specific include files that ar...
void ResolutionChange(const parameters::Area &_ap)
Go through all CChannelFrames and request resize to cope with new image size.
void SetHistogramLimits(const uint32_t &_area, const uint32_t &_channel, const uint16_t &_lower, const uint16_t &_upper)
calls DisplayController::Impl::SetHistogramLimits
Manages the display of histograms.
void AttachFrame(gui::CChannelFrame *const cframe)
Attaches a CChannelFrame as an observer.
A synchronized, thread-safe queue was modeled after ringbuffer example from boost?! and/or a Herb Sutter column?!
Definition: DaqController.h:7
void DetachFrame(gui::CChannelFrame *const _cframe)
Detaches a CChannelFrame as observer from the DisplayController.
Parameters for all frames/windows on screen.
Definition: Windows.h:43
parameters::WindowCollection GetWindowCollection() const
Adds frames to WindowCollection of ScopeController::GuiParameters.
Base class for all controllers.
bool HistogramAlreadyAttached(const uint32_t &_area) const
void SetHistogramLimits(const uint32_t &_area, const uint32_t &_channel, const uint16_t &_lower, const uint16_t &_upper)
Go through all CChannelFrames of that area and set the histogram limits there.
Impl *const Pimpl() const
Return a pointer to the hidden implementation.