if (cameraSettings == null) {
cameraSettings = new CameraDevice.CalibratedSettings();
cameraSettings.setFrameGrabber(FrameGrabber.getDefault());
}
cameraSettings.addPropertyChangeListener(this);
BeanNode cameraNode = new CleanBeanNode<CameraDevice.Settings>
(cameraSettings, editors, "Camera");
if (projectorSettings == null) {
projectorSettings = new ProjectorDevice.CalibratedSettings();
}
projectorSettings.addPropertyChangeListener(this);
BeanNode projectorNode = new CleanBeanNode<ProjectorDevice.Settings>
(projectorSettings, editors, "Projector");
if (objectFinderSettings == null) {
objectFinderSettings = new ObjectFinder.Settings();
}
objectFinderSettings.addPropertyChangeListener(this);
BeanNode objectFinderNode = new CleanBeanNode<ObjectFinder.Settings>
(objectFinderSettings, editors, "ObjectFinder");
if (markerDetectorSettings == null) {
markerDetectorSettings = new MarkerDetector.Settings();
}
markerDetectorSettings.addPropertyChangeListener(this);
BeanNode markerDetectorNode = new CleanBeanNode<MarkerDetector.Settings>
(markerDetectorSettings, editors, "MarkerDetector");
if (alignerSettings == null) {
alignerSettings = new GNImageAligner.Settings();
}
BeanNode alignerNode = new CleanBeanNode<GNImageAligner.Settings>
(alignerSettings, editors, "GNImageAligner");
if (handMouseSettings == null) {
handMouseSettings = new HandMouse.Settings();
}
BeanNode handMouseNode = new CleanBeanNode<HandMouse.Settings>
(handMouseSettings, editors, "HandMouse");
if (virtualBallSettings == null) {
virtualBallSettings = new VirtualBall.Settings();
}
BeanNode virtualBallNode = new CleanBeanNode<VirtualBall.Settings>
(virtualBallSettings, editors, "VirtualBall");
if (realityAugmentorSettings == null) {
realityAugmentorSettings = new RealityAugmentor.Settings();
RealityAugmentor.ObjectSettings os = new RealityAugmentor.ObjectSettings();
RealityAugmentor.VirtualSettings vs = new RealityAugmentor.VirtualSettings();
os.add(vs);
realityAugmentorSettings.add(os);
}
BeanNode realityAugmentorNode = new CleanBeanNode<RealityAugmentor.Settings>
(realityAugmentorSettings, editors, "RealityAugmentor");
if (trackingSettings == null) {
trackingSettings = new TrackingWorker.Settings();
}
BeanNode trackingNode = new CleanBeanNode<TrackingWorker.Settings>
(trackingSettings, editors, "TrackingWorker");
Children children = new Children.Array();
children.add(new Node[] { cameraNode, projectorNode, objectFinderNode,
markerDetectorNode, alignerNode, handMouseNode, virtualBallNode,