public DescID(DescID src) : this(C4dApiPINVOKE.new_DescID__SWIG_1(DescID.getCPtr(src)), true) { if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } }
public override bool GetDDescription(GeListNode node, DDescriptionParams descparams) { if (!descparams.Desc.LoadDescription("tbase")) { return(false); } VisitProps(delegate(int itemID, string itemName, PropertyInfo pi) { DescID cid = new DescID(new DescLevel(itemID, C4dApi.DTYPE_LONG, 0)); BaseContainer bc = null; if (pi.PropertyType == typeof(int)) { bc = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); } else if (pi.PropertyType == typeof(string)) { bc = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_STRING); } bc.SetString(C4dApi.DESC_NAME, itemName); descparams.Desc.SetParameter(cid, bc, new DescID(new DescLevel(C4dApi.ID_TAGPROPERTIES))); }); descparams.Flags |= DESCFLAGS_DESC.DESCFLAGS_DESC_LOADED; return(true); // base.GetDDescription(node, descparams); }
public DescID GetSingleDescID() { global::System.IntPtr cPtr = C4dApiPINVOKE.Description_GetSingleDescID(swigCPtr); DescID ret = (cPtr == global::System.IntPtr.Zero) ? null : new DescID(cPtr, false); return(ret); }
public static DescID Alloc() { global::System.IntPtr cPtr = C4dApiPINVOKE.iCustomDataType_inex_Alloc(); DescID ret = (cPtr == global::System.IntPtr.Zero) ? null : new DescID(cPtr, false); return(ret); }
private bool getComboBoxCharakter() { DescID cid = new DescID(new DescLevel(SKELETT_TYPE, C4dApi.DTYPE_LONG, 0)); //Erstellt das Label vor die Combobox BaseContainer bcComboName = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); bcComboName.SetString(C4dApi.DESC_NAME, "Skelett wählen"); //Erstellen der ComboBox mit Werten BaseContainer bcComboValues = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_NONE); bcComboValues.SetString(0, "Skelett"); bcComboValues.SetString(1, "Männlich"); bcComboValues.SetString(2, "Weiblich"); bcComboValues.SetString(3, "4 Beiner"); //Führt beide Container zusammen bcComboName.SetContainer(C4dApi.DESC_CYCLE, bcComboValues); //Erstellt die Combobox in dem Reiter Object, wegen "ID_OBJECTPROPERTIES" if (!descparams.Desc.SetParameter(cid, bcComboName, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) { return(true); } return(false); }
private bool getTail() { DescID cid = new DescID(new DescLevel(SKELETT_SCHWANZ, C4dApi.DTYPE_LONG, 0)); BaseContainer bcSchwanz = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); bcSchwanz.SetString(C4dApi.DESC_NAME, "Schwanz Knochen"); //Definiert den minimalen Wert bcSchwanz.SetInt64(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert bcSchwanz.SetInt64(C4dApi.DESC_MAX, 5); if (Schwanz == true) { bcSchwanz.SetBool(C4dApi.DESC_HIDE, false); Schwanz = false; } else { bcSchwanz.SetBool(C4dApi.DESC_HIDE, true); } if (!descparams.Desc.SetParameter(cid, bcSchwanz, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) { return(true); } return(false); }
private bool getNeckLink() { DescID cid = new DescID(new DescLevel(SKELETT_HALSWIRBEL, C4dApi.DTYPE_LONG, 0)); BaseContainer bcHalsWirbel = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); bcHalsWirbel.SetString(C4dApi.DESC_NAME, "Halswirbel Knochen"); //Definiert den minimalen Wert bcHalsWirbel.SetInt64(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert bcHalsWirbel.SetInt64(C4dApi.DESC_MAX, 15); if (Schwanz == true) { bcHalsWirbel.SetBool(C4dApi.DESC_HIDE, false); //Schwanz = false; } else { bcHalsWirbel.SetBool(C4dApi.DESC_HIDE, true); } if (!descparams.Desc.SetParameter(cid, bcHalsWirbel, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) { return(true); } return(false); }
private bool getFingers(BaseContainer dataKoerper) { //Erstellt ein weiteres Feld für die Finger DescID cid = new DescID(new DescLevel(SKELETT_FINGER, C4dApi.DTYPE_LONG, 0)); BaseContainer bcFinger = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); bcFinger.SetString(C4dApi.DESC_NAME, "Finger"); //Definiert den minimalen Wert bcFinger.SetInt64(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert bcFinger.SetInt64(C4dApi.DESC_MAX, 5); if (Hand == true) { if (dataKoerper.GetInt64(SKELETT_HAND) > 0) { bcFinger.SetBool(C4dApi.DESC_HIDE, false); } else { bcFinger.SetBool(C4dApi.DESC_HIDE, true); } } else { bcFinger.SetBool(C4dApi.DESC_HIDE, true); } if (!descparams.Desc.SetParameter(cid, bcFinger, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) { return(true); } return(false); }
public void SetParam(int index, GeData data, DescID id) { C4dApiPINVOKE.CAMorphNode_SetParam(swigCPtr, index, GeData.getCPtr(data), DescID.getCPtr(id)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } }
public void SetSingleDescriptionMode(DescID descid) { C4dApiPINVOKE.Description_SetSingleDescriptionMode(swigCPtr, DescID.getCPtr(descid)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } }
public bool GetPopupId(int id, DescID descid) { bool ret = C4dApiPINVOKE.Description_GetPopupId(swigCPtr, id, DescID.getCPtr(descid)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool GetNext(SWIGTYPE_p_void handle, SWIGTYPE_p_p_BaseContainer bc, DescID id, DescID groupid) { bool ret = C4dApiPINVOKE.Description_GetNext__SWIG_0(swigCPtr, SWIGTYPE_p_void.getCPtr(handle), SWIGTYPE_p_p_BaseContainer.getCPtr(bc), DescID.getCPtr(id), DescID.getCPtr(groupid)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetParameter(DescID id, BaseContainer param, DescID groupid) { bool ret = C4dApiPINVOKE.Description_SetParameter(swigCPtr, DescID.getCPtr(id), BaseContainer.getCPtr(param), DescID.getCPtr(groupid)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool TranslateDescID(GeListNode node, DescID id, DescID res_id, SWIGTYPE_p_p_C4DAtom res_at) { bool ret = C4dApiPINVOKE.NodeData_TranslateDescID(swigCPtr, GeListNode.getCPtr(node), DescID.getCPtr(id), DescID.getCPtr(res_id), SWIGTYPE_p_p_C4DAtom.getCPtr(res_at)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetDescriptionID(BaseList2D arg0, DescID id) { bool ret = C4dApiPINVOKE.CTrack_SetDescriptionID(swigCPtr, BaseList2D.getCPtr(arg0), DescID.getCPtr(id)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool GetParam(int index, GeData data, DescID id) { bool ret = C4dApiPINVOKE.CAMorphNode_GetParam(swigCPtr, index, GeData.getCPtr(data), DescID.getCPtr(id)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool SetDParameter(CustomDataType data, DescID id, GeData t_data, SWIGTYPE_p_DESCFLAGS_SET flags) { bool ret = C4dApiPINVOKE.CustomDataTypeClass_SetDParameter(swigCPtr, CustomDataType.getCPtr(data), DescID.getCPtr(id), GeData.getCPtr(t_data), SWIGTYPE_p_DESCFLAGS_SET.getCPtr(flags)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool IsPartOf(DescID cmp, SWIGTYPE_p_Int32 pos) { bool ret = C4dApiPINVOKE.DescID_IsPartOf(swigCPtr, DescID.getCPtr(cmp), SWIGTYPE_p_Int32.getCPtr(pos)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool GetDEnabling(BaseDocument doc, BaseContainer data, DescID id, GeData t_data, DESCFLAGS_ENABLE flags, BaseContainer itemdesc) { bool ret = C4dApiPINVOKE.BrushBase_GetDEnabling(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), DescID.getCPtr(id), GeData.getCPtr(t_data), (int)flags, BaseContainer.getCPtr(itemdesc)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool GetDEnabling(BaseDocument doc, BaseContainer data, DescID id, GeData t_data, DESCFLAGS_ENABLE flags, BaseContainer itemdesc) { bool ret = (SwigDerivedClassHasMethod("GetDEnabling", swigMethodTypes3) ? C4dApiPINVOKE.BrushToolData_GetDEnablingSwigExplicitBrushToolData(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), DescID.getCPtr(id), GeData.getCPtr(t_data), (int)flags, BaseContainer.getCPtr(itemdesc)) : C4dApiPINVOKE.BrushToolData_GetDEnabling(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), DescID.getCPtr(id), GeData.getCPtr(t_data), (int)flags, BaseContainer.getCPtr(itemdesc))); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool TranslateDescID(DescID id, DescID res_id, SWIGTYPE_p_p_C4DAtom res_at) { bool ret = C4dApiPINVOKE.C4DAtom_TranslateDescID(swigCPtr, DescID.getCPtr(id), DescID.getCPtr(res_id), SWIGTYPE_p_p_C4DAtom.getCPtr(res_at)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool GetEnabling(DescID id, GeData t_data, DESCFLAGS_ENABLE flags, BaseContainer itemdesc) { bool ret = C4dApiPINVOKE.C4DAtom_GetEnabling(swigCPtr, DescID.getCPtr(id), GeData.getCPtr(t_data), (int)flags, BaseContainer.getCPtr(itemdesc)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetParameter(DescID id, GeData t_data, DESCFLAGS_SET flags) { bool ret = C4dApiPINVOKE.C4DAtom_SetParameter(swigCPtr, DescID.getCPtr(id), GeData.getCPtr(t_data), (int)flags); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool CheckDescID(DescID searchid, AtomArray ops, DescID completeid) { bool ret = C4dApiPINVOKE.Description_CheckDescID(swigCPtr, DescID.getCPtr(searchid), AtomArray.getCPtr(ops), DescID.getCPtr(completeid)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool GetSubDescriptionWithData(DescID did, AtomArray op, SWIGTYPE_p_RESOURCEDATATYPEPLUGIN resdatatypeplugin, BaseContainer bc, DescID singledescid) { bool ret = C4dApiPINVOKE.Description_GetSubDescriptionWithData(swigCPtr, DescID.getCPtr(did), AtomArray.getCPtr(op), SWIGTYPE_p_RESOURCEDATATYPEPLUGIN.getCPtr(resdatatypeplugin), BaseContainer.getCPtr(bc), DescID.getCPtr(singledescid)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool GetEnabling(CustomDataType data, DescID id, GeData t_data, SWIGTYPE_p_DESCFLAGS_ENABLE flags, BaseContainer itemdesc) { bool ret = C4dApiPINVOKE.CustomDataTypeClass_GetEnabling(swigCPtr, CustomDataType.getCPtr(data), DescID.getCPtr(id), GeData.getCPtr(t_data), SWIGTYPE_p_DESCFLAGS_ENABLE.getCPtr(flags), BaseContainer.getCPtr(itemdesc)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool SetDParameter(GeListNode node, DescID id, GeData t_data, SWIGTYPE_p_DESCFLAGS_SET flags) { bool ret = C4dApiPINVOKE.NodeData_SetDParameter(swigCPtr, GeListNode.getCPtr(node), DescID.getCPtr(id), GeData.getCPtr(t_data), SWIGTYPE_p_DESCFLAGS_SET.getCPtr(flags)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool GetDEnabling(GeListNode node, DescID id, GeData t_data, DESCFLAGS_ENABLE flags, BaseContainer itemdesc) { bool ret = C4dApiPINVOKE.NodeData_GetDEnabling(swigCPtr, GeListNode.getCPtr(node), DescID.getCPtr(id), GeData.getCPtr(t_data), (int)flags, BaseContainer.getCPtr(itemdesc)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool SetDParameter(BaseDocument doc, BaseContainer data, DescID id, GeData t_data, SWIGTYPE_p_DESCFLAGS_SET flags) { bool ret = (SwigDerivedClassHasMethod("SetDParameter", swigMethodTypes4) ? C4dApiPINVOKE.BrushToolData_SetDParameterSwigExplicitBrushToolData(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), DescID.getCPtr(id), GeData.getCPtr(t_data), SWIGTYPE_p_DESCFLAGS_SET.getCPtr(flags)) : C4dApiPINVOKE.BrushToolData_SetDParameter(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), DescID.getCPtr(id), GeData.getCPtr(t_data), SWIGTYPE_p_DESCFLAGS_SET.getCPtr(flags))); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetDParameter(BaseDocument doc, BaseContainer data, DescID id, GeData t_data, SWIGTYPE_p_DESCFLAGS_SET flags) { bool ret = C4dApiPINVOKE.BrushBase_SetDParameter(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), DescID.getCPtr(id), GeData.getCPtr(t_data), SWIGTYPE_p_DESCFLAGS_SET.getCPtr(flags)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }