|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
#include <PVCam.h>
Inheritance diagram for DynExpInstr::PVCamData:Public Member Functions | |
| PVCamData ()=default | |
| virtual | ~PVCamData ()=default |
| void | SetCapturingState (CapturingStateType CapturingState) noexcept |
Public Member Functions inherited from DynExpInstr::CameraData | |
| CameraData ()=default | |
| virtual | ~CameraData ()=default |
| auto | GetImageWidth () const noexcept |
| Getter for ImageWidth. | |
| void | SetImageWidth (ImageDimensionType ImageWidth) noexcept |
| Setter for ImageWidth. | |
| auto | GetImageHeight () const noexcept |
| Getter for ImageHeight. | |
| void | SetImageHeight (ImageDimensionType ImageHeight) noexcept |
| Setter for ImageHeight. | |
| auto | GetCameraModes () const |
| Getter for CameraModes. | |
| void | SetCameraModes (CameraModesType CameraModes) |
| Setter for CameraModes. | |
| TimeType | GetMinExposureTime () const |
| Getter for MinExposureTime. | |
| TimeType | GetMaxExposureTime () const |
| Getter for MaxExposureTime. | |
| TimeType | GetExposureTime () const |
| Getter for CurrentExposureTime. | |
| void | SetMinExposureTime (TimeType MinExposureTime) |
| Setter for MinExposureTime. | |
| void | SetMaxExposureTime (TimeType MaxExposureTime) |
| Setter for MaxExposureTime. | |
| void | SetExposureTime (TimeType CurrentExposureTime) |
| Setter for CurrentExposureTime. | |
| auto | GetCurrentFPS () const noexcept |
| Getter for CurrentFPS. | |
| void | SetCurrentFPS (float CurrentFPS) noexcept |
| Setter for CurrentFPS. | |
| auto | GetComputeHistogram () const noexcept |
| Getter for ComputeHistogram. | |
| void | SetComputeHistogram (ComputeHistogramType ComputeHistogram) const noexcept |
| Setter for ComputeHistogram. Adjustable by modules. | |
| auto | GetIntensityHistogram () const noexcept |
| Getter for IntensityHistogram. | |
| void | SetIntensityHistogram (Util::ImageHistogramType &&IntensityHistogram) noexcept |
| Setter for IntensityHistogram. Moves from argument. | |
| auto | GetRGBHistogram () const noexcept |
| Getter for RGBHistogram. | |
| void | SetRGBHistogram (Util::ImageRGBHistogramType &&RGBHistogram) noexcept |
| Setter for RGBHistogram. Moves from argument. | |
| const auto & | GetImageTransformation () const noexcept |
| Getter for ImageTransformation. | |
| void | SetImageTransformation (const ImageTransformationType &Transformation) const noexcept |
| Setter for ImageTransformation. Adjustable by modules. | |
| QImage | GetImage () const |
| Moving getter for CurrentImage. | |
| QImage | GetImageCopy (const QRect &RegionOfInterest=QRect()) const |
Copying getter for CurrentImage. This function is more expensive than GetImage(). | |
| bool | IsImageAvailbale () const noexcept |
| Determines whether an image is currently available. | |
| void | SetImage (QImage &&Other) |
| Setter for CurrentImage. | |
| void | ClearImage () const |
| Resets CurrentImage to a default-constructed empty image and IntensityHistogram as well as RGBHistogram to default-constructed empty histograms. | |
| auto | GetCapturingState () const noexcept |
| Returns the camera's current capturing state. | |
| bool | IsCapturing () const noexcept |
| Determines whether the camera is currently capturing an image. | |
| bool | IsCapturingSingle () const noexcept |
| Determines whether the camera is currently capturing a single image. | |
| bool | IsCapturingContinuously () const noexcept |
| Determines whether the camera is currently capturing images consecutively. | |
Public Member Functions inherited from DynExp::InstrumentDataBase | |
| InstrumentDataBase () | |
| virtual | ~InstrumentDataBase () |
| auto | GetLastUpdateTime () const |
| Getter for LastUpdate. | |
| auto | GetException () const noexcept |
| Getter for InstrumentDataBase::InstrumentException. | |
| void | EnqueueTask (std::unique_ptr< TaskBase > &&Task) |
| Enqueues a task at the back of an instrument's task queue and notifies the instrument about the new task. | |
| void | EnqueuePriorityTask (std::unique_ptr< TaskBase > &&Task) |
| Enqueues a task at the front of an instrument's task queue and notifies the instrument about the new task. | |
| std::unique_ptr< TaskBase > | PopTaskFront () |
| Removes a task from the front of an instrument's task queue. | |
| std::unique_ptr< TaskBase > | PopTaskBack () |
| Removes a task from the back of an instrument's task queue. | |
| auto | GetTaskFront () noexcept |
| Getter for first enqueued task. | |
| auto | GetTaskBack () noexcept |
| Getter for last enqueued task. | |
| size_t | GetNumEnqueuedTasks () const noexcept |
| Getter for the instrument task queue's length. | |
| std::unique_ptr< TaskBase > | PopFinishedTask () |
| Removes a task from the front of an instrument's list of finished tasks. | |
| size_t | GetNumFinishedTasks () const noexcept |
| Getter for the length of the instrument's list of finished tasks. | |
| bool | IsQueueClosed () const noexcept |
| Determines whether the instrument task queue is closed. | |
Public Member Functions inherited from Util::INonCopyable | |
| INonCopyable (const INonCopyable &)=delete | |
| INonCopyable & | operator= (const INonCopyable &)=delete |
Public Attributes | |
| DynExp::LinkedObjectWrapperContainer< DynExpHardware::PVCamHardwareAdapter > | HardwareAdapter |
Public Attributes inherited from DynExp::InstrumentDataBase | |
| InstrumentBaseOnlyType | InstrumentBaseOnly |
Allow exclusive access to some of InstrumentDataBase's private methods to InstrumentBase. | |
| InstrumenThreadOnlyType | InstrumentThreadOnly |
Allow exclusive access to some of InstrumentDataBase's private methods to the instrument thread InstrumentThreadMain(). | |
Private Member Functions | |
| void | ResetImpl (dispatch_tag< CameraData >) override final |
| virtual void | ResetImpl (dispatch_tag< PVCamData >) |
| virtual CapturingStateType | GetCapturingStateChild () const noexcept override |
| Returns the camera's current capturing state. | |
Private Attributes | |
| CapturingStateType | CapturingState = CapturingStateType::Stopped |
| size_t | NumFailedStatusUpdateAttempts = 0 |
Friends | |
| class | PVCamTasks::InitTask |
| class | PVCamTasks::UpdateTask |
Additional Inherited Members | |
Public Types inherited from DynExpInstr::CameraData | |
| enum class | CapturingStateType { Stopped , CapturingSingle , CapturingContinuously } |
| Type indicating whether the camera is currently capturing images. More... | |
| enum class | ComputeHistogramType { NoHistogram , IntensityHistogram , RGBHistogram , IntensityAndRGBHistogram } |
| Type indicating whether histograms should be computed for newly captured images. More... | |
| using | ImageDimensionType = unsigned int |
| Type describing image dimensions such as width and height. | |
| using | CameraModesType = std::vector< std::string > |
| List type containing strings of modes the camera can operate in. | |
| using | TimeType = std::chrono::milliseconds |
| Time type describing the camera's times like its exposure time. | |
Public Types inherited from DynExp::InstrumentDataBase | |
| using | TaskQueueType = std::list< std::unique_ptr< TaskBase > > |
| Type of an instrument task queue owning the tasks within. | |
| using | TaskQueueIteratorType = TaskQueueType::const_iterator |
Const iterator type to elements of TaskQueueType. | |
Protected Member Functions inherited from Util::ISynchronizedPointerLockable | |
| ISynchronizedPointerLockable () | |
| ~ISynchronizedPointerLockable () | |
| Object should never be destroyed before completely unlocked. | |
Protected Member Functions inherited from Util::INonCopyable | |
| constexpr | INonCopyable ()=default |
| ~INonCopyable ()=default | |
|
default |
|
virtualdefault |
|
inlineoverrideprivatevirtualnoexcept |
Returns the camera's current capturing state.
Implements DynExpInstr::CameraData.
|
finaloverrideprivatevirtual |
Reimplemented from DynExpInstr::CameraData.
|
inlineprivatevirtual |
|
inlinenoexcept |
|
friend |
|
friend |
|
private |
| DynExp::LinkedObjectWrapperContainer<DynExpHardware::PVCamHardwareAdapter> DynExpInstr::PVCamData::HardwareAdapter |
|
private |