Пример #1
0
        public new vtkMapper NewInstance()
        {
            vtkMapper result      = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkMapper.vtkMapper_NewInstance_44(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkMapper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Пример #2
0
        private void TestAddActorsToRenderWindow(vtkRenderWindow renWin)
        {
            vtkConeSource vtkConeSource = new vtkConeSource();
            vtkMapper     vtkMapper     = vtkPolyDataMapper.New();

            vtkMapper.SetInputConnection(vtkConeSource.GetOutputPort());
            vtkActor vtkActor = new vtkActor();

            vtkActor.SetMapper(vtkMapper);
            vtkRenderer firstRenderer = renWin.GetRenderers().GetFirstRenderer();

            firstRenderer.AddActor(vtkActor);
            vtkTextActor vtkTextActor = new vtkTextActor();

            vtkTextActor.SetInput(vtkVersion.GetVTKSourceVersion());
            firstRenderer.AddActor(vtkTextActor);
        }
Пример #3
0
        public new static vtkMapper SafeDownCast(vtkObjectBase o)
        {
            vtkMapper vtkMapper   = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkMapper.vtkMapper_SafeDownCast_47((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkMapper = (vtkMapper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkMapper.Register(null);
                }
            }
            return(vtkMapper);
        }
        public vtkMapper GetNextItem()
        {
            vtkMapper vtkMapper   = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkMapperCollection.vtkMapperCollection_GetNextItem_03(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkMapper = (vtkMapper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkMapper.Register(null);
                }
            }
            return(vtkMapper);
        }
Пример #5
0
        public virtual vtkMapper GetMapper()
        {
            vtkMapper vtkMapper   = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkMNIObjectWriter.vtkMNIObjectWriter_GetMapper_04(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkMapper = (vtkMapper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkMapper.Register(null);
                }
            }
            return(vtkMapper);
        }
Пример #6
0
 public int AddLOD(vtkMapper m, vtkProperty p, double time)
 {
     return(vtkLODProp3D.vtkLODProp3D_AddLOD_05(base.GetCppThis(), (m == null) ? default(HandleRef) : m.GetCppThis(), (p == null) ? default(HandleRef) : p.GetCppThis(), time));
 }
Пример #7
0
 public int AddLOD(vtkMapper m, vtkProperty p, vtkProperty back, vtkTexture t, double time)
 {
     return(vtkLODProp3D.vtkLODProp3D_AddLOD_02(base.GetCppThis(), (m == null) ? default(HandleRef) : m.GetCppThis(), (p == null) ? default(HandleRef) : p.GetCppThis(), (back == null) ? default(HandleRef) : back.GetCppThis(), (t == null) ? default(HandleRef) : t.GetCppThis(), time));
 }
Пример #8
0
 public void SetLODMapper(int id, vtkMapper m)
 {
     vtkLODProp3D.vtkLODProp3D_SetLODMapper_55(base.GetCppThis(), id, (m == null) ? default(HandleRef) : m.GetCppThis());
 }
Пример #9
0
 public int AddLOD(vtkMapper m, vtkTexture t, double time)
 {
     return(vtkLODProp3D.vtkLODProp3D_AddLOD_06(base.GetCppThis(), (m == null) ? default(HandleRef) : m.GetCppThis(), (t == null) ? default(HandleRef) : t.GetCppThis(), time));
 }
Пример #10
0
 public virtual void SetMapper(vtkMapper mapper)
 {
     vtkMNIObjectWriter.vtkMNIObjectWriter_SetMapper_12(base.GetCppThis(), (mapper == null) ? default(HandleRef) : mapper.GetCppThis());
 }
Пример #11
0
 public override void Render(vtkRenderer arg0, vtkMapper arg1)
 {
     vtkQuadricLODActor.vtkQuadricLODActor_Render_24(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis(), (arg1 == null) ? default(HandleRef) : arg1.GetCppThis());
 }
Пример #12
0
 public void AddLODMapper(vtkMapper mapper)
 {
     vtkLODActor.vtkLODActor_AddLODMapper_01(base.GetCppThis(), (mapper == null) ? default(HandleRef) : mapper.GetCppThis());
 }
Пример #13
0
 public void AddItem(vtkMapper a)
 {
     vtkMapperCollection.vtkMapperCollection_AddItem_01(base.GetCppThis(), (a == null) ? default(HandleRef) : a.GetCppThis());
 }
Пример #14
0
 public virtual void SetMapper(vtkMapper arg0)
 {
     vtkActor.vtkActor_SetMapper_24(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis());
 }
Пример #15
0
 public virtual void Render(vtkRenderer arg0, vtkMapper arg1)
 {
     vtkActor.vtkActor_Render_19(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis(), (arg1 == null) ? default(HandleRef) : arg1.GetCppThis());
 }
Пример #16
0
 public override void Render(vtkRenderer ren, vtkMapper mapper)
 {
     vtkOpenGLActor.vtkOpenGLActor_Render_05(base.GetCppThis(), (ren == null) ? default(HandleRef) : ren.GetCppThis(), (mapper == null) ? default(HandleRef) : mapper.GetCppThis());
 }