public new vtkMedicalImageProperties NewInstance() { vtkMedicalImageProperties result = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkMedicalImageProperties.vtkMedicalImageProperties_NewInstance_75(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; result = (vtkMedicalImageProperties)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); } return(result); }
public static int Main(string[] args) { string filename = args[0]; string outfilename = args[1]; // Step 1. Test SWIG -> Activiz vtkGDCMImageReader reader = vtkGDCMImageReader.New(); reader.SetFileName(filename); //reader.Update(); // DO NOT call Update to check pipeline execution Kitware.VTK.vtkImageData imgout = ConnectSWIGToActiviz(reader.GetOutput()); System.Console.WriteLine(imgout.ToString()); // not initialized as expected vtkPNGWriter writer = new vtkPNGWriter(); writer.SetInput(imgout); writer.SetFileName(outfilename); writer.Write(); // Step 2. Test Activiz -> SWIG vtkPNGReader bmpreader = new vtkPNGReader(); bmpreader.SetFileName(outfilename); //bmpreader.Update(); // DO NOT update to check pipeline execution System.Console.WriteLine(bmpreader.GetOutput().ToString()); // not initialized as expected vtkgdcm.vtkImageData imgout2 = ConnectActivizToSWIG(bmpreader.GetOutput()); System.Console.WriteLine(imgout2.ToString()); // not initialized as expected Kitware.VTK.vtkMedicalImageProperties prop = new Kitware.VTK.vtkMedicalImageProperties(); prop.SetModality("MR"); string outfilename2 = args[2]; vtkGDCMImageWriter writer2 = vtkGDCMImageWriter.New(); writer2.SetMedicalImageProperties(prop.CastToActiviz()); writer2.SetFileName(outfilename2); writer2.SetInput(imgout2); writer2.Write(); return(0); }
public new static vtkMedicalImageProperties SafeDownCast(vtkObjectBase o) { vtkMedicalImageProperties vtkMedicalImageProperties = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkMedicalImageProperties.vtkMedicalImageProperties_SafeDownCast_79((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkMedicalImageProperties = (vtkMedicalImageProperties)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkMedicalImageProperties.Register(null); } } return(vtkMedicalImageProperties); }
public virtual vtkMedicalImageProperties GetMedicalImageProperties() { vtkMedicalImageProperties vtkMedicalImageProperties = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkMedicalImageReader2.vtkMedicalImageReader2_GetMedicalImageProperties_03(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkMedicalImageProperties = (vtkMedicalImageProperties)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkMedicalImageProperties.Register(null); } } return(vtkMedicalImageProperties); }
public static int Main(string[] args) { string filename = args[0]; string outfilename = args[1]; // Step 1. Test SWIG -> Activiz vtkGDCMImageReader reader = vtkGDCMImageReader.New(); reader.SetFileName( filename ); //reader.Update(); // DO NOT call Update to check pipeline execution Kitware.VTK.vtkImageData imgout = ConnectSWIGToActiviz(reader.GetOutput()); System.Console.WriteLine( imgout.ToString() ); // not initialized as expected vtkPNGWriter writer = new vtkPNGWriter(); writer.SetInput( imgout ); writer.SetFileName( outfilename ); writer.Write(); // Step 2. Test Activiz -> SWIG vtkPNGReader bmpreader = new vtkPNGReader(); bmpreader.SetFileName( outfilename ); //bmpreader.Update(); // DO NOT update to check pipeline execution System.Console.WriteLine( bmpreader.GetOutput().ToString() ); // not initialized as expected vtkgdcm.vtkImageData imgout2 = ConnectActivizToSWIG(bmpreader.GetOutput()); System.Console.WriteLine( imgout2.ToString() ); // not initialized as expected Kitware.VTK.vtkMedicalImageProperties prop = new Kitware.VTK.vtkMedicalImageProperties(); prop.SetModality( "MR" ); string outfilename2 = args[2]; vtkGDCMImageWriter writer2 = vtkGDCMImageWriter.New(); writer2.SetMedicalImageProperties( prop.CastToActiviz() ); writer2.SetFileName( outfilename2 ); writer2.SetInput( imgout2 ); writer2.Write(); return 0; }
public virtual void DeepCopy(vtkMedicalImageProperties p) { vtkMedicalImageProperties.vtkMedicalImageProperties_DeepCopy_04(base.GetCppThis(), (p == null) ? default(HandleRef) : p.GetCppThis()); }