FLImaging 7.8.25.3
DeviceCameraArena.h
1#pragma once
2
13
14#include "DeviceGenICamBase.h"
15
16
18namespace FLImaging
19{
21 namespace Devices
22 {
23 class CInternalDeviceCameraArena;
24
35 class FL_EXPORT CDeviceCameraArena : public CDeviceGenICamBase
36 {
37 SupportToDuplicateObject(CDeviceCameraArena);
38
39 public:
48
57
58 virtual const CResult Initialize() override;
59 virtual const CResult Terminate() override;
60
61 virtual const CResult Grab() override;
62 virtual const CResult Live() override;
63 virtual const CResult Stop() override;
64
65 virtual const CResult TriggerWithSoftware() override;
66
67 virtual const CResult AutoDetectCamera(int32_t i32Index = 0) override;
70
71 virtual const CResult SetExposureTime(double f64Exposure) override;
72 virtual const CResult GetExposureTime(double* pF64Exposure) const override;
73 virtual const CResult GetExposureTime(double& f64Exposure) const override;
74
75 virtual const CResult SetGain(double f64Gain) override;
76 virtual const CResult GetGain(double* pF64Gain) const override;
77 virtual const CResult GetGain(double& f64Gain) const override;
78
79 virtual const CResult SetTriggerMode(bool bOn) override;
80 virtual const CResult GetTriggerMode(bool* pOn) const override;
81 virtual const CResult GetTriggerMode(bool& bOn) const override;
82
83 virtual const CResult SetTriggerSource(ETriggerSource eSource) override;
84 virtual const CResult GetTriggerSource(ETriggerSource* pSource) const override;
85 virtual const CResult GetTriggerSource(ETriggerSource& eSource) const override;
86
88 virtual const CResult ExecuteCommand(const char* pszKey) const override;
89
91 virtual const CResult SetBoolValue(const char* pszKey, const bool* pBValue) override;
92
94 virtual const CResult GetBoolValue(const char* pszKey, bool* pBValue) const override;
95
97 virtual const CResult SetInt32Value(const char* pszKey, const int32_t* pI32Value) override;
98
100 virtual const CResult GetInt32Value(const char* pszKey, int32_t* pI32Value) const override;
101
103 virtual const CResult SetInt64Value(const char* pszKey, const int64_t* pI64Value) override;
104
106 virtual const CResult GetInt64Value(const char* pszKey, int64_t* pI64Value) const override;
107
109 virtual const CResult SetFloatValue(const char* pszKey, const float* pF32Value) override;
110
112 virtual const CResult GetFloatValue(const char* pszKey, float* pF32Value) const override;
113
115 virtual const CResult SetDoubleValue(const char* pszKey, const double* pF64Value) override;
116
118 virtual const CResult GetDoubleValue(const char* pszKey, double* pF64Value) const override;
119
121 virtual const CResult SetStringValue(const char* pszKey, const Base::CFLString<char>* pFlsValue) override;
122
124 virtual const CResult GetStringValue(const char* pszKey, Base::CFLString<char>* pFlsValue) const override;
125
127 virtual const CResult SetEnumValue(const char* pszKey, const int32_t* pI32Value) override;
128 virtual const CResult SetEnumValue(const char* pszKey, const Base::CFLString<char>* pFlsValue) override;
129
131 virtual const CResult GetEnumValue(const char* pszKey, int32_t* pI32Value) const override;
132 virtual const CResult GetEnumValue(const char* pszKey, Base::CFLString<char>* pFlsValue) const override;
133
135 virtual const CResult GetEnumFeatureEntries(const Base::CFLString<wchar_t>& flsFeature, std::vector<std::pair<int32_t, Base::CFLString<wchar_t>>>* pVctEntries) const override;
136
137 DeclareGetClassType();
138
139 protected:
140
141 virtual bool CheckDeviceLibraries() const override;
142
143 protected:
144
145 CInternalDeviceCameraArena* m_pInternal;
146
147 friend class CInternalDeviceCameraArena;
148 };
149 }
150}
151
152
Template type array class.
Definition FLArray.h:71
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1704
virtual const CResult SetExposureTime(double f64Exposure) override
Sets the exposure time of the camera.
virtual const CResult SetFloatValue(const char *pszKey, const float *pF32Value) override
Sets a single-precision floating point value on the device using a UTF-8 key.
virtual const CResult SetBoolValue(const char *pszKey, const bool *pBValue) override
Sets a boolean value on the device using a key (UTF-8 string).
virtual const CResult GetInt64Value(const char *pszKey, int64_t *pI64Value) const override
Retrieves a 64-bit integer (Int64) value from the device using a UTF-8 key.
virtual const CResult GetTriggerSource(ETriggerSource *pSource) const override
Retrieves the trigger source of the camera.
virtual const CResult GetInt32Value(const char *pszKey, int32_t *pI32Value) const override
Retrieves a 32-bit integer (Int32) value from the device using a UTF-8 key.
virtual const CResult SetStringValue(const char *pszKey, const Base::CFLString< char > *pFlsValue) override
Sets a string value on the device using a UTF-8 key and pointer to narrow string.
virtual const CResult SetDoubleValue(const char *pszKey, const double *pF64Value) override
Sets a double-precision floating point value on the device using a UTF-8 key.
virtual const CResult GetEnumValue(const char *pszKey, Base::CFLString< char > *pFlsValue) const override
Gets an enum-type value from the device using a UTF-8 key.
virtual const CResult GetGain(double &f64Gain) const override
Retrieves the gain of the camera.
virtual const CResult GetExposureTime(double *pF64Exposure) const override
Retrieves the exposure time of the camera.
virtual const CResult GetEnumValue(const char *pszKey, int32_t *pI32Value) const override
Retrieves an enum value from the device using a UTF-8 key.
virtual const CResult GetExposureTime(double &f64Exposure) const override
Retrieves the exposure time of the camera.
virtual const CResult Terminate() override
Terminate the device.
virtual const CResult SetInt32Value(const char *pszKey, const int32_t *pI32Value) override
Sets a 32-bit integer (Int32) value on the device using a UTF-8 key.
virtual const CResult SetInt64Value(const char *pszKey, const int64_t *pI64Value) override
Sets a 64-bit integer (Int64) value on the device using a UTF-8 key.
virtual ~CDeviceCameraArena()
Default destructor.
virtual const CResult SetTriggerMode(bool bOn) override
Sets the trigger mode of the camera.
virtual const CResult SetGain(double f64Gain) override
Sets the gain of the camera.
virtual const CResult GetStringValue(const char *pszKey, Base::CFLString< char > *pFlsValue) const override
Retrieves a string value from the device using a UTF-8 key.
virtual const CResult Initialize() override
Initialize the device.
virtual const CResult GetAutoDetectCameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > &flarrSerialNumbers) override
Retrieves serial numbers of auto-detected cameras.
virtual const CResult GetDoubleValue(const char *pszKey, double *pF64Value) const override
Retrieves a double-precision floating point value from the device using a UTF-8 key.
virtual const CResult GetEnumFeatureEntries(const Base::CFLString< wchar_t > &flsFeature, std::vector< std::pair< int32_t, Base::CFLString< wchar_t > > > *pVctEntries) const override
Retrieves the enumeration entries of the specified feature.
virtual const CResult ExecuteCommand(const char *pszKey) const override
Executes a command on the device using a key.
virtual const CResult SetEnumValue(const char *pszKey, const Base::CFLString< char > *pFlsValue) override
Sets an enum-type value on the device using a UTF-8 key and pointer to narrow string value.
virtual const CResult Live() override
Starts live image acquisition.
virtual const CResult SetEnumValue(const char *pszKey, const int32_t *pI32Value) override
Sets an enum value on the device using a UTF-8 key.
virtual const CResult GetBoolValue(const char *pszKey, bool *pBValue) const override
Retrieves a boolean value from the device using a key (UTF-8 string).
virtual const CResult Grab() override
Acquires a single image from the device.
virtual const CResult GetGain(double *pF64Gain) const override
Retrieves the gain of the camera.
virtual const CResult TriggerWithSoftware() override
Executes a software trigger on the device.
virtual const CResult GetTriggerMode(bool &bOn) const override
Retrieves the trigger mode of the camera.
virtual const CResult SetTriggerSource(ETriggerSource eSource) override
Sets the trigger source of the camera.
virtual const CResult GetTriggerSource(ETriggerSource &eSource) const override
Retrieves the trigger source of the camera.
CDeviceCameraArena()
Default constructor.
virtual const CResult GetTriggerMode(bool *pOn) const override
Retrieves the trigger mode of the camera.
virtual const CResult Stop() override
Stops image acquisition.
virtual const CResult AutoDetectCamera(int32_t i32Index=0) override
Automatically detects a camera by index.
virtual const CResult GetAutoDetectCameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > *pFlarrSerialNumbers) override
Retrieves serial numbers of auto-detected cameras.
virtual const CResult GetFloatValue(const char *pszKey, float *pF32Value) const override
Retrieves a single-precision floating point value from the device using a UTF-8 key.
virtual const CResult GetBoolValue(const char *pszKey, bool &bValue) const
Retrieves a boolean value from the device using a key (UTF-8 string).
virtual const CResult SetFloatValue(const char *pszKey, const float &f32Value)
Sets a single-precision floating point value on the device using a UTF-8 key.
virtual const CResult SetDoubleValue(const char *pszKey, const double &f64Value)
Sets a double-precision floating point value on the device using a UTF-8 key.
virtual const CResult GetInt64Value(const char *pszKey, int64_t &i64Value) const
Retrieves a 64-bit integer (Int64) value from the device using a UTF-8 key.
virtual const CResult GetStringValue(const char *pszKey, Base::CFLString< char > &strValue) const
Retrieves a string value from the device using a UTF-8 key.
virtual const CResult SetEnumValue(const char *pszKey, const int32_t &i32Value)
Sets an enum value on the device using a UTF-8 key.
virtual const CResult SetStringValue(const char *pszKey, const Base::CFLString< char > &strValue)
Sets a string value on the device using a UTF-8 key and narrow string.
virtual const CResult GetEnumValue(const char *pszKey, int32_t &i32Value) const
Retrieves an enum value from the device using a UTF-8 key.
virtual const CResult SetInt32Value(const char *pszKey, const int32_t &i32Value)
Sets a 32-bit integer (Int32) value on the device using a UTF-8 key.
virtual const CResult SetBoolValue(const char *pszKey, const bool &bValue)
Sets a boolean value on the device using a key (UTF-8 string).
virtual const CResult SetInt64Value(const char *pszKey, const int64_t &i64Value)
Sets a 64-bit integer (Int64) value on the device using a UTF-8 key.
virtual const CResult GetFloatValue(const char *pszKey, float &f32Value) const
Retrieves a single-precision floating point value from the device using a UTF-8 key.
virtual const CResult GetDoubleValue(const char *pszKey, double &f64Value) const
Retrieves a double-precision floating point value from the device using a UTF-8 key.
virtual const CResult ExecuteCommand(const char *pszKey) const =0
Executes a command on the device using a key.
virtual const CResult GetEnumFeatureEntries(const Base::CFLString< wchar_t > &flsFeature, std::vector< std::pair< int32_t, Base::CFLString< wchar_t > > > &vctEntries) const
Retrieves the enumeration entries of the specified feature.
virtual const CResult GetInt32Value(const char *pszKey, int32_t &i32Value) const
Retrieves a 32-bit integer (Int32) value from the device using a UTF-8 key.
CDeviceGenICamBase()
Default constructor.
ETriggerSource
Trigger source.
Definition DeviceGenICamBase.h:80
Definition AutoFileCleaner.h:19