ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
mainwindow.MainWindow Class Reference
Inheritance diagram for mainwindow.MainWindow:
[legend]
Collaboration diagram for mainwindow.MainWindow:
[legend]

Public Member Functions

 __del__ (self)
 
 __init__ (self, QWidget parent=None)
 
 on_aboutqt_link_activated (self, link)
 
 on_acquisition_timer (self)
 This function gets called on every timeout of the acquisition timer.
 
 update_counters (self)
 This function gets called when the frame and error counters have changed :return:
 

Public Attributes

 on_aboutqt_link_activated = QLabel(status_bar)
 
 on_acquisition_timer
 
 widget = QWidget(self)
 

Private Member Functions

 __close_device (self)
 Stop acquisition if still running and close datastream and nodemap of the device.
 
 __create_statusbar (self)
 
 __destroy_all (self)
 
 __open_device (self)
 
 __start_acquisition (self)
 Start Acquisition on camera and start the acquisition timer to receive and display images.
 
 __stop_acquisition (self)
 Stop acquisition timer and stop acquisition on camera :return:
 

Private Attributes

bool __acquisition_running = False
 
 __acquisition_timer = QTimer()
 
 __datastream = None
 
 __device = None
 
 __display = None
 
int __error_counter = 0
 
int __frame_counter = 0
 
 __image_converter = ids_peak_ipl.ImageConverter()
 
 __label_aboutqt = None
 
 __label_infos = None
 
 __label_version = None
 
 __layout = QVBoxLayout()
 
 __nodemap_remote_device = None
 

Constructor & Destructor Documentation

◆ __init__()

mainwindow.MainWindow.__init__ ( self,
QWidget parent = None )

◆ __del__()

mainwindow.MainWindow.__del__ ( self)

Member Function Documentation

◆ __close_device()

mainwindow.MainWindow.__close_device ( self)
private

Stop acquisition if still running and close datastream and nodemap of the device.

◆ __create_statusbar()

mainwindow.MainWindow.__create_statusbar ( self)
private

◆ __destroy_all()

mainwindow.MainWindow.__destroy_all ( self)
private

◆ __open_device()

mainwindow.MainWindow.__open_device ( self)
private

◆ __start_acquisition()

mainwindow.MainWindow.__start_acquisition ( self)
private

Start Acquisition on camera and start the acquisition timer to receive and display images.

:return: True/False if acquisition start was successful

◆ __stop_acquisition()

mainwindow.MainWindow.__stop_acquisition ( self)
private

Stop acquisition timer and stop acquisition on camera :return:

◆ on_aboutqt_link_activated()

mainwindow.MainWindow.on_aboutqt_link_activated ( self,
link )

◆ on_acquisition_timer()

mainwindow.MainWindow.on_acquisition_timer ( self)

This function gets called on every timeout of the acquisition timer.

◆ update_counters()

mainwindow.MainWindow.update_counters ( self)

This function gets called when the frame and error counters have changed :return:

Member Data Documentation

◆ __acquisition_running

bool mainwindow.MainWindow.__acquisition_running = False
private

◆ __acquisition_timer

mainwindow.MainWindow.__acquisition_timer = QTimer()
private

◆ __datastream

mainwindow.MainWindow.__datastream = None
private

◆ __device

mainwindow.MainWindow.__device = None
private

◆ __display

mainwindow.MainWindow.__display = None
private

◆ __error_counter

mainwindow.MainWindow.__error_counter = 0
private

◆ __frame_counter

mainwindow.MainWindow.__frame_counter = 0
private

◆ __image_converter

mainwindow.MainWindow.__image_converter = ids_peak_ipl.ImageConverter()
private

◆ __label_aboutqt

mainwindow.MainWindow.__label_aboutqt = None
private

◆ __label_infos

mainwindow.MainWindow.__label_infos = None
private

◆ __label_version

mainwindow.MainWindow.__label_version = None
private

◆ __layout

mainwindow.MainWindow.__layout = QVBoxLayout()
private

◆ __nodemap_remote_device

mainwindow.MainWindow.__nodemap_remote_device = None
private

◆ on_aboutqt_link_activated

mainwindow.MainWindow.on_aboutqt_link_activated = QLabel(status_bar)

◆ on_acquisition_timer

mainwindow.MainWindow.on_acquisition_timer

◆ widget

mainwindow.MainWindow.widget = QWidget(self)

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