19 namespace DummyCameraTasks
57 void ResetImpl(dispatch_tag<CameraData>)
override final;
71 virtual const char*
GetParamClassTag() const noexcept
override {
return "DummyCameraParams"; }
101 constexpr static auto Name() noexcept {
return "Dummy Camera"; }
115 void ResetImpl(dispatch_tag<Camera>)
override final;
118 virtual std::unique_ptr<DynExp::InitTaskBase>
MakeInitTask()
const override {
return DynExp::MakeTask<DummyCameraTasks::InitTask>(); }
119 virtual std::unique_ptr<DynExp::UpdateTaskBase>
MakeUpdateTask()
const override {
return DynExp::MakeTask<DummyCameraTasks::UpdateTask>(); }
Defines a meta instrument for an image capturing device.
Defines DynExp's core module as an interface between the UI and DynExp objects.
Configurator class for Camera.
CapturingStateType
Type indicating whether the camera is currently capturing images.
@ CapturingContinuously
The camera is capturing one image after the other.
Parameter class for Camera.
Defines a task for deinitializing an instrument within an instrument inheritance hierarchy....
Defines a task for initializing an instrument within an instrument inheritance hierarchy....
Defines a task for updating an instrument within an instrument inheritance hierarchy....
Meta instrument for an image capturing (camera) device.
DummyCameraConfigurator()=default
virtual ~DummyCameraConfigurator()=default
virtual DynExp::ParamsBasePtrType MakeParams(DynExp::ItemIDType ID, const DynExp::DynExpCore &Core) const override
Override to make derived classes call DynExp::MakeParams with the correct configurator type derived f...
virtual CapturingStateType GetCapturingStateChild() const noexcept override
Returns the camera's current capturing state.
DummyCameraData()=default
virtual void ResetImpl(dispatch_tag< DummyCameraData >)
void ResetImpl(dispatch_tag< CameraData >) override final
virtual ~DummyCameraData()=default
virtual const char * GetParamClassTag() const noexcept override
This function is intended to be overridden once in each derived class returning the name of the respe...
virtual ~DummyCameraParams()=default
void ConfigureParamsImpl(dispatch_tag< CameraParams >) override final
Called by DynExp::ParamsBase::ConfigureParams() as a starting point for the tag dispatch mechanism to...
Param< ParamsConfigDialog::TextType > ImagePath
virtual void ConfigureParamsImpl(dispatch_tag< DummyCameraParams >)
DummyCameraParams(DynExp::ItemIDType ID, const DynExp::DynExpCore &Core)
virtual void ExitFuncImpl(dispatch_tag< ExitTask >, DynExp::InstrumentInstance &Instance)
void ExitFuncImpl(dispatch_tag< CameraTasks::ExitTask >, DynExp::InstrumentInstance &Instance) override final
Deinitializes the respective instrument within the instrument inheritance hierarchy....
virtual void InitFuncImpl(dispatch_tag< InitTask >, DynExp::InstrumentInstance &Instance)
void InitFuncImpl(dispatch_tag< CameraTasks::InitTask >, DynExp::InstrumentInstance &Instance) override final
Initializes the respective instrument within the instrument inheritance hierarchy....
virtual void UpdateFuncImpl(dispatch_tag< UpdateTask >, DynExp::InstrumentInstance &Instance)
void UpdateFuncImpl(dispatch_tag< CameraTasks::UpdateTask >, DynExp::InstrumentInstance &Instance) override final
Updates the respective instrument within the instrument inheritance hierarchy. Call UpdateFuncImpl() ...
virtual QImage ObtainImage(DynExp::InstrumentInstance &Instance) override
Retrieves the current image from the underlying hardware device, applies image transformations (e....
void ResetImpl(dispatch_tag< Camera >) override final
Refer to DynExp::Object::Reset(). Using tag dispatch mechanism to ensure that ResetImpl() of every de...
virtual void StopCapturing(DynExp::TaskBase::CallbackType CallbackFunc=nullptr) const noexcept override
Stops image capturing.
virtual std::unique_ptr< DynExp::UpdateTaskBase > MakeUpdateTask() const override
Factory function for an update task (UpdateTaskBase). Override to define the desired update task in d...
virtual void ResetImpl(dispatch_tag< DummyCamera >)
virtual std::string GetName() const override
Returns the name of this Object type.
virtual double GetPixelSizeInMicrons() const noexcept override
Determines the camera's physical pixel size assuming square pixels.
static constexpr auto Name() noexcept
virtual void StartCapturing(DynExp::TaskBase::CallbackType CallbackFunc=nullptr) const noexcept override
Makes the camera capture images continuously.
virtual void CaptureSingle(DynExp::TaskBase::CallbackType CallbackFunc=nullptr) const noexcept override
Makes the camera capture a single image.
virtual std::unique_ptr< DynExp::InitTaskBase > MakeInitTask() const override
Factory function for an init task (InitTaskBase). Override to define the desired initialization task ...
DynExp's core class acts as the interface between the user interface and DynExp's internal data like ...
Refer to DynExp::ParamsBase::dispatch_tag.
Refer to DynExp::ParamsBase::dispatch_tag.
Refer to ParamsBase::dispatch_tag.
Defines data for a thread belonging to a InstrumentBase instance. Refer to RunnableInstance.
const std::thread::id OwnerThreadID
Thread id of the thread which has constructed (and owns) this Object instance.
const ParamsBasePtrType Params
Pointer to the parameter class instance belonging to this Object instance.
Refer to ParamsBase::dispatch_tag.
const ItemIDType ID
ID of the Object this parameter class instance belongs to.
const DynExpCore & Core
Reference to DynExp's core.
Tag for function dispatching mechanism within this class used when derived classes are not intended t...
std::function< void(const TaskBase &, ExceptionContainer &)> CallbackType
Type of a callback function which is invoked when a task has finished, failed or has been aborted....
Refer to DynExp::ParamsBase::dispatch_tag.
DynExp's instrument namespace contains the implementation of DynExp instruments which extend DynExp's...
std::unique_ptr< ParamsBase > ParamsBasePtrType
Alias for a pointer to the parameter system base class ParamsBase.
size_t ItemIDType
ID type of objects/items managed by DynExp.
Accumulates include statements to provide a precompiled header.