@@ -0,0 +1,3042 @@
+/****************************************************************************%0D%0A*                                                                           *%0D%0A*  OpenNI 1.x Alpha                                                         *%0D%0A*  Copyright (C) 2011 PrimeSense Ltd.                                       *%0D%0A*                                                                           *%0D%0A*  This file is part of OpenNI.                                             *%0D%0A*                                                                           *%0D%0A*  OpenNI is free software: you can redistribute it and/or modify           *%0D%0A*  it under the terms of the GNU Lesser General Public License as published *%0D%0A*  by the Free Software Foundation, either version 3 of the License, or     *%0D%0A*  (at your option) any later version.                                      *%0D%0A*                                                                           *%0D%0A*  OpenNI is distributed in the hope that it will be useful,                *%0D%0A*  but WITHOUT ANY WARRANTY; without even the implied warranty of           *%0D%0A*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the             *%0D%0A*  GNU Lesser General Public License for more details.                      *%0D%0A*                                                                           *%0D%0A*  You should have received a copy of the GNU Lesser General Public License *%0D%0A*  along with OpenNI. If not, see %3Chttp://www.gnu.org/licenses/%3E.           *%0D%0A*                                                                           *%0D%0A****************************************************************************/%0D%0Apackage org.OpenNI;%0D%0A%0D%0Apublic class AlternativeViewpointCapability extends CapabilityBase%0D%0A%7B%0D%0A%09public AlternativeViewpointCapability(ProductionNode node) throws StatusException%0D%0A%09%7B%0D%0A%09%09super(node);%0D%0A%09%09%0D%0A%09%09this.viewPointChanged = new StateChangedObservable() %0D%0A%09%09%7B%0D%0A%09%09%09@Override%0D%0A%09%09%09protected int registerNative(String cb, OutArg%3CLong%3E phCallback) %0D%0A%09%09%09%7B%0D%0A%09%09%09%09return NativeMethods.xnRegisterToViewPointChange(toNative(), this, cb, phCallback);%0D%0A%09%09%09%7D%0D%0A%0D%0A%09%09%09@Override%0D%0A%09%09%09protected void unregisterNative(long hCallback) %0D%0A%09%09%09%7B%0D%0A%09%09%09%09NativeMethods.xnUnregisterFromViewPointChange(toNative(), hCallback);%0D%0A%09%09%09%7D%0D%0A%09%09%7D;%0D%0A%09%7D%0D%0A%09%0D%0A%09boolean isViewpointSupported(ProductionNode other)%0D%0A%09%7B%0D%0A%09%09return NativeMethods.xnIsViewPointSupported(toNative(), other.toNative());%0D%0A%09%7D%0D%0A%09%0D%0A%09void setViewpoint(ProductionNode other) throws StatusException%0D%0A%09%7B%0D%0A%09%09int status = NativeMethods.xnSetViewPoint(toNative(), other.toNative());%0D%0A%09%09WrapperUtils.throwOnError(status);%0D%0A%09%7D%0D%0A%09%0D%0A%09void resetViewpoint() throws StatusException%0D%0A%09%7B%0D%0A%09%09int status = NativeMethods.xnResetViewPoint(toNative());%0D%0A%09%09WrapperUtils.throwOnError(status);%0D%0A%09%7D%0D%0A%09%0D%0A%09boolean isViewpointAs(ProductionNode other)%0D%0A%09%7B%0D%0A%09%09return NativeMethods.xnIsViewPointAs(toNative(), other.toNative());%0D%0A%09%7D%0D%0A%0D%0A%09public IStateChangedObservable getViewPointChangedEvent() %7B return this.viewPointChanged; %7D%0D%0A%0D%0A%09private StateChangedObservable viewPointChanged;%0D%0A%7D%0D%0A

Deal with a bad file rename - phase II