Beispiel #1
0
        public new static vtkKMeansDistanceFunctor New()
        {
            vtkKMeansDistanceFunctor result = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkKMeansDistanceFunctor.vtkKMeansDistanceFunctor_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkKMeansDistanceFunctor)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
        public virtual vtkKMeansDistanceFunctor GetDistanceFunctor()
        {
            vtkKMeansDistanceFunctor vtkKMeansDistanceFunctor = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkKMeansStatistics.vtkKMeansStatistics_GetDistanceFunctor_03(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkKMeansDistanceFunctor = (vtkKMeansDistanceFunctor)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkKMeansDistanceFunctor.Register(null);
                }
            }
            return(vtkKMeansDistanceFunctor);
        }
Beispiel #3
0
        public new static vtkKMeansDistanceFunctor SafeDownCast(vtkObjectBase o)
        {
            vtkKMeansDistanceFunctor vtkKMeansDistanceFunctor = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkKMeansDistanceFunctor.vtkKMeansDistanceFunctor_SafeDownCast_13((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkKMeansDistanceFunctor = (vtkKMeansDistanceFunctor)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkKMeansDistanceFunctor.Register(null);
                }
            }
            return(vtkKMeansDistanceFunctor);
        }
 public virtual void SetDistanceFunctor(vtkKMeansDistanceFunctor arg0)
 {
     vtkKMeansStatistics.vtkKMeansStatistics_SetDistanceFunctor_13(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis());
 }