DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExpModule::ImageViewer::ImageViewerData Class Reference
+ Inheritance diagram for DynExpModule::ImageViewer::ImageViewerData:

Public Types

using TimeType = DynExpInstr::CameraData::TimeType
 
- Public Types inherited from DynExp::ModuleDataBase
using EventPtrType = std::unique_ptr< EventBase >
 Pointer owning an event. More...
 
using EventQueueType = std::queue< EventPtrType >
 A module's event queue is a FIFO queue owning the enqueued events. More...
 

Public Member Functions

 ImageViewerData ()
 
virtual ~ImageViewerData ()=default
 
double CalcBrennerGradientFromImage () const
 Calculates the Brenner gradient of CurrentImage. Refer to J. F. Brenner et al. J. Histochem. Cytochem. 24 (1), 100-111 (1976). More...
 
- Public Member Functions inherited from DynExp::QModuleDataBase
 QModuleDataBase ()=default
 
virtual ~QModuleDataBase ()=default
 
- Public Member Functions inherited from DynExp::ModuleDataBase
 ModuleDataBase ()
 
virtual ~ModuleDataBase ()
 
auto GetException () const noexcept
 Getter for ModuleException. More...
 
void EnqueueEvent (EventPtrType &&Event)
 Enqueues Event at the module event queue's back. Takes ownership of the event. Notifies the module owning the respective ModuleDataBase's instance that a new event has been enqueued. More...
 
EventPtrType PopEvent ()
 Removes one event from the event queue's front and returns the event. Ownership of the event is transferred to the caller of this method. More...
 
const auto & GetEventFront () const noexcept
 Returns a pointer to the event in the front of the module's event queue without transferring ownership and without removing the event from the queue. More...
 
auto & GetEventFront () noexcept
 Returns a pointer to the event in the front of the module's event queue without transferring ownership and without removing the event from the queue. More...
 
size_t GetNumEnqueuedEvents () const noexcept
 Getter for the module event queue's length. More...
 
- Public Member Functions inherited from Util::INonCopyable
 INonCopyable (const INonCopyable &)=delete
 
INonCopyableoperator= (const INonCopyable &)=delete
 

Public Attributes

DynExp::LinkedObjectWrapperContainer< DynExpInstr::CameraCamera
 
DynExp::LinkedObjectWrapperContainer< DynExpInstr::AnalogOutFocus
 
DynExp::LinkedObjectWrapperContainer< DynExpInstr::InterModuleCommunicatorCommunicator
 
bool UIInitialized = false
 
DynExpInstr::CameraData::CameraModesType CameraModes
 
DynExpInstr::CameraData::CapturingStateType CapturingState = DynExpInstr::CameraData::CapturingStateType::Stopped
 
TimeType MinExposureTime
 
TimeType MaxExposureTime
 
TimeType CurrentExposureTime
 
float CurrentFPS = 0.f
 
DynExpInstr::CameraData::ComputeHistogramType ComputeHistogram = DynExpInstr::CameraData::ComputeHistogramType::NoHistogram
 
QImage CurrentImage
 
bool HasImageChanged = false
 
bool ImageCapturingPaused = false
 
bool CaptureAfterPause = false
 
Util::ImageHistogramType IntensityHistogram = {}
 
Util::ImageRGBHistogramType RGBHistogram = {}
 
- Public Attributes inherited from DynExp::ModuleDataBase
ModuleBaseOnlyType ModuleBaseOnly
 Allow exclusive access to some of ModuleDataBase's private methods to ModuleBase. More...
 
ModuleThreadOnlyType ModuleThreadOnly
 Allow exclusive access to some of ModuleDataBase's private methods to the module thread ModuleThreadMain(). More...
 

Private Member Functions

void ResetImpl (dispatch_tag< QModuleDataBase >) override final
 
virtual void ResetImpl (dispatch_tag< ImageViewerData >)
 
void Init ()
 

Additional Inherited Members

- Protected Member Functions inherited from Util::ISynchronizedPointerLockable
 ISynchronizedPointerLockable ()
 
 ~ISynchronizedPointerLockable ()
 Object should never be destroyed before completely unlocked. More...
 
- Protected Member Functions inherited from Util::INonCopyable
constexpr INonCopyable ()=default
 
 ~INonCopyable ()=default
 

Detailed Description

Definition at line 100 of file ImageViewer.h.

Member Typedef Documentation

◆ TimeType

Constructor & Destructor Documentation

◆ ImageViewerData()

