use of us.mn.state.dot.tms.Camera in project iris by mnit-rtmc.
the class CameraManager method addPlaylist.
/**
* Add a camera to the play list
*/
public void addPlaylist(Camera c) {
PlayList pl = play_list;
if (canEditPlayList(pl)) {
ArrayList<Camera> cams = new ArrayList<Camera>(Arrays.asList(pl.getCameras()));
cams.add(c);
pl.setCameras(cams.toArray(new Camera[0]));
}
}
use of us.mn.state.dot.tms.Camera in project iris by mnit-rtmc.
the class CameraManager method removePlaylist.
/**
* Remove a camera from the play list
*/
public void removePlaylist(Camera c) {
PlayList pl = play_list;
if (canEditPlayList(pl)) {
ArrayList<Camera> cams = new ArrayList<Camera>(Arrays.asList(pl.getCameras()));
cams.remove(c);
pl.setCameras(cams.toArray(new Camera[0]));
}
}
use of us.mn.state.dot.tms.Camera in project iris by mnit-rtmc.
the class PlayListPanel method insertCamera.
/**
* Insert a camera
*/
private void insertCamera() {
Camera c = lookupCamera();
if (c != null) {
insertIntoModel(c);
changeCameras();
}
cam_txt.setText("");
}
use of us.mn.state.dot.tms.Camera in project iris by mnit-rtmc.
the class PopoutCamControlPanel method createPresetModel.
/**
* Create the camera preset model
*/
private DefaultComboBoxModel<CameraPreset> createPresetModel(CameraPTZ cam_ptz) {
Camera c = cam_ptz.getCamera();
DefaultComboBoxModel<CameraPreset> cbxm = new DefaultComboBoxModel<CameraPreset>();
// add a blank element at the beginning
cbxm.addElement(null);
if (c != null) {
cam_ptz.setCamera(c);
for (int i = 1; i <= CameraPreset.MAX_PRESET; ++i) {
CameraPreset cp = CameraPresetHelper.lookup(c, i);
if (cp != null)
cbxm.addElement(cp);
}
}
return cbxm;
}
use of us.mn.state.dot.tms.Camera in project iris by mnit-rtmc.
the class PopoutCamControlPanel method monitorSelected.
/**
* Called when a video monitor is selected
*/
private void monitorSelected() {
VideoMonitor vm = getSelectedOutput();
String vmn = (vm != null) ? vm.getName() : "null";
System.out.println("Setting monitor output to " + vmn);
watcher.setProxy(vm);
if (vm != null) {
Camera c = camera_ptz.getCamera();
vm.setCamera(c);
}
}
Aggregations