|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
#include <backend.h>
Public Slots | |
| void | softwareTrigger () |
| void | switchToContinuousAcquisition () |
| void | switchToSequencerAcquisition () |
Signals | |
| void | acquisitionRunningChanged () |
| void | acquisitionStarted () |
| void | cameraAboutToClose () |
| void | cameraClosed () |
| void | cameraDisconnected () |
| void | cameraOpened () |
| void | closing () |
| void | CounterChanged (unsigned int frameCounter, unsigned int errorCounter) |
| void | counterChanged (const unsigned int frameCounter, const unsigned int errorCounter) |
| void | counterChanged (unsigned int frameCounter, unsigned int errorCounter) |
| void | counterChanged (unsigned int frameCounter, unsigned int errorCounter) |
| void | counterChanged (unsigned int frameCounter, unsigned int errorCounter, double frameRate_ms, double lineRate_ms) |
| void | error (QString message) |
| void | errorOccurred (QString errorText) |
| void | ImageReceived (QImage image) |
| void | imageReceived (QImage image) |
| void | imageReceived (QImage image) |
| void | imageReceived (QImage image, double chunkDataExposureTime_ms) |
| void | imageReceived (QImage image, double chunkDataExposureTime_ms) |
| void | imageReceived (QImage image, unsigned int iterator, unsigned long long timestamp, unsigned long long timestampDelta) |
| void | MessageBoxTrigger (QString messageTitle, QString messageText) |
| void | messageBoxTrigger (QString messageTitle, QString messageText) |
| void | messageBoxTrigger (QString messageTitle, QString messageText) |
| void | messageBoxTrigger (QString messageTitle, QString messageText, bool critical) |
| void | messageBoxTrigger (QString messageTitle, QString messageText, bool critical) |
| void | nodeListChanged () |
| void | sequenceListChanged () |
| void | sequencerDurationChanged () |
| void | started (bool backendStarted) |
| void | startupFinished () |
| void | triggerExecuted () |
Public Member Functions | |
| bool | acquisitionRunning () const |
| Q_INVOKABLE void | applyPixelFormat (int index) |
| Q_INVOKABLE void | applyRoi (QRect roi) |
| BackEnd (QObject *parent=nullptr) | |
| BackEnd (QObject *parent=nullptr) | |
| BackEnd (QObject *parent=nullptr) | |
| BackEnd (QObject *parent=nullptr) | |
| BackEnd (QObject *parent=nullptr) | |
| BackEnd (QObject *parent=nullptr) | |
| Q_INVOKABLE void | cameraSettingsStartup () |
| void | closeCamera () |
| void | CloseDevice () |
| void | CloseDevice () |
| void | closeDevice () |
| void | closeDevice () |
| void | closeDevice () |
| void | EnsureDeviceAutoFeaturesAreDisabled () |
| double | GetExposureInUs () |
| peak::afl::Range< double > | GetExposureRange () |
| double | GetFrameRate () |
| peak::afl::Range< double > | GetFrameRateRange () |
| std::pair< bool, std::pair< QString, QString > > | getFrameStartTrigger () |
| double | GetGain () |
| peak::afl::Range< double > | GetGainRange () |
| uint8_t | GetHysteresis () |
| peak::afl::Range< uint8_t > | GetHysteresisRange () |
| int | GetImageHeight () const |
| int | getImageHeight () const |
| int | getImageHeight () const |
| int | GetImageWidth () const |
| int | getImageWidth () const |
| int | getImageWidth () const |
| std::pair< bool, std::pair< QString, QString > > | getLineStartTrigger () |
| std::shared_ptr< peak::core::NodeMap > | getNodemapRemoteDevice () |
| peak_afl_rectangle | GetROI () |
| peak_afl_size | GetROIMinSize () |
| const std::vector< peak_afl_controller_algorithm > & | GetSearchAlgorithms () |
| peak_afl_controller_limit | GetSearchRangeLimit () |
| peak::afl::Range< int64_t > | GetSearchRangeRange () |
| const std::vector< peak_afl_controller_sharpness_algorithm > & | GetSharpnessAlgorithms () |
| bool | HasDeviceAutoFocus () |
| Q_INVOKABLE void | init () |
| bool | InitializeAFL () |
| bool | IsAutoFocusModeSupported () |
| bool | IsAutoFocusROISupported () |
| bool | IsHysteresisSupported () |
| bool | IsSearchRangeSupported () |
| Q_INVOKABLE void | loadSequencerSet (int index) |
| NodeListModel * | nodeList () const |
| Q_INVOKABLE void | openCamera (int index=-1) |
| bool | OpenDevice () |
| Q_INVOKABLE bool | OpenDevice () |
| Q_INVOKABLE bool | openDevice () |
| bool | openDevice () |
| bool | openDevice () |
| Q_INVOKABLE void | prepareSequencer (int sequencerDuration) |
| Q_INVOKABLE void | resetRoi () |
| Q_INVOKABLE void | saveSequencerSet (int index) |
| int | sequencerDuration () const |
| bool | SetAutoControllerFinishedCallback (const peak::afl::callback::FinishedCallback &callback) |
| bool | SetAutoControllerProcessingCallback (const peak::afl::callback::DataProcessingCallback &callback) |
| void | SetExposure (double exposureTimeInUs, double &fpsOut, double &maxFpsOut) |
| bool | SetFocusMode (peak_afl_controller_automode mode) |
| void | SetFrameRate (double frameRate) |
| void | SetGain (double gain) |
| bool | SetGainSelectorToAll () |
| void | SetHysteresis (uint8_t hysteresis) |
| bool | SetROI (peak_afl_rectangle roi) |
| void | SetSearchAlgorithm (int searchAlgorithmIndex) |
| bool | SetSearchRange (int min, int max) |
| void | SetSharpnessAlgorithm (int sharpnessAlgorithmIndex) |
| bool | Start () |
| Q_INVOKABLE bool | start () |
| bool | start () |
| bool | start () |
| Q_INVOKABLE void | startAcquisition () |
| Q_INVOKABLE void | stopAcquisition () |
| void | updateCameraList () |
| void | UpdateSearchAlgorithms () |
| void | UpdateSharpnessAlgorithms () |
| ~BackEnd () | |
| ~BackEnd () override | |
| ~BackEnd () override | |
| ~BackEnd () override | |
| ~BackEnd () override | |
| ~BackEnd () override | |
Static Public Member Functions | |
| static Q_INVOKABLE bool | isQt6 () |
| static Q_INVOKABLE QString | QtVersion () |
| static Q_INVOKABLE QString | QtVersion () |
| static Q_INVOKABLE QString | QtVersion () |
| static Q_INVOKABLE QString | Version () |
| static Q_INVOKABLE QString | Version () |
| static Q_INVOKABLE QString | Version () |
Properties | |
| bool | acquisitionRunning |
| NodeListModel * | nodeList |
| int | sequencerDuration |
Private Slots | |
| void | handleConfigDialogClosed () |
| void | handleConfigSubmitted (int offsetY, int imageHeight, const std::pair< bool, std::pair< QString, QString > > &frameStartTrigger, const std::pair< bool, std::pair< QString, QString > > &lineStartTrigger, int acquisitionLineRate, int PWMFrequency) |
Private Member Functions | |
| bool | NodeIsAvailable (const std::string &node_name) |
| bool | NodeIsReadable (const std::string &node_name) |
| bool | NodeIsWriteable (const std::string &node_name) |
Private Attributes | |
| bool | m_acquisitionRunning = false |
| QThread | m_acquisitionThread |
| AcquisitionWorker * | m_acquisitionWorker {} |
| bool | m_aflInitialized = false |
| std::shared_ptr< peak::afl::Controller > | m_autoController {} |
| std::shared_ptr< peak::afl::Manager > | m_autoFeatureManager {} |
| std::shared_ptr< Camera > | m_camera = nullptr |
| ConfigDialog * | m_configDialog = nullptr |
| std::shared_ptr< peak::core::DataStream > | m_dataStream = nullptr |
| std::shared_ptr< peak::core::Device > | m_device = nullptr |
| std::vector< std::shared_ptr< peak::core::DeviceDescriptor > > | m_devices |
| std::pair< bool, std::pair< QString, QString > > | m_frameStartTrigger |
| QImage * | m_image = new QImage |
| std::pair< bool, std::pair< QString, QString > > | m_lineStartTrigger |
| std::shared_ptr< NodeListModel > | m_nodeList |
| std::shared_ptr< peak::core::NodeMap > | m_nodeMap = nullptr |
| std::shared_ptr< peak::core::NodeMap > | m_nodemapRemoteDevice |
| std::string | m_openedCamera |
| std::vector< peak_afl_controller_algorithm > | m_searchAlgorithms {} |
| int | m_sequencerDuration = 4 |
| std::vector< peak_afl_controller_sharpness_algorithm > | m_sharpnessAlgorithms {} |
| bool | m_submitted = false |
|
explicit |
|
override |
|
explicit |
|
override |
|
explicit |
| BackEnd::~BackEnd | ( | ) |
|
explicit |
|
override |
|
explicit |
|
override |
|
explicit |
|
override |
| bool BackEnd::acquisitionRunning | ( | ) | const |
|
signal |
|
signal |
| void BackEnd::applyPixelFormat | ( | int | index | ) |
| void BackEnd::applyRoi | ( | QRect | roi | ) |
|
signal |
|
signal |
|
signal |
|
signal |
| void BackEnd::cameraSettingsStartup | ( | ) |
| void BackEnd::closeCamera | ( | ) |
| void BackEnd::CloseDevice | ( | ) |
| void BackEnd::CloseDevice | ( | ) |
| void BackEnd::closeDevice | ( | ) |
| void BackEnd::closeDevice | ( | ) |
| void BackEnd::closeDevice | ( | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| void BackEnd::EnsureDeviceAutoFeaturesAreDisabled | ( | ) |
|
signal |
|
signal |
| double BackEnd::GetExposureInUs | ( | ) |
| peak::afl::Range< double > BackEnd::GetExposureRange | ( | ) |
| double BackEnd::GetFrameRate | ( | ) |
| peak::afl::Range< double > BackEnd::GetFrameRateRange | ( | ) |
| std::pair< bool, std::pair< QString, QString > > BackEnd::getFrameStartTrigger | ( | ) |
| double BackEnd::GetGain | ( | ) |
| peak::afl::Range< double > BackEnd::GetGainRange | ( | ) |
| uint8_t BackEnd::GetHysteresis | ( | ) |
| peak::afl::Range< uint8_t > BackEnd::GetHysteresisRange | ( | ) |
| int BackEnd::GetImageHeight | ( | ) | const |
| int BackEnd::getImageHeight | ( | ) | const |
| int BackEnd::getImageHeight | ( | ) | const |
| int BackEnd::GetImageWidth | ( | ) | const |
| int BackEnd::getImageWidth | ( | ) | const |
| int BackEnd::getImageWidth | ( | ) | const |
| std::pair< bool, std::pair< QString, QString > > BackEnd::getLineStartTrigger | ( | ) |
| std::shared_ptr< peak::core::NodeMap > BackEnd::getNodemapRemoteDevice | ( | ) |
| peak_afl_rectangle BackEnd::GetROI | ( | ) |
| peak_afl_size BackEnd::GetROIMinSize | ( | ) |
| const std::vector< peak_afl_controller_algorithm > & BackEnd::GetSearchAlgorithms | ( | ) |
| peak_afl_controller_limit BackEnd::GetSearchRangeLimit | ( | ) |
| peak::afl::Range< int64_t > BackEnd::GetSearchRangeRange | ( | ) |
| const std::vector< peak_afl_controller_sharpness_algorithm > & BackEnd::GetSharpnessAlgorithms | ( | ) |
|
privateslot |
|
privateslot |
| bool BackEnd::HasDeviceAutoFocus | ( | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| void BackEnd::init | ( | ) |
| bool BackEnd::InitializeAFL | ( | ) |
| bool BackEnd::IsAutoFocusModeSupported | ( | ) |
| bool BackEnd::IsAutoFocusROISupported | ( | ) |
| bool BackEnd::IsHysteresisSupported | ( | ) |
|
static |
| bool BackEnd::IsSearchRangeSupported | ( | ) |
| void BackEnd::loadSequencerSet | ( | int | index | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
private |
|
private |
|
private |
| NodeListModel * BackEnd::nodeList | ( | ) | const |
|
signal |
| void BackEnd::openCamera | ( | int | index = -1 | ) |
| bool BackEnd::OpenDevice | ( | ) |
| Q_INVOKABLE bool BackEnd::OpenDevice | ( | ) |
| bool BackEnd::openDevice | ( | ) |
| bool BackEnd::openDevice | ( | ) |
| bool BackEnd::openDevice | ( | ) |
| void BackEnd::prepareSequencer | ( | int | sequencerDuration | ) |
|
static |
|
static |
|
static |
| void BackEnd::resetRoi | ( | ) |
| void BackEnd::saveSequencerSet | ( | int | index | ) |
|
signal |
| int BackEnd::sequencerDuration | ( | ) | const |
|
signal |
| bool BackEnd::SetAutoControllerFinishedCallback | ( | const peak::afl::callback::FinishedCallback & | callback | ) |
| bool BackEnd::SetAutoControllerProcessingCallback | ( | const peak::afl::callback::DataProcessingCallback & | callback | ) |
| void BackEnd::SetExposure | ( | double | exposureTimeInUs, |
| double & | fpsOut, | ||
| double & | maxFpsOut ) |
| bool BackEnd::SetFocusMode | ( | peak_afl_controller_automode | mode | ) |
| void BackEnd::SetFrameRate | ( | double | frameRate | ) |
| void BackEnd::SetGain | ( | double | gain | ) |
| bool BackEnd::SetGainSelectorToAll | ( | ) |
| void BackEnd::SetHysteresis | ( | uint8_t | hysteresis | ) |
| bool BackEnd::SetROI | ( | peak_afl_rectangle | roi | ) |
| void BackEnd::SetSearchAlgorithm | ( | int | searchAlgorithmIndex | ) |
| bool BackEnd::SetSearchRange | ( | int | min, |
| int | max ) |
| void BackEnd::SetSharpnessAlgorithm | ( | int | sharpnessAlgorithmIndex | ) |
|
slot |
| bool BackEnd::Start | ( | ) |
| bool BackEnd::start | ( | ) |
| bool BackEnd::start | ( | ) |
| bool BackEnd::start | ( | ) |
| void BackEnd::startAcquisition | ( | ) |
|
signal |
|
signal |
| void BackEnd::stopAcquisition | ( | ) |
|
slot |
|
slot |
|
signal |
| void BackEnd::updateCameraList | ( | ) |
| void BackEnd::UpdateSearchAlgorithms | ( | ) |
| void BackEnd::UpdateSharpnessAlgorithms | ( | ) |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
read |
|
read |
|
read |