Example #1
0
        public GeData GetIndexData(int index)
        {
            global::System.IntPtr cPtr = C4dApiPINVOKE.BaseContainer_GetIndexData(swigCPtr, index);
            GeData ret = (cPtr == global::System.IntPtr.Zero) ? null : new GeData(cPtr, false);

            return(ret);
        }
Example #2
0
        public void NoProfileDefintionTest()
        {
            var data = new GeData();

            data.Settings = data.GetDefaultSettings();
            data.SetFileGroup("GeneratorDefinitionModel");
        }
Example #3
0
 public GeData(GeData n) : this(C4dApiPINVOKE.new_GeData__SWIG_2(GeData.getCPtr(n)), true)
 {
     if (C4dApiPINVOKE.SWIGPendingException.Pending)
     {
         throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public void SetUp()
 {
     Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory);
     GenDataLoader.Register();
     Data          = new GeData();
     Data.Settings = Data.GetDefaultSettings();
 }
Example #5
0
 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();
     }
 }
Example #6
0
 public void SetGeData(CCurve seq, GeData d)
 {
     C4dApiPINVOKE.CKey_SetGeData(swigCPtr, CCurve.getCPtr(seq), GeData.getCPtr(d));
     if (C4dApiPINVOKE.SWIGPendingException.Pending)
     {
         throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
 public void SetDrawParam(int id, GeData data)
 {
     C4dApiPINVOKE.BaseDraw_SetDrawParam(swigCPtr, id, GeData.getCPtr(data));
     if (C4dApiPINVOKE.SWIGPendingException.Pending)
     {
         throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void CheckData(BaseContainer bc, GeData data)
 {
     C4dApiPINVOKE.CustomDataTypeClass_CheckData(swigCPtr, BaseContainer.getCPtr(bc), GeData.getCPtr(data));
     if (C4dApiPINVOKE.SWIGPendingException.Pending)
     {
         throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #9
0
        protected static void VerifyProfile(GeData geData, string newProfileText, string expectedProfileText)
        {
            Assert.AreEqual(newProfileText, geData.Profile.GetNodeExpansionText(geData.GenDataBase, null));
            var nodeProfileText = geData.Profile.GetNodeProfileText();

            Assert.AreEqual(expectedProfileText, nodeProfileText);
            Assert.AreSame(nodeProfileText, geData.Profile.ProfileText);
        }
Example #10
0
 public void TearDown()
 {
     Data = null;
     if (File.Exists("Settings.dcb"))
     {
         File.Delete("Settings.dcb");
     }
 }
Example #11
0
        protected static void VerifyFragmentsAtPosition(GeData geData, int position, Fragment expectedBefore,
                                                        Fragment expectedAfter)
        {
            Fragment before, after;

            geData.Profile.GetFragmentsAt(out before, out after, position);
            Assert.AreSame(expectedBefore, before, "Before position " + position);
            Assert.AreSame(expectedAfter, after, "After position " + position);
        }
Example #12
0
        private static GeData SetUpGeData(string fileGroup)
        {
            var geData   = GeData.GetDefaultGeData(true);
            var settings = PopulateGenSettings();

            geData.Settings = new GeSettings(settings);
            geData.SetFileGroup(fileGroup);
            return(geData);
        }
Example #13
0
        public void DesignTimeSettingsTest()
        {
            Data.GetDesignTimeSettings();
            var data = new GeData();

            data.Settings = data.GetDesignTimeSettings();
            Assert.AreEqual(1, data.Settings.GetFileGroups().Count);
            Assert.AreEqual(1, data.Settings.GetBaseFiles().Count);
        }
Example #14
0
        public bool SetParameter(DescID id, GeData t_data)
        {
            bool ret = C4dApiPINVOKE.BaseContainer_SetParameter(swigCPtr, DescID.getCPtr(id), GeData.getCPtr(t_data));

            if (C4dApiPINVOKE.SWIGPendingException.Pending)
            {
                throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #15
0
        public bool WriteGeData(GeData v)
        {
            bool ret = C4dApiPINVOKE.HyperFile_WriteGeData(swigCPtr, GeData.getCPtr(v));

            if (C4dApiPINVOKE.SWIGPendingException.Pending)
            {
                throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual GvError ConvertToGeData(int dst_type, CustomDataType src, GeData dst)
        {
            GvError ret = (GvError)C4dApiPINVOKE.CustomDataTypeClass_ConvertToGeData(swigCPtr, dst_type, CustomDataType.getCPtr(src), GeData.getCPtr(dst));

            if (C4dApiPINVOKE.SWIGPendingException.Pending)
            {
                throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #17
0
        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);
        }
Example #18
0
        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);
        }
Example #19
0
        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);
        }
Example #20
0
        public bool SetData(int id, GeData data)
        {
            bool ret = C4dApiPINVOKE.BaseBitmap_SetData(swigCPtr, id, GeData.getCPtr(data));

            if (C4dApiPINVOKE.SWIGPendingException.Pending)
            {
                throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual bool ConvertGvToGeData(SWIGTYPE_p_void src, int cpu_id, GeData dst)
        {
            bool ret = C4dApiPINVOKE.CustomDataTypeClass_ConvertGvToGeData(swigCPtr, SWIGTYPE_p_void.getCPtr(src), cpu_id, GeData.getCPtr(dst));

            if (C4dApiPINVOKE.SWIGPendingException.Pending)
            {
                throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual bool InterpolateKeys(GeData res, GeData t_data1, GeData t_data2, double mix, int flags)
        {
            bool ret = C4dApiPINVOKE.CustomDataTypeClass_InterpolateKeys(swigCPtr, GeData.getCPtr(res), GeData.getCPtr(t_data1), GeData.getCPtr(t_data2), mix, flags);

            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(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);
        }
Example #25
0
        public GeData GetData(int id, GeData t_default)
        {
            GeData ret = new GeData(C4dApiPINVOKE.BaseBitmap_GetData(swigCPtr, id, GeData.getCPtr(t_default)), true);

            if (C4dApiPINVOKE.SWIGPendingException.Pending)
            {
                throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #26
0
        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);
        }
Example #27
0
        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);
        }
Example #28
0
        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);
        }
Example #29
0
        public bool SetParameter(MPBTYPE id, GeData par)
        {
            bool ret = C4dApiPINVOKE.MultipassBitmap_SetParameter(swigCPtr, (int)id, GeData.getCPtr(par));

            if (C4dApiPINVOKE.SWIGPendingException.Pending)
            {
                throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #30
0
        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);
        }