Aperture.DeviceManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/en |
The number of cameras available. |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when a camera is discovered. |
|
Emitted when a camera is removed (typically because it has been unplugged). |
Fields¶
- Inherited:
Class Details¶
- class Aperture.DeviceManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_instance()¶
- Returns:
- Return type:
Gets an
Aperture.DeviceManager
.New in version 0.1.
- get_camera(idx)¶
- Parameters:
idx (
int
) – a camera index- Returns:
the
Aperture.Camera
at idx- Return type:
Gets an
Aperture.Camera
object for the given camera index.
- get_num_cameras()¶
- Returns:
the number of available cameras
- Return type:
Gets the number of available cameras.
New in version 0.1.
- next_camera(camera)¶
- Parameters:
camera (
Aperture.Camera
orNone
) – anAperture.Camera
- Returns:
the next camera, or
None
if there are no cameras- Return type:
Gets the next camera index after camera. If there are no cameras available, returns
None
.If camera is
None
, the first camera will be returned.New in version 0.1.
Signal Details¶
- Aperture.DeviceManager.signals.camera_added(device_manager, camera_index)¶
- Signal Name:
camera-added
- Flags:
- Parameters:
device_manager (
Aperture.DeviceManager
) – The object which received the signalcamera_index (
Aperture.Camera
) – the new camera
Emitted when a camera is discovered.
New in version 0.1.
- Aperture.DeviceManager.signals.camera_removed(device_manager, camera_index)¶
- Signal Name:
camera-removed
- Flags:
- Parameters:
device_manager (
Aperture.DeviceManager
) – The object which received the signalcamera_index (
Aperture.Camera
) – the (now removed) camera
Emitted when a camera is removed (typically because it has been unplugged).
New in version 0.1.
Property Details¶
- Aperture.DeviceManager.props.num_cameras¶
- Name:
num-cameras
- Type:
- Default Value:
0
- Flags:
The number of cameras available.