Beispiel #1
0
        private bool getWeightBtn()
        {
            DescID cid = new DescID(new DescLevel(SKELETT_WICHTUNG_BTN, C4dApi.DTYPE_BUTTON, 0));
            BaseContainer bcButton = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_BUTTON);

            //Erstellt einen GUI (Button)
            bcButton.SetLong(C4dApi.DESC_CUSTOMGUI, C4dApi.DTYPE_BUTTON);

            //Erstellt das Label für den Button
            bcButton.SetString(C4dApi.DESC_NAME, "Wichtung setzen");
            if (!descparams.Desc.SetParameter(cid, bcButton, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
                return true;
            return false;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 public void GetDescEntry(SWIGTYPE_p_DescEntry de, SWIGTYPE_p_p_BaseContainer bc, DescID descid) {
   C4dApiPINVOKE.Description_GetDescEntry(swigCPtr, SWIGTYPE_p_DescEntry.getCPtr(de), SWIGTYPE_p_p_BaseContainer.getCPtr(bc), DescID.getCPtr(descid));
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #4
0
        private bool generate()
        {
            // Diese Abfrage lädt die den Reiter Objekt
            if (!descparams.Desc.LoadDescription("obase"))
                return false;

            //Erstellen der ComboBox zur auswahl des Skelettes
            if (this.getComboBoxCharakter() == true)
            {
                return false;
            }

            //Erstellen der Trennlinie
            if (this.getSeperator() == true)
            {
                return false;
            }

            BaseContainer dataKoerper = GetDataInstance(node); //Speichert alle elemente von der Liste in den Container
            if (dataKoerper.GetLong(SKELETT_TYPE) != 3)//Ist die ID 3 so wurde ein 4 Beiner ausgewählt, da diese keine Arme haben wird der Komplette Block für die Arme im Intrface ausgeblendet
            {
                if (this.getTorso() == true)
                {
                    return false;
                }
            }
            //Abfragen ob ein Oberkörper erstellt werden soll

            //DescID singleid = descparams.Desc.GetSingleDescID();
            //data = ((BaseList2D)node).GetDataInstance();

            // Arme erstellen
            if (this.getArms(dataKoerper) == true)
            {
                return false;
            }

            // Hände erstellen
            if (this.getHands(dataKoerper) == true)
            {
                return false;
            }

            // Finger erstellen
            if (this.getFingers(dataKoerper) == true)
            {
                return false;
            }

            if (this.getSeperatorTorso() == true)
            {
                return false;
            }

            if (this.getLegs(dataKoerper) == true)
            {
                return false;
            }

            if (this.getFeets(dataKoerper) == true)
            {
                return false;
            }

            if (this.getToes(dataKoerper) == true)
            {
                return false;
            }

            if (this.getSeperatorFeetSpine() == true)
            {
                return false;
            }

            if (this.getSpineLink() == true)
            {
                return false;
            }

            if (this.getNeckLink() == true)
            {
                return false;
            }

            if (this.getSeperatorSpineTail() == true)
            {
                return false;
            }

            if (this.getTail() == true)
            {
                return false;
            }

            if (this.getSeperatorTailSelector() == true)
            {
                return false;
            }


            //Objektauswahlfeld erstellen
            DescID cid = new DescID(new DescLevel(SKELETT_OBJ_AUSWAHL, C4dApi.DTYPE_BASELISTLINK, 0));
            BaseDocument doc = C4dApi.GetActiveDocument(); // alle vorhandenen Objekte im Dokument in die Variable doc Speicerhn          
            BaseContainer objSel = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_BASELISTLINK); // Basecontainer vom Typ BaseLink da wird Objekte verlinken , referenzieren
            objSel.SetLink(SKELETT_OBJ_AUSWAHL, doc); //SelectFeld erstellen in dem ein Objekct gebunden werden kann, ist nötig damit später knochen dem Modell zugewiesen werden können!
            objSel.SetString(C4dApi.DESC_NAME, "Polygonobjekt Wählen");
            if (!descparams.Desc.SetParameter(cid, objSel, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
                return true;
            //Erstellt eine Schaltfläsche
            cid = new DescID(new DescLevel(SKELETT_BTN_CREATE, C4dApi.DTYPE_BUTTON, 0));
            BaseContainer bcButton = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_BUTTON);

            //Erstellt einen GUI (Button)
            bcButton.SetLong(C4dApi.DESC_CUSTOMGUI, C4dApi.DTYPE_BUTTON);

            //Erstellt das Label für den Button
            bcButton.SetString(C4dApi.DESC_NAME, "Erstellen");
            if (!descparams.Desc.SetParameter(cid, bcButton, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
                return false;

            if (this.getWeightBtn() == true)
            {
                return false;
            }

            descparams.Flags |= DESCFLAGS_DESC.DESCFLAGS_DESC_LOADED;

            return true;
        }
Beispiel #5
0
        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.SetLong(C4dApi.DESC_MIN, 0);
            //Definiert den maximalen Wert
            bcHalsWirbel.SetLong(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;
        }
Beispiel #6
0
        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;
        }
Beispiel #7
0
        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;
        }
Beispiel #8
0
        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 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;
 }
Beispiel #10
0
 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;
 }
Beispiel #11
0
 public BaseContainer GetParameterI(DescID id, AtomArray ar) {
   IntPtr cPtr = C4dApiPINVOKE.Description_GetParameterI(swigCPtr, DescID.getCPtr(id), AtomArray.getCPtr(ar));
   BaseContainer ret = (cPtr == IntPtr.Zero) ? null : new BaseContainer(cPtr, false);
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #12
0
 public void SetSingleDescriptionMode(DescID descid) {
   C4dApiPINVOKE.Description_SetSingleDescriptionMode(swigCPtr, DescID.getCPtr(descid));
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #13
0
 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;
 }
Beispiel #14
0
 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;
 }
Beispiel #15
0
 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;
 }
