Exemple #1
0
 public PDescriptor(PObjectType objectType, PGuid describerId) : this(PapillonPINVOKE.new_PDescriptor__SWIG_2(PObjectType.getCPtr(objectType), PGuid.getCPtr(describerId)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
 public PDetection(PGuid objectId, PGuid detectorId, PFrame frame, PObjectType objectType, PTrack track, PFeatureMap featureMap, float confidence) : this(PapillonPINVOKE.new_PDetection__SWIG_2(PGuid.getCPtr(objectId), PGuid.getCPtr(detectorId), PFrame.getCPtr(frame), PObjectType.getCPtr(objectType), PTrack.getCPtr(track), PFeatureMap.getCPtr(featureMap), confidence), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public PDescription(string name, PObjectType objectType, PGuid identityId) : this(PapillonPINVOKE.new_PDescription__SWIG_2(name, PObjectType.getCPtr(objectType), PGuid.getCPtr(identityId)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #4
0
 public PDetection(PObjectType objectType, PGuid detectorId, PFrame frame, PFeatureMap featureMap, float reliability) : this(PapillonPINVOKE.new_PDetection__SWIG_1(PObjectType.getCPtr(objectType), PGuid.getCPtr(detectorId), PFrame.getCPtr(frame), PFeatureMap.getCPtr(featureMap), reliability), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #5
0
        public static PObject Create(PObjectType type)
        {
            switch (type)
            {
            case PObjectType.Dictionary:
                return(new PDictionary());

            case PObjectType.Array:
                return(new PArray());

            case PObjectType.Number:
                return(new PNumber(0));

            case PObjectType.Real:
                return(new PReal(0));

            case PObjectType.Boolean:
                return(new PBoolean(true));

            case PObjectType.Data:
                return(new PData(new byte[0]));

            case PObjectType.String:
                return(new PString(""));

            case PObjectType.Date:
                return(new PDate(DateTime.Now));

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Exemple #6
0
 public PObjectType(PObjectType other) : this(PapillonPINVOKE.new_PObjectType__SWIG_1(PObjectType.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetObjectType(PObjectType objectType)
 {
     PapillonPINVOKE.PDescription_SetObjectType(swigCPtr, PObjectType.getCPtr(objectType));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public PList GetDescriptors(PObjectType objectType)
    {
        PList ret = new PList(PapillonPINVOKE.PDescription_GetDescriptors__SWIG_1(swigCPtr, PObjectType.getCPtr(objectType)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #9
0
    public virtual PResult GetObjectType(PObjectType objectType)
    {
        PResult ret = new PResult(PapillonPINVOKE.PDescriberInterface_GetObjectType(swigCPtr, PObjectType.getCPtr(objectType)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #10
0
    public static PObjectType FromString(string objectType)
    {
        PObjectType ret = new PObjectType(PapillonPINVOKE.PObjectType_FromString(objectType), false);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #11
0
    public PObjectType GetObjectType()
    {
        PObjectType ret = new PObjectType(PapillonPINVOKE.PDescriptor_GetObjectType(swigCPtr), true);

        return(ret);
    }
Exemple #12
0
    public PObjectType GetObjectType()
    {
        PObjectType ret = new PObjectType(PapillonPINVOKE.PExampleSet_GetObjectType(swigCPtr), false);

        return(ret);
    }
Exemple #13
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PObjectType obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }