FLImaging 7.8.25.3
DeviceCameraPylon.h
1#pragma once
2
10
11#include "DeviceGenICamTypeBase.h"
12
13struct PYLON_DEVICE_HANDLE_;
14
16namespace FLImaging
17{
19 namespace Devices
20 {
21 class CInternalDeviceCameraPylon;
22
31 {
32 public:
40
48
49 virtual const CResult Initialize() override;
50 virtual const CResult Terminate() override;
51
52 virtual const CResult Grab() override;
53 virtual const CResult Live() override;
54 virtual const CResult Stop() override;
55
56 virtual const CResult TriggerWithSoftware() override;
57
58 virtual const CResult AutoDetectGigECamera(int32_t i32Index = 0) override;
59 virtual const CResult AutoDetectIEEE1394Camera(int32_t i32Index = 0) override;
60 virtual const CResult AutoDetectUSBCamera(int32_t i32Index = 0) override;
61 virtual const CResult AutoDetectCameraLinkCamera(int32_t i32Index = 0) override;
62
65
68
71
74
75
76 virtual const CResult SetExposureTime(double f64Exposure) override;
77 virtual const CResult GetExposureTime(double* pF64Exposure) const override;
78 virtual const CResult GetExposureTime(double& f64Exposure) const override;
79
80 virtual const CResult SetGain(double f64Gain) override;
81 virtual const CResult GetGain(double* pF64Gain) const override;
82 virtual const CResult GetGain(double& f64Gain) const override;
83
84 virtual const CResult SetTriggerMode(bool bOn) override;
85 virtual const CResult GetTriggerMode(bool* pOn) const override;
86 virtual const CResult GetTriggerMode(bool& bOn) const override;
87
88 virtual const CResult SetTriggerSource(ETriggerSource eSource) override;
89 virtual const CResult GetTriggerSource(ETriggerSource* pSource) const override;
90 virtual const CResult GetTriggerSource(ETriggerSource& eSource) const override;
91
92 virtual const CResult GetSupportedDeviceTypes(std::vector<EDeviceType>& vctTypes) const override;
93
95 virtual const CResult ExecuteCommand(const char* pszKey) const override;
96
98 virtual const CResult SetBoolValue(const char* pszKey, const bool* pBValue) override;
99
101 virtual const CResult GetBoolValue(const char* pszKey, bool* pBValue) const override;
102
104 virtual const CResult SetInt32Value(const char* pszKey, const int32_t* pI32Value) override;
105
107 virtual const CResult GetInt32Value(const char* pszKey, int32_t* pI32Value) const override;
108
110 virtual const CResult SetInt64Value(const char* pszKey, const int64_t* pI64Value) override;
111
113 virtual const CResult GetInt64Value(const char* pszKey, int64_t* pI64Value) const override;
114
116 virtual const CResult SetFloatValue(const char* pszKey, const float* pF32Value) override;
117
119 virtual const CResult GetFloatValue(const char* pszKey, float* pF32Value) const override;
120
122 virtual const CResult SetDoubleValue(const char* pszKey, const double* pF64Value) override;
123
125 virtual const CResult GetDoubleValue(const char* pszKey, double* pF64Value) const override;
126
128 virtual const CResult SetStringValue(const char* pszKey, const Base::CFLString<char>* pFlsValue) override;
129
131 virtual const CResult GetStringValue(const char* pszKey, Base::CFLString<char>* pFlsValue) const override;
132
134 virtual const CResult SetEnumValue(const char* pszKey, const int32_t* pI32Value) override;
135 virtual const CResult SetEnumValue(const char* pszKey, const Base::CFLString<char>* pFlsValue) override;
136
138 virtual const CResult GetEnumValue(const char* pszKey, int32_t* pI32Value) const override;
139 virtual const CResult GetEnumValue(const char* pszKey, Base::CFLString<char>* pFlsValue) const override;
140
142 virtual const CResult GetEnumFeatureEntries(const Base::CFLString<wchar_t>& flsFeature, std::vector<std::pair<int32_t, Base::CFLString<wchar_t>>>* pVctEntries) const override;
143
144 DeclareGetClassType();
145
146 protected:
147
148 virtual bool CheckDeviceLibraries() const override;
149 virtual const CResult UpdateEnvironment() override;
150
151 EDeviceType ConvertDeviceType(const char* pszDeviceType);
152
153 const CResult InitializeDeviceLibrary();
154 const CResult TerminateDeviceLibrary();
155
156 protected:
157
158 CInternalDeviceCameraPylon* m_pInternal;
159
160 PYLON_DEVICE_HANDLE_* m_hDevice;
161
162 int32_t m_i32InitializeDeviceLibrary;
163
164 friend class CInternalDeviceCameraPylon;
165 };
166 }
167}
168
169
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 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.
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 Terminate() override
Terminate the device.
virtual const CResult GetTriggerMode(bool *pOn) const override
Retrieves the trigger mode of the camera.
virtual const CResult GetGain(double *pF64Gain) const override
Retrieves the gain of the camera.
virtual ~CDeviceCameraPylon()
Default destructor.
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 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 GetGain(double &f64Gain) const override
Retrieves the gain of the camera.
CDeviceCameraPylon()
Default constructor.
virtual const CResult SetGain(double f64Gain) override
Sets the gain of the camera.
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 GetAutoDetectGigECameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > *pFlarrSerialNumbers) override
Retrieves the serial numbers of detected GigE cameras.
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 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 GetAutoDetectUSBCameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > *pFlarrSerialNumbers) override
Retrieves the serial numbers of detected USB cameras.
virtual const CResult ExecuteCommand(const char *pszKey) const override
Executes a command on the device using a key.
virtual const CResult Grab() override
Acquires a single image from the device.
virtual const CResult GetTriggerSource(ETriggerSource *pSource) const override
Retrieves the trigger source of the camera.
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 SetBoolValue(const char *pszKey, const bool *pBValue) override
Sets a boolean value on the device using a key (UTF-8 string).
virtual const CResult GetAutoDetectIEEE1394CameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > *pFlarrSerialNumbers) override
Retrieves the serial numbers of detected IEEE 1394 cameras.
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 GetExposureTime(double *pF64Exposure) const override
Retrieves the exposure time of the camera.
virtual const CResult Live() override
Starts live image acquisition.
virtual const CResult GetAutoDetectCameraLinkCameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > &flarrSerialNumbers) override
Retrieves the serial numbers of detected Camera Link cameras.
virtual const CResult SetExposureTime(double f64Exposure) override
Sets the exposure time of the camera.
virtual const CResult TriggerWithSoftware() override
Executes a software trigger on the device.
virtual const CResult GetExposureTime(double &f64Exposure) const override
Retrieves the exposure time of the camera.
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 AutoDetectGigECamera(int32_t i32Index=0) override
Automatically detects a GigE camera at the specified index.
virtual const CResult Stop() override
Stops image acquisition.
virtual const CResult GetSupportedDeviceTypes(std::vector< EDeviceType > &vctTypes) const override
Retrieves the supported device types.
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 GetAutoDetectGigECameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > &flarrSerialNumbers) override
Retrieves the serial numbers of detected GigE cameras.
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 const CResult AutoDetectCameraLinkCamera(int32_t i32Index=0) override
Automatically detects a Camera Link camera at the specified index.
virtual const CResult GetAutoDetectCameraLinkCameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > *pFlarrSerialNumbers) override
Retrieves the serial numbers of detected Camera Link cameras.
virtual const CResult SetTriggerMode(bool bOn) override
Sets the trigger mode of the camera.
virtual const CResult Initialize() override
Initialize the device.
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 GetTriggerMode(bool &bOn) const override
Retrieves the trigger mode of the camera.
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 GetAutoDetectUSBCameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > &flarrSerialNumbers) override
Retrieves the serial numbers of detected USB cameras.
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 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 AutoDetectIEEE1394Camera(int32_t i32Index=0) override
Automatically detects an IEEE 1394 camera at the specified index.
virtual const CResult GetTriggerSource(ETriggerSource &eSource) const override
Retrieves the trigger source of the camera.
virtual const CResult GetAutoDetectIEEE1394CameraSerialNumbers(Base::CFLArray< Base::CFLString< wchar_t > > &flarrSerialNumbers) override
Retrieves the serial numbers of detected IEEE 1394 cameras.
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 AutoDetectUSBCamera(int32_t i32Index=0) override
Automatically detects a USB camera at the specified index.
virtual const CResult SetTriggerSource(ETriggerSource eSource) override
Sets the trigger source of the camera.
ETriggerSource
Trigger source.
Definition DeviceGenICamBase.h:80
EDeviceType
Device type.
Definition DeviceGenICamTypeBase.h:41
CDeviceGenICamTypeBase()
Default constructor.
Definition AutoFileCleaner.h:19