Beispiel #16
0
 public bool BrowseGetNext(SWIGTYPE_p_void handle, DescID id, SWIGTYPE_p_p_BaseContainer data) {
   bool ret = C4dApiPINVOKE.DynamicDescription_BrowseGetNext(swigCPtr, SWIGTYPE_p_void.getCPtr(handle), DescID.getCPtr(id), SWIGTYPE_p_p_BaseContainer.getCPtr(data));
   return ret;
 }
Beispiel #17
0
        private bool getTorso()
        {
            DescID cid = new DescID(new DescLevel(SKELETT_OBERKOERPER_BOX, C4dApi.DTYPE_BOOL, 0));

            BaseContainer bcOberKoerper = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_BOOL);
            bcOberKoerper.SetString(C4dApi.DESC_NAME, "Arme Aktivieren");
            bcOberKoerper.SetBool(C4dApi.DESC_DEFAULT, true);
            bcOberKoerper.SetBool(C4dApi.DESC_HIDE, false);

            // Create the boolean check box under the previously created sub group (CIRCLEOBJECT_SUBGROUP)
            if (!descparams.Desc.SetParameter(cid, bcOberKoerper, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
                return true;

            return false;
        }
Beispiel #18
0
 internal static HandleRef getCPtr(DescID obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #19
0
        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;
        }
Beispiel #20
0
 public DescID(DescID src) : this(C4dApiPINVOKE.new_DescID__SWIG_1(DescID.getCPtr(src)), true) {
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #21
0
        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;
        }
Beispiel #22
0
 public bool IsPartOf(DescID cmp, SWIGTYPE_p_LONG pos) {
   bool ret = C4dApiPINVOKE.DescID_IsPartOf(swigCPtr, DescID.getCPtr(cmp), SWIGTYPE_p_LONG.getCPtr(pos));
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #23
0
        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;
        }
Beispiel #24
0
 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;
 }
Beispiel #25
0
        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.SetLong(C4dApi.DESC_MIN, 0);
            //Definiert den maximalen Wert
            bcSchwanz.SetLong(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;
        }
Beispiel #26
0
 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;
 }
Beispiel #27
0
 public BaseContainer Find(DescID descid) {
   IntPtr cPtr = C4dApiPINVOKE.DynamicDescription_Find(swigCPtr, DescID.getCPtr(descid));
   BaseContainer ret = (cPtr == IntPtr.Zero) ? null : new BaseContainer(cPtr, false);
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #28
0
 public bool Remove(DescID descid) {
   bool ret = C4dApiPINVOKE.DynamicDescription_Remove(swigCPtr, DescID.getCPtr(descid));
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #29
0
        private bool getSeperator()
        {
            DescID cid = new DescID(new DescLevel(SKELETT_TRENNER, C4dApi.DTYPE_SEPARATOR, 0));

            BaseContainer bcTrenner = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_SEPARATOR);
            bcTrenner.SetLong(C4dApi.DESC_CUSTOMGUI, C4dApi.DTYPE_SEPARATOR);
            bcTrenner.SetBool(C4dApi.DESC_SEPARATORLINE, true);
            bcTrenner.SetLong(C4dApi.DESC_ANIMATE, C4dApi.DESC_ANIMATE_OFF);
            bcTrenner.SetBool(C4dApi.DESC_REMOVEABLE, false);
            bcTrenner.SetString(C4dApi.DESC_NAME, "");
            bcTrenner.SetString(C4dApi.DESC_SHORT_NAME, "");

            if (!descparams.Desc.SetParameter(cid, bcTrenner, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
                return true;

            return false;
        }
Beispiel #30
0
 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;
 }