Ejemplo n.º 1
0
    internal static pxcmStatus QueryAlertNameByIDINT(IntPtr instance, AlertData.AlertType alertEvent, out String outAlertName)
    {
        StringBuilder alertName = new StringBuilder(ALERT_NAME_SIZE);
        pxcmStatus    sts       = PXCMFaceData_QueryAlertNameByID(instance, alertEvent, alertName);

        outAlertName = (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR) ? alertName.ToString() : "";
        return(sts);
    }
Ejemplo n.º 2
0
    /**
     *  @brief Return whether the specified alert is fired for a specific face in the current frame, and retrieve its data.
     *  @param[in] alertEvent the label of the alert event.
     *  @param[in] faceID the ID of the face who's alert should be retrieved.
     *  @param[out] alertData contains all the information for the fired event.
     *  @see AlertData
     *  @return true if the alert is fired, false otherwise.
     */
    public Boolean IsAlertFiredByFace(AlertData.AlertType alertEvent, Int32 faceID, out AlertData alertData)
    {
        alertData = new AlertData();

        return(PXCMFaceData_IsAlertFiredByFace(instance, alertEvent, faceID, alertData));
    }
Ejemplo n.º 3
0
 internal static extern Boolean PXCMFaceData_IsAlertFiredByFace(IntPtr instance, AlertData.AlertType alertEvent, Int32 faceID, [Out] AlertData alertData);
Ejemplo n.º 4
0
    /**
     *  @brief Return whether the specified alert is fired in the current frame, and retrieve its data if it is.
     *  @param[in] alertEvent the ID of the event.
     *  @param[out] alertData contains all the information for the fired event.
     *  @see AlertData
     *  @return true if the alert is fired, false otherwise.
     */
    public Boolean IsAlertFired(AlertData.AlertType alertEvent, out AlertData alertData)
    {
        alertData = new AlertData();

        return(PXCMFaceData_IsAlertFired(instance, alertEvent, alertData));
    }
Ejemplo n.º 5
0
 private static extern pxcmStatus PXCMFaceData_QueryAlertNameByID(IntPtr instance, AlertData.AlertType alertEvent, StringBuilder outAlertName);
Ejemplo n.º 6
0
 /**
  *  @brief Return whether the specified alert is fired for a specific face in the current frame, and retrieve its data.
  *  @param[in] alertEvent the label of the alert event.
  *  @param[out] outAlertName parameter to contain the name of the alert,maximum size - ALERT_NAME_SIZE
  *  @see AlertData
  *  @return PXC_STATUS_NO_ERROR if returning the alert's name was successful; otherwise, return one of the following errors:
  *  PXCM_STATUS_PARAM_UNSUPPORTED - if outAlertName is null.
  *  PXCM_STATUS_DATA_UNAVAILABLE - if no alert corresponding to alertEvent was found.
  */
 public pxcmStatus QueryAlertNameByID(AlertData.AlertType alertEvent, out String outAlertName)
 {
     return(QueryAlertNameByIDINT(instance, alertEvent, out outAlertName));
 }