BioImager  4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
microscope._utils.OnlyTriggersOnceOnSoftwareMixin Class Reference
Inheritance diagram for microscope._utils.OnlyTriggersOnceOnSoftwareMixin:
microscope.abc.TriggerTargetMixin microscope.mirror.bmc.BMCDeformableMirror microscope.mirror.mirao52e.Mirao52e microscope.simulators.SimulatedCamera microscope.simulators.SimulatedDeformableMirror microscope.simulators.stage_aware_camera.StageAwareCamera microscope.testsuite.devices.TestCamera

Public Member Functions

microscope.TriggerType trigger_type (self)
 
microscope.TriggerMode trigger_mode (self)
 
None set_trigger (self, microscope.TriggerType ttype, microscope.TriggerMode tmode)
 
- Public Member Functions inherited from microscope.abc.TriggerTargetMixin
None trigger (self)
 

Additional Inherited Members

- Protected Member Functions inherited from microscope.abc.TriggerTargetMixin
None _do_trigger (self)
 

Detailed Description

Utility mixin for devices that only trigger "once" with software.

This mixin avoids code duplication for the many devices whose only
supported trigger type and trigger mode are `TriggerType.SOFTWARE`
and `TriggerMode.ONCE`.

Definition at line 46 of file _utils.py.

Member Function Documentation

◆ set_trigger()

None microscope._utils.OnlyTriggersOnceOnSoftwareMixin.set_trigger ( self,
microscope.TriggerType ttype,
microscope.TriggerMode tmode )
Set device for a specific trigger.

Reimplemented from microscope.abc.TriggerTargetMixin.

Definition at line 63 of file _utils.py.

65 ) -> None:
66 if ttype is not microscope.TriggerType.SOFTWARE:
68 "the only trigger type supported is software"
69 )
70 if tmode is not microscope.TriggerMode.ONCE:
72 "the only trigger mode supported is 'once'"
73 )
74
75

◆ trigger_mode()

microscope.TriggerMode microscope._utils.OnlyTriggersOnceOnSoftwareMixin.trigger_mode ( self)

Reimplemented from microscope.abc.TriggerTargetMixin.

Definition at line 60 of file _utils.py.

60 def trigger_mode(self) -> microscope.TriggerMode:
61 return microscope.TriggerMode.ONCE
62

◆ trigger_type()

microscope.TriggerType microscope._utils.OnlyTriggersOnceOnSoftwareMixin.trigger_type ( self)

Reimplemented from microscope.abc.TriggerTargetMixin.

Definition at line 56 of file _utils.py.

56 def trigger_type(self) -> microscope.TriggerType:
57 return microscope.TriggerType.SOFTWARE
58

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