Package empro :: Module empro :: Module core :: Class CameraList
[frames] | no frames]

Class CameraList

Manages the list of cameras.

Class Hierarchy for CameraList
Class Hierarchy for CameraList

Instance Methods
 
__contains__(x, y)
y in x
 
__delitem__(x, y)
del x[y]
 
__getitem__(x, y)
x[y]
 
__len__(x)
len(x)
 
__setitem__(x, i, y)
x[i]=y
bool
append(iCamera)
Appends a camera to the list.
Camera
at(iName)
Returns the camera by name.
None
clear()
Clear the list.
bool
contains(iCamera)
Determines if the camera is in the list.
int
index(iCamera)
Retrieves the index of a camera.
bool
insert(iIndex, iCamera)
Inserts a camera into the list.
list{string}
names()
Returns the names of the cameras in the list.
bool
remove(iIndex)
Removes a camera.
bool
replace(iIndex, iCamera)
Replaces a camera.
int
size()
Returns the size of the list.
None
swap(iIndex, iIndex)
Swaps two cameras.
Method Details

append(iCamera)

 

Appends a camera to the list.

Parameters:
  • iCamera (Camera) - camera to add.
Returns: bool

at(iName)

 

Returns the camera by name.

Parameters:
  • iName (string) - Name of the requested camera.
Returns: Camera

contains(iCamera)

 

Determines if the camera is in the list.

Parameters:
  • iCamera (Camera) - camera to query.
Returns: bool

index(iCamera)

 

Retrieves the index of a camera.

Parameters:
  • iCamera (Camera) - camera to query.
Returns: int

insert(iIndex, iCamera)

 

Inserts a camera into the list.

Parameters:
  • iIndex (int) - Index of where to insert the new element.
  • iCamera (Camera) - camera to add.
Returns: bool

remove(iIndex)

 

Removes a camera.

Parameters:
  • iIndex (int) - Index of the camera to remove.
Returns: bool

replace(iIndex, iCamera)

 

Replaces a camera.

Parameters:
  • iIndex (int) - Index of which element to replace.
  • iCamera (Camera) - camera to add.
Returns: bool

swap(iIndex, iIndex)

 

Swaps two cameras.

Parameters:
  • iIndex (int) - Index of the first camera.
  • iIndex (int) - Index of the second camera.
Returns: None