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(); } }
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(); } }
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(); } }
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(); } }
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); }
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); }
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); }
public PObjectType GetObjectType() { PObjectType ret = new PObjectType(PapillonPINVOKE.PDescriptor_GetObjectType(swigCPtr), true); return(ret); }
public PObjectType GetObjectType() { PObjectType ret = new PObjectType(PapillonPINVOKE.PExampleSet_GetObjectType(swigCPtr), false); return(ret); }
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); }