public bool Message(BaseDocument doc, BaseContainer data, int type, SWIGTYPE_p_void t_data) { bool ret = C4dApiPINVOKE.BrushBase_Message(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), type, SWIGTYPE_p_void.getCPtr(t_data)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
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.SetLong(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert bcFinger.SetLong(C4dApi.DESC_MAX, 5); if (Hand == true) { if (dataKoerper.GetLong(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; }
private bool getFeets(BaseContainer dataKoerper) { //Erstellt ein weiteres Feld für die Füße DescID cid = new DescID(new DescLevel(SKELETT_FUESSE, C4dApi.DTYPE_LONG, 0)); BaseContainer bcFuesse = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); bcFuesse.SetString(C4dApi.DESC_NAME, "Füße"); //Definiert den minimalen Wert bcFuesse.SetLong(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert bcFuesse.SetLong(C4dApi.DESC_MAX, 2); if (Bein == true && Schwanz == false) { if (dataKoerper.GetLong(SKELETT_BEINE) > 0) { bcFuesse.SetLong(C4dApi.DESC_MAX, 2); bcFuesse.SetBool(C4dApi.DESC_HIDE, false); } else { bcFuesse.SetBool(C4dApi.DESC_HIDE, true); } } else if (Bein == true && Schwanz == true) { if (dataKoerper.GetLong(SKELETT_BEINE) > 0) { bcFuesse.SetLong(C4dApi.DESC_MAX, 4); bcFuesse.SetBool(C4dApi.DESC_HIDE, false); } else { bcFuesse.SetBool(C4dApi.DESC_HIDE, true); } } else { bcFuesse.SetBool(C4dApi.DESC_HIDE, true); } if (!descparams.Desc.SetParameter(cid, bcFuesse, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) return true; return false; }
public bool Set(DescID descid, BaseContainer datadescription, BaseList2D bl) { bool ret = C4dApiPINVOKE.DynamicDescription_Set(swigCPtr, DescID.getCPtr(descid), BaseContainer.getCPtr(datadescription), BaseList2D.getCPtr(bl)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
private bool getArms(BaseContainer dataKoerper) { //Erstellt ein weiteres Feld für die Arme DescID cid = new DescID(new DescLevel(SKELETT_ARME, C4dApi.DTYPE_LONG, 0)); BaseContainer bcArme = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_REAL); bcArme.SetString(C4dApi.DESC_NAME, "Arme"); //Definiert den minimalen Wert bcArme.SetLong(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert bcArme.SetLong(C4dApi.DESC_MAX, 2); bool temp = dataKoerper.GetBool(SKELETT_OBERKOERPER_BOX); if (dataKoerper.GetLong(SKELETT_TYPE) == 3) { temp = false; bcArme.SetLong(C4dApi.DESC_DEFAULT, 0); } if (temp == true) { bcArme.SetBool(C4dApi.DESC_HIDE, false); Hand = true; } else { bcArme.SetBool(C4dApi.DESC_HIDE, true); Hand = false; } //bcArme.SetBool(C4dApi.DESC_HIDE, true); if (!descparams.Desc.SetParameter(cid, bcArme, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) return true; return false; }
public virtual void CheckData(BaseContainer bc, GeData data) { C4dApiPINVOKE.ResourceDataTypeClass_CheckData(swigCPtr, BaseContainer.getCPtr(bc), GeData.getCPtr(data)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); }
public IMAGERESULT BmOpen(SWIGTYPE_p_p_PluginMovieData md, SWIGTYPE_p_Filename name, BaseBitmap bm, BaseContainer data, SAVEBIT savebits, int fps) { IMAGERESULT ret = (IMAGERESULT)C4dApiPINVOKE.BitmapSaverPlugin_BmOpen(swigCPtr, SWIGTYPE_p_p_PluginMovieData.getCPtr(md), SWIGTYPE_p_Filename.getCPtr(name), BaseBitmap.getCPtr(bm), BaseContainer.getCPtr(data), (int)savebits, fps); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public void GetPrefs(BaseContainer bc) { C4dApiPINVOKE.GvNodeGUI_GetPrefs(swigCPtr, BaseContainer.getCPtr(bc)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); }
public void MouseDown(int x, int y, int chn, int qa, BaseContainer msg) { C4dApiPINVOKE.GvNodeGUI_MouseDown(swigCPtr, x, y, chn, qa, BaseContainer.getCPtr(msg)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); }
public bool GetDrawStatistics(BaseContainer bc) { bool ret = C4dApiPINVOKE.BaseDraw_GetDrawStatistics(swigCPtr, BaseContainer.getCPtr(bc)); 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 void InitView(BaseContainer camera, ref Fusee.Math.Core.Matrix4D /* constMatrix&_cstype */ op_m, double sv, double pix_x, double pix_y, bool fitview) { double[] adbl_op_m; unsafe {adbl_op_m = Fusee.Math.ArrayConversion.Convert.Matrix4DToArrayDoubleC4DLayout(op_m); fixed (double *pdbl_op_m = adbl_op_m) { /* constMatrix&_csin_pre */ try { C4dApiPINVOKE.BaseDraw_InitView(swigCPtr, BaseContainer.getCPtr(camera), (IntPtr) pdbl_op_m /* constMatrix&_csin */, sv, pix_x, pix_y, fitview); } finally { // NOP op_m = Fusee.Math.ArrayConversion.Convert.ArrayDoubleC4DLayoutToMatrix4D(pdbl_op_m); /* constMatrix&_csin_post */ } } } /* constMatrix&_csin_terminator */ }
public bool MouseInput(BaseDocument doc, BaseContainer data, BaseDraw bd, SWIGTYPE_p_EditorWindow win, BaseContainer msg) { bool ret = C4dApiPINVOKE.BrushBase_MouseInput(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), BaseDraw.getCPtr(bd), SWIGTYPE_p_EditorWindow.getCPtr(win), BaseContainer.getCPtr(msg)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public bool GetCursorInfo(BaseDocument doc, BaseContainer data, BaseDraw bd, double x, double y, BaseContainer bc) { bool ret = C4dApiPINVOKE.BrushBase_GetCursorInfo(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), BaseDraw.getCPtr(bd), x, y, BaseContainer.getCPtr(bc)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual void GetDefaultProperties(BaseContainer data) { C4dApiPINVOKE.ResourceDataTypeClass_GetDefaultProperties(swigCPtr, BaseContainer.getCPtr(data)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); }
public int Message(BaseContainer msg, BaseContainer result) { int ret = C4dApiPINVOKE.GvNodeGUI_Message(swigCPtr, BaseContainer.getCPtr(msg), BaseContainer.getCPtr(result)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual bool GetDescription(CustomDataType data, Description res, SWIGTYPE_p_DESCFLAGS_DESC flags, BaseContainer parentdescription, DescID singledescid) { bool ret = C4dApiPINVOKE.ResourceDataTypeClass_GetDescription(swigCPtr, CustomDataType.getCPtr(data), Description.getCPtr(res), SWIGTYPE_p_DESCFLAGS_DESC.getCPtr(flags), BaseContainer.getCPtr(parentdescription), DescID.getCPtr(singledescid)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public void SetContainer(BaseContainer v) { C4dApiPINVOKE.GeData_SetContainer(swigCPtr, BaseContainer.getCPtr(v)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); }
public bool BmEdit(BaseContainer data) { bool ret = C4dApiPINVOKE.BitmapSaverPlugin_BmEdit(swigCPtr, BaseContainer.getCPtr(data)); return ret; }
public GeData(BaseContainer n) : this(C4dApiPINVOKE.new_GeData__SWIG_13(BaseContainer.getCPtr(n)), true) { if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); }
public DescID Alloc(BaseContainer datadescription) { DescID ret = new DescID(C4dApiPINVOKE.DynamicDescription_Alloc(swigCPtr, BaseContainer.getCPtr(datadescription)), true); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public bool CreatePopupMenu(BaseContainer menu) { bool ret = C4dApiPINVOKE.Description_CreatePopupMenu(swigCPtr, BaseContainer.getCPtr(menu)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public bool FillDefaultContainer(BaseContainer res, int type, string /* constString&_cstype */ name) { bool ret = C4dApiPINVOKE.DynamicDescription_FillDefaultContainer(swigCPtr, BaseContainer.getCPtr(res), type, name); 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; }
private bool getHands(BaseContainer dataKoerper) { //Erstellt ein weiteres Feld für die Hände DescID cid = new DescID(new DescLevel(SKELETT_HAND, C4dApi.DTYPE_LONG, 0)); BaseContainer bcHand = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); bcHand.SetString(C4dApi.DESC_NAME, "Hände"); //Definiert den minimalen Wert bcHand.SetLong(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert if (Hand == true) { //C4dApi.GePrint("anzahl Arme = " + dataKoerper.GetLong(SKELETT_ARME)); if (dataKoerper.GetLong(SKELETT_ARME) > 0) { bcHand.SetLong(C4dApi.DESC_MAX, dataKoerper.GetLong(SKELETT_ARME)); bcHand.SetBool(C4dApi.DESC_HIDE, false); } else { bcHand.SetBool(C4dApi.DESC_HIDE, true); } } else { bcHand.SetBool(C4dApi.DESC_HIDE, true); } if (!descparams.Desc.SetParameter(cid, bcHand, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) return true; return false; }
public BaseContainer GetParameter(DescID id, BaseContainer temp, AtomArray ar) { IntPtr cPtr = C4dApiPINVOKE.Description_GetParameter(swigCPtr, DescID.getCPtr(id), BaseContainer.getCPtr(temp), AtomArray.getCPtr(ar)); BaseContainer ret = (cPtr == IntPtr.Zero) ? null : new BaseContainer(cPtr, false); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
private bool getLegs(BaseContainer dataKoerper) { DescID cid = new DescID(new DescLevel(SKELETT_UNTERKOERPER_BOX, C4dApi.DTYPE_BOOL, 0)); BaseContainer bcUnterKoerper = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_BOOL); bcUnterKoerper.SetString(C4dApi.DESC_NAME, "Beine Aktivieren"); bcUnterKoerper.SetBool(C4dApi.DESC_DEFAULT, true); // Create the boolean check box under the previously created sub group (CIRCLEOBJECT_SUBGROUP) if (!descparams.Desc.SetParameter(cid, bcUnterKoerper, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) return true; BaseContainer dataUnterKoerper = GetDataInstance(node); //Erstellt ein weiteres Feld für die Beine cid = new DescID(new DescLevel(SKELETT_BEINE, C4dApi.DTYPE_LONG, 0)); BaseContainer bcBeine = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); bcBeine.SetString(C4dApi.DESC_NAME, "Beine"); //Definiert den minimalen Wert bcBeine.SetLong(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert bool temp2 = dataKoerper.GetBool(SKELETT_UNTERKOERPER_BOX); if (temp2 == true && dataKoerper.GetLong(SKELETT_TYPE) == 3)//Schaltung zwischen 4 Beiner und Menschen Ist der Type ein 4 Beiner so ist die Maximal zahl der Beine 4 { bcBeine.SetLong(C4dApi.DESC_MAX, 4); bcBeine.SetBool(C4dApi.DESC_HIDE, false); Bein = true; Schwanz = true; } else if (temp2 == true && dataKoerper.GetLong(SKELETT_TYPE) != 3)//Schaltung zwischen 4 Beiner und Menschen Ist der Type ein Mensch so ist die Maximal zahl der Beine 2 { bcBeine.SetLong(C4dApi.DESC_MAX, 2); bcBeine.SetBool(C4dApi.DESC_HIDE, false); Bein = true; } else { bcBeine.SetBool(C4dApi.DESC_HIDE, true); Bein = false; } if (!descparams.Desc.SetParameter(cid, bcBeine, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) return true; return false; }
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; }
private bool getToes(BaseContainer dataKoerper) { //Erstellt ein weiteres Feld für die Zehen DescID cid = new DescID(new DescLevel(SKELETT_ZEHEN, C4dApi.DTYPE_LONG, 0)); BaseContainer bcZehen = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG); bcZehen.SetString(C4dApi.DESC_NAME, "Zehen"); //Definiert den minimalen Wert bcZehen.SetLong(C4dApi.DESC_MIN, 0); //Definiert den maximalen Wert bcZehen.SetLong(C4dApi.DESC_MAX, 5); BaseContainer dataUnterKoerper = GetDataInstance(node); if (Bein == true && dataUnterKoerper.GetLong(SKELETT_TYPE) != 3)//Überprüfung auf 4 Beiner, ist es kein 4 Beiner so wird das Feld Zehen eingeblendet { if (dataKoerper.GetLong(SKELETT_FUESSE) > 0) { bcZehen.SetBool(C4dApi.DESC_HIDE, false); } else { bcZehen.SetBool(C4dApi.DESC_HIDE, true); } } else { bcZehen.SetBool(C4dApi.DESC_HIDE, true); } if (!descparams.Desc.SetParameter(cid, bcZehen, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES)))) return true; return false; }
public bool GetDDescription(BaseDocument doc, BaseContainer data, Description description, SWIGTYPE_p_DESCFLAGS_DESC flags) { bool ret = C4dApiPINVOKE.BrushBase_GetDDescription(swigCPtr, BaseDocument.getCPtr(doc), BaseContainer.getCPtr(data), Description.getCPtr(description), SWIGTYPE_p_DESCFLAGS_DESC.getCPtr(flags)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }