internal extern static IntPtr PXCMPointConverterFactory_CreateHandExtremityConverter(IntPtr instance, IntPtr handData, PXCMHandData.AccessOrderType accessOrder, Int32 index, PXCMHandData.ExtremityType extremityType);
Exemple #2
0
    /** @brief Create hand Extremity data PointConverter for PXCMHandModule
     *      The converter will convert extremity data to target rectangle/3dbox based on requested hand.
     *      @note Make sure the handData is constantly updated throughtout the session.
     *      @example pointConverter.CreateHandExtremityConverter(handData,PXCMHandData.ACCESS_ORDER_BY_TIME,0,PXCMHandData.EXTREMITY_CENTER);
     *      @param[in] handData a pointer to PXCMHandData
     *      @param[in] accessOrder The desired hand access order
     *      @param[in] index hand index
     *      @param[in] extremityType desired extremity type to be converted
     *      @return an object of the created PointConverter, or null in case of illegal arguments
     */
    public PXCMPointConverter  CreateHandExtremityConverter(PXCMHandData handData, PXCMHandData.AccessOrderType accessOrder, Int32 index, PXCMHandData.ExtremityType extremityType)
    {
        IntPtr inst2 = PXCMPointConverterFactory_CreateHandExtremityConverter(instance, handData.instance, accessOrder, index, extremityType);

        return((inst2 == IntPtr.Zero) ? null : new PXCMPointConverter(inst2, true));
    }