Exemplo n.º 1
0
 internal LinearConstrainer(LinearConstrainer handle) : this(Interop.LinearConstrainer.new_LinearConstrainer__SWIG_1(LinearConstrainer.getCPtr(handle)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
        public void LinearConstrainerDownCast()
        {
            tlog.Debug(tag, $"LinearConstrainerDownCast START");

            using (Builder builder = new Builder())
            {
                builder.LoadFromFile(path);
                var testingTarget = builder.GetLinearConstrainer("Camera_003_render");
                Assert.IsNotNull(testingTarget, "should be not null");
                Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!");

                try
                {
                    LinearConstrainer.DownCast(testingTarget);
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception : Failed!");
                }

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"LinearConstrainerDownCast END (OK)");
        }
Exemplo n.º 3
0
        public void LinearConstrainerProgress()
        {
            tlog.Debug(tag, $"LinearConstrainerProgress START");

            var testingTarget = new LinearConstrainer();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!");

            try
            {
                using (PropertyArray arr = new PropertyArray())
                {
                    arr.PushBack(new PropertyValue(0.3f));

                    testingTarget.Progress = arr;
                    tlog.Debug(tag, "Progress : " + testingTarget.Progress);
                }
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"LinearConstrainerProgress END (OK)");
        }
Exemplo n.º 4
0
        public void LinearConstrainerRemove()
        {
            tlog.Debug(tag, $"LinearConstrainerRemove START");

            var testingTarget = new LinearConstrainer();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!");

            try
            {
                using (Animatable ani = new Animatable())
                {
                    testingTarget.Remove(ani);
                }
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"LinearConstrainerRemove END (OK)");
        }
Exemplo n.º 5
0
        internal LinearConstrainer Assign(LinearConstrainer rhs)
        {
            LinearConstrainer ret = new LinearConstrainer(Interop.LinearConstrainer.LinearConstrainer_Assign(swigCPtr, LinearConstrainer.getCPtr(rhs)), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 6
0
        internal static LinearConstrainer DownCast(BaseHandle handle)
        {
            LinearConstrainer ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as LinearConstrainer;

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 7
0
        public void LinearConstrainerConstructor()
        {
            tlog.Debug(tag, $"LinearConstrainerConstructor START");

            var testingTarget = new LinearConstrainer();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"LinearConstrainerConstructor END (OK)");
        }
Exemplo n.º 8
0
        public void LinearConstrainerConstructorWithLinearConstrainer()
        {
            tlog.Debug(tag, $"LinearConstrainerConstructorWithLinearConstrainer START");

            using (LinearConstrainer constrainer = new LinearConstrainer())
            {
                var testingTarget = new LinearConstrainer(constrainer);
                Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!");

                testingTarget?.Dispose();
            }

            tlog.Debug(tag, $"LinearConstrainerConstructorWithLinearConstrainer END (OK)");
        }
Exemplo n.º 9
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LinearConstrainer obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }