Exemplo n.º 1
0
        public static vtkActor ReadPLY(string filename)
        {
            using (var reader = new Kitware.VTK.vtkPLYReader())
                using (var mapper = new Kitware.VTK.vtkCompositePolyDataMapper())
                {
                    var actor = new Kitware.VTK.vtkActor();

                    reader.SetFileName(filename);
                    mapper.SetInputConnection(reader.GetOutputPort());
                    actor.SetMapper(mapper);
                    return(actor);
                }
        }
Exemplo n.º 2
0
        public new static vtkCompositePolyDataMapper New()
        {
            vtkCompositePolyDataMapper result = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkCompositePolyDataMapper.vtkCompositePolyDataMapper_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkCompositePolyDataMapper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Exemplo n.º 3
0
        public new static vtkCompositePolyDataMapper SafeDownCast(vtkObjectBase o)
        {
            vtkCompositePolyDataMapper vtkCompositePolyDataMapper = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkCompositePolyDataMapper.vtkCompositePolyDataMapper_SafeDownCast_09((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkCompositePolyDataMapper = (vtkCompositePolyDataMapper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkCompositePolyDataMapper.Register(null);
                }
            }
            return(vtkCompositePolyDataMapper);
        }