ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
Camera Class Reference

#include <camera.h>

Inheritance diagram for Camera:
[legend]
Collaboration diagram for Camera:
[legend]

Public Slots

void onCounterReceived (unsigned int, unsigned int)
 
void softwareTrigger ()
 
void updateNodeList ()
 

Signals

void counterReceived (const unsigned int, const unsigned int)
 
void imageReceived (QImage image, unsigned int iterator, unsigned long long timestamp, unsigned long long timestampDelta)
 
void nodeListChanged ()
 

Public Member Functions

 Camera (const std::shared_ptr< peak::core::DeviceDescriptor > &deviceDescriptor)
 
void close ()
 
void enableSequencer (bool mode)
 
void enableSequencerConfiguration (bool mode)
 
std::string key ()
 
void loadUserSet (const std::string &userSet="Default")
 
std::shared_ptr< NodeListModelnodeList ()
 
std::shared_ptr< peak::core::NodeMap > nodeMapRemoteDevice () const
 
void prepareAcquisition (AcquisitionType type=AcquisitionType::Freerun, int param=0)
 
void setBufferCountMinSequencer (int bufferCountMinSequencer)
 
bool startAcquisition ()
 
bool stopAcquisition ()
 

Private Attributes

bool m_acquisitionStarted
 
QThread m_acquisitionThread
 
AcquisitionWorkerm_acquisitionWorker
 
int m_bufferCountMinSequencer = 8
 
QThread m_converterThread
 
ImageConverterWorkerm_converterWorker
 
std::shared_ptr< peak::core::DataStream > m_dataStream
 
std::shared_ptr< peak::core::Device > m_device
 
std::shared_ptr< NodeListModelm_nodeList
 
std::shared_ptr< peak::core::NodeMap > m_nodeMapRemoteDevice
 
std::shared_ptr< peak::core::nodes::CommandNode > m_triggerNode
 
std::string m_triggerSelectorEntry
 
std::shared_ptr< peak::core::nodes::EnumerationNode > m_triggerSelectorNode
 

Constructor & Destructor Documentation

◆ Camera()

Camera::Camera ( const std::shared_ptr< peak::core::DeviceDescriptor > & deviceDescriptor)
explicit

Member Function Documentation

◆ close()

void Camera::close ( )

◆ counterReceived

void Camera::counterReceived ( const unsigned int ,
const unsigned int  )
signal

◆ enableSequencer()

void Camera::enableSequencer ( bool mode)

◆ enableSequencerConfiguration()

void Camera::enableSequencerConfiguration ( bool mode)

◆ imageReceived

void Camera::imageReceived ( QImage image,
unsigned int iterator,
unsigned long long timestamp,
unsigned long long timestampDelta )
signal

◆ key()

std::string Camera::key ( )

◆ loadUserSet()

void Camera::loadUserSet ( const std::string & userSet = "Default")

◆ nodeList()

std::shared_ptr< NodeListModel > Camera::nodeList ( )

◆ nodeListChanged

void Camera::nodeListChanged ( )
signal

◆ nodeMapRemoteDevice()

std::shared_ptr< peak::core::NodeMap > Camera::nodeMapRemoteDevice ( ) const

◆ onCounterReceived

void Camera::onCounterReceived ( unsigned int imageCounter,
unsigned int errorCounter )
slot

◆ prepareAcquisition()

void Camera::prepareAcquisition ( AcquisitionType type = AcquisitionType::Freerun,
int param = 0 )

◆ setBufferCountMinSequencer()

void Camera::setBufferCountMinSequencer ( int bufferCountMinSequencer)

◆ softwareTrigger

void Camera::softwareTrigger ( )
slot

◆ startAcquisition()

bool Camera::startAcquisition ( )

◆ stopAcquisition()

bool Camera::stopAcquisition ( )

◆ updateNodeList

void Camera::updateNodeList ( )
slot

Member Data Documentation

◆ m_acquisitionStarted

bool Camera::m_acquisitionStarted
private

◆ m_acquisitionThread

QThread Camera::m_acquisitionThread
private

◆ m_acquisitionWorker

AcquisitionWorker* Camera::m_acquisitionWorker
private

◆ m_bufferCountMinSequencer

int Camera::m_bufferCountMinSequencer = 8
private

◆ m_converterThread

QThread Camera::m_converterThread
private

◆ m_converterWorker

ImageConverterWorker* Camera::m_converterWorker
private

◆ m_dataStream

std::shared_ptr<peak::core::DataStream> Camera::m_dataStream
private

◆ m_device

std::shared_ptr<peak::core::Device> Camera::m_device
private

◆ m_nodeList

std::shared_ptr<NodeListModel> Camera::m_nodeList
private

◆ m_nodeMapRemoteDevice

std::shared_ptr<peak::core::NodeMap> Camera::m_nodeMapRemoteDevice
private

◆ m_triggerNode

std::shared_ptr<peak::core::nodes::CommandNode> Camera::m_triggerNode
private

◆ m_triggerSelectorEntry

std::string Camera::m_triggerSelectorEntry
private

◆ m_triggerSelectorNode

std::shared_ptr<peak::core::nodes::EnumerationNode> Camera::m_triggerSelectorNode
private

The documentation for this class was generated from the following files: