/** * Adds a node to the NodeInfoList with given description, creationInfo, and neededNodes * * @param description Description of the node added to the list * @param creationInfo Creation info string for the node added to the list * @param neededNodes Nodes needed by the node added to the list * @throws StatusException If underlying native code returns errors, a Status Exception will be * generated */ public void add( ProductionNodeDescription description, String creationInfo, NodeInfoList neededNodes) throws StatusException { long pNativeDesc = description.createNative(); int status = NativeMethods.xnNodeInfoListAdd( toNative(), pNativeDesc, creationInfo, neededNodes == null ? 0 : neededNodes.toNative()); ProductionNodeDescription.freeNative(pNativeDesc); WrapperUtils.throwOnError(status); }
void resetViewpoint() throws StatusException { int status = NativeMethods.xnResetViewPoint(toNative()); WrapperUtils.throwOnError(status); }
void setViewpoint(ProductionNode other) throws StatusException { int status = NativeMethods.xnSetViewPoint(toNative(), other.toNative()); WrapperUtils.throwOnError(status); }
/** * Stops data generation from this node * * @throws StatusException If underlying native code returns non-zero status, Status Exception is * thrown by this function */ public void stopGenerating() throws StatusException { int status = NativeMethods.xnStopGenerating(this.toNative()); WrapperUtils.throwOnError(status); }
/** * Goes to sleep until data is available * * @throws StatusException If underlying native code returns non-zero status, Status Exception is * thrown by this function */ public void waitAndUpdateData() throws StatusException { int status = NativeMethods.xnWaitAndUpdateData(this.toNative()); WrapperUtils.throwOnError(status); }
/** * @param location * @throws StatusException */ public void remove(Iterator<NodeInfo> location) throws StatusException { NodeInfoListIterator iter = (NodeInfoListIterator) location; int status = NativeMethods.xnNodeInfoListRemove(toNative(), iter.it); WrapperUtils.throwOnError(status); }
/** * Adds a node to this list by iterating from another list * * @param current Node to be added * @throws StatusException If underlying native code returns errors, a Status Exception will be * generated */ public void addNodeFromList(Iterator<NodeInfo> current) throws StatusException { NodeInfoListIterator iter = (NodeInfoListIterator) current; int status = NativeMethods.xnNodeInfoListAddNodeFromList(toNative(), iter.it); WrapperUtils.throwOnError(status); }
/** * Adds a NodeInfo object to the list * * @param nodeInfo Node to be added to the list * @throws StatusException If underlying native code returns errors, a Status Exception will be * generated */ public void addNode(NodeInfo nodeInfo) throws StatusException { int status = NativeMethods.xnNodeInfoListAddNode(toNative(), nodeInfo.toNative()); WrapperUtils.throwOnError(status); }
public void filter(Query query, Context context) throws StatusException { int status = NativeMethods.xnNodeQueryFilterList(context.toNative(), query.toNative(), toNative()); WrapperUtils.throwOnError(status); }
/** * Appends another NodeInfoList to this one * * @param other NodeInfoList to be appended * @throws StatusException If underlying native code returns errors, a Status Exception will be * generated */ public void append(NodeInfoList other) throws StatusException { int status = NativeMethods.xnNodeInfoListAppend(toNative(), other.toNative()); WrapperUtils.throwOnError(status); }
/** * Clears the list * * @throws StatusException If underlying native code returns errors, a Status Exception will be * generated */ public void clear() throws StatusException { int status = NativeMethods.xnNodeInfoListClear(toNative()); WrapperUtils.throwOnError(status); }