XnUtils.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002 *                                                                            *
00003 *  OpenNI 1.0 Alpha                                                          *
00004 *  Copyright (C) 2010 PrimeSense Ltd.                                        *
00005 *                                                                            *
00006 *  This file is part of OpenNI.                                              *
00007 *                                                                            *
00008 *  OpenNI is free software: you can redistribute it and/or modify            *
00009 *  it under the terms of the GNU Lesser General Public License as published  *
00010 *  by the Free Software Foundation, either version 3 of the License, or      *
00011 *  (at your option) any later version.                                       *
00012 *                                                                            *
00013 *  OpenNI is distributed in the hope that it will be useful,                 *
00014 *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00015 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the              *
00016 *  GNU Lesser General Public License for more details.                       *
00017 *                                                                            *
00018 *  You should have received a copy of the GNU Lesser General Public License  *
00019 *  along with OpenNI. If not, see <http://www.gnu.org/licenses/>.            *
00020 *                                                                            *
00021 *****************************************************************************/
00022 
00023 
00024 
00025 
00026 #ifndef __XN_UTILS_H__
00027 #define __XN_UTILS_H__
00028 
00036 //---------------------------------------------------------------------------
00037 // Includes
00038 //---------------------------------------------------------------------------
00039 #include <XnTypes.h>
00040 
00041 //---------------------------------------------------------------------------
00042 // Functions
00043 //---------------------------------------------------------------------------
00044 
00055 XN_C_API XnStatus xnGetVersion(XnVersion* pVersion);
00056 
00058 
00069 XN_C_API const XnChar* xnProductionNodeTypeToString(XnProductionNodeType Type);
00070 
00077 XN_C_API XnStatus xnProductionNodeTypeFromString(const XnChar* strType, XnProductionNodeType* pType);
00078 
00084 XN_C_API const XnBool xnIsTypeGenerator(XnProductionNodeType type);
00085 
00087 
00098 XN_C_API const XnChar* xnPixelFormatToString(XnPixelFormat format);
00099 
00106 XN_C_API XnStatus xnPixelFormatFromString(const XnChar* strName, XnPixelFormat* pFormat);
00107 
00109 
00120 XN_C_API XnUInt32 xnResolutionGetXRes(XnResolution resolution);
00121 
00127 XN_C_API XnUInt32 xnResolutionGetYRes(XnResolution resolution);
00128 
00135 XN_C_API XnResolution xnResolutionGetFromXYRes(XnUInt32 xRes, XnUInt32 yRes);
00136 
00142 XN_C_API XnResolution xnResolutionGetFromName(const XnChar* strName);
00143 
00149 XN_C_API const XnChar* xnResolutionGetName(XnResolution resolution);
00150 
00152 
00166 XN_C_API XnInt32 xnVersionCompare(const XnVersion* pVersion1, const XnVersion* pVersion2);
00167 
00168 XN_C_API XnStatus xnVersionToString(const XnVersion* pVersion, XnChar* csResult, XnUInt32 nSize);
00169 
00171 
00177 XN_C_API XnStatus xnProductionNodeDescriptionToString(const XnProductionNodeDescription* pDescription, XnChar* csResult, XnUInt32 nSize);
00178 
00180 
00186 XN_C_API XnPoint3D xnCreatePoint3D(XnFloat x, XnFloat y, XnFloat z);
00187 XN_C_API XnPlane3D xnCreatePlane3D(XnPoint3D ptPoint, XnVector3D vNormal);
00188 
00190 
00196 XN_C_API XnStatus xnRegisterModule(const XnChar* strModule, const XnChar* strConfigDir);
00197 XN_C_API XnStatus xnUnregisterModule(const XnChar* strModule);
00198 XN_C_API XnStatus xnPrintRegisteredModules();
00199 
00201 
00207 XN_C_API XnStatus xnRegisterGlobalLicense(XnLicense* pLicense);
00208 XN_C_API XnStatus xnUnregisterGlobalLicense(XnLicense* pLicense);
00209 XN_C_API XnStatus xnPrintRegisteredLicenses();
00210 
00212 
00223 XN_C_API XnOutputMetaData* xnAllocateOutputMetaData();
00229 XN_C_API void xnFreeOutputMetaData(const XnOutputMetaData* pMetaData);
00236 XN_C_API XnStatus xnCopyOutputMetaData(XnOutputMetaData* pDestination, const XnOutputMetaData* pSource);
00237 
00243 XN_C_API XnMapMetaData* xnAllocateMapMetaData();
00249 XN_C_API void xnFreeMapMetaData(const XnMapMetaData* pMetaData);
00256 XN_C_API XnStatus xnCopyMapMetaData(XnMapMetaData* pDestination, const XnMapMetaData* pSource);
00257 
00263 XN_C_API XnDepthMetaData* xnAllocateDepthMetaData();
00269 XN_C_API void xnFreeDepthMetaData(const XnDepthMetaData* pMetaData);
00277 XN_C_API XnStatus xnCopyDepthMetaData(XnDepthMetaData* pDestination, const XnDepthMetaData* pSource);
00278 
00284 XN_C_API XnImageMetaData* xnAllocateImageMetaData();
00290 XN_C_API void xnFreeImageMetaData(const XnImageMetaData* pMetaData);
00298 XN_C_API XnStatus xnCopyImageMetaData(XnImageMetaData* pDestination, const XnImageMetaData* pSource);
00299 
00305 XN_C_API XnIRMetaData* xnAllocateIRMetaData();
00311 XN_C_API void xnFreeIRMetaData(const XnIRMetaData* pMetaData);
00319 XN_C_API XnStatus xnCopyIRMetaData(XnIRMetaData* pDestination, const XnIRMetaData* pSource);
00320 
00326 XN_C_API XnAudioMetaData* xnAllocateAudioMetaData();
00332 XN_C_API void xnFreeAudioMetaData(const XnAudioMetaData* pMetaData);
00340 XN_C_API XnStatus xnCopyAudioMetaData(XnAudioMetaData* pDestination, const XnAudioMetaData* pSource);
00341 
00347 XN_C_API XnSceneMetaData* xnAllocateSceneMetaData();
00353 XN_C_API void xnFreeSceneMetaData(const XnSceneMetaData* pMetaData);
00361 XN_C_API XnStatus xnCopySceneMetaData(XnSceneMetaData* pDestination, const XnSceneMetaData* pSource);
00362 
00364 
00382 XN_C_API XnStatus xnAutoEnumerateOverSingleInput(XnContext* pContext, XnNodeInfoList* pList, XnProductionNodeDescription* pDescription, const XnChar* strCreationInfo, XnProductionNodeType InputType, XnEnumerationErrors* pErrors, XnNodeQuery* pQuery);
00383 
00385 
00388 #endif // __XN_UTILS_H__


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:51