DynExpModule::ImageViewer::ImageViewerData::ImageViewerData ( )
inline

Definition at line 105 of file ImageViewer.h.

◆ ~ImageViewerData()

virtual DynExpModule::ImageViewer::ImageViewerData::~ImageViewerData ( )
virtualdefault

Member Function Documentation

◆ CalcBrennerGradientFromImage()

double DynExpModule::ImageViewer::ImageViewerData::CalcBrennerGradientFromImage ( ) const

Calculates the Brenner gradient of CurrentImage. Refer to J. F. Brenner et al. J. Histochem. Cytochem. 24 (1), 100-111 (1976).

Returns
Brenner gradient or NaN if CurrentImage is empty.

Definition at line 283 of file ImageViewer.cpp.

◆ Init()

void DynExpModule::ImageViewer::ImageViewerData::Init ( )
private

Definition at line 308 of file ImageViewer.cpp.

◆ ResetImpl() [1/2]

virtual void DynExpModule::ImageViewer::ImageViewerData::ResetImpl ( dispatch_tag< ImageViewerData )
inlineprivatevirtual

Definition at line 134 of file ImageViewer.h.

◆ ResetImpl() [2/2]

void DynExpModule::ImageViewer::ImageViewerData::ResetImpl ( dispatch_tag< QModuleDataBase )
finaloverrideprivate

Definition at line 273 of file ImageViewer.cpp.

Member Data Documentation

◆ Camera

DynExp::LinkedObjectWrapperContainer<DynExpInstr::Camera> DynExpModule::ImageViewer::ImageViewerData::Camera

Definition at line 110 of file ImageViewer.h.

◆ CameraModes

DynExpInstr::CameraData::CameraModesType DynExpModule::ImageViewer::ImageViewerData::CameraModes

Definition at line 116 of file ImageViewer.h.

◆ CaptureAfterPause

bool DynExpModule::ImageViewer::ImageViewerData::CaptureAfterPause = false

Definition at line 127 of file ImageViewer.h.

◆ CapturingState

DynExpInstr::CameraData::CapturingStateType DynExpModule::ImageViewer::ImageViewerData::CapturingState = DynExpInstr::CameraData::CapturingStateType::Stopped

Definition at line 117 of file ImageViewer.h.

◆ Communicator

DynExp::LinkedObjectWrapperContainer<DynExpInstr::InterModuleCommunicator> DynExpModule::ImageViewer::ImageViewerData::Communicator

Definition at line 112 of file ImageViewer.h.

◆ ComputeHistogram

Definition at line 122 of file ImageViewer.h.

◆ CurrentExposureTime

TimeType DynExpModule::ImageViewer::ImageViewerData::CurrentExposureTime

Definition at line 120 of file ImageViewer.h.

◆ CurrentFPS

float DynExpModule::ImageViewer::ImageViewerData::CurrentFPS = 0.f

Definition at line 121 of file ImageViewer.h.

◆ CurrentImage

QImage DynExpModule::ImageViewer::ImageViewerData::CurrentImage

Definition at line 124 of file ImageViewer.h.

◆ Focus

DynExp::LinkedObjectWrapperContainer<DynExpInstr::AnalogOut> DynExpModule::ImageViewer::ImageViewerData::Focus

Definition at line 111 of file ImageViewer.h.

◆ HasImageChanged

bool DynExpModule::ImageViewer::ImageViewerData::HasImageChanged = false

Definition at line 125 of file ImageViewer.h.

◆ ImageCapturingPaused

bool DynExpModule::ImageViewer::ImageViewerData::ImageCapturingPaused = false

Definition at line 126 of file ImageViewer.h.

◆ IntensityHistogram

Util::ImageHistogramType DynExpModule::ImageViewer::ImageViewerData::IntensityHistogram = {}

Definition at line 129 of file ImageViewer.h.

◆ MaxExposureTime

TimeType DynExpModule::ImageViewer::ImageViewerData::MaxExposureTime

Definition at line 119 of file ImageViewer.h.

◆ MinExposureTime

TimeType DynExpModule::ImageViewer::ImageViewerData::MinExposureTime

Definition at line 118 of file ImageViewer.h.

◆ RGBHistogram

Util::ImageRGBHistogramType DynExpModule::ImageViewer::ImageViewerData::RGBHistogram = {}

Definition at line 130 of file ImageViewer.h.

◆ UIInitialized

bool DynExpModule::ImageViewer::ImageViewerData::UIInitialized = false

Definition at line 114 of file ImageViewer.h.


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