I am attaching one of the problematic file: vtkGDCMImageReader.cs
//----------------------------------------------------------------------------
//
// This file was machine generated by:
// mummy version 1.0.2 (revision 599)
//
// Manual changes to this file may be overwritten by the next build.
//
//----------------------------------------------------------------------------
using System;
using System.Runtime.InteropServices; // DllImport and HandleRef both live here
namespace Kitware.VTK
{
/// <summary>
/// vtkGDCMImageReader - read DICOM Image files (Pixel Data)
/// </summary>
/// <remarks>
/// Description
/// vtkGDCMImageReader is a source object that reads some DICOM files
/// this reader is single threaded.
/// Implementation note: when FileLowerLeft is set to on the image is not flipped
/// upside down as VTK would expect, use this option only if you know what you are doing.
/// Implementation note: when reading a series of 2D slices, user is
/// expected to provide an ordered list of filenames. No sorting will be applied afterward.
/// Implementation note: Although 99% of the time the Zspacing as read
/// from a tag in a 2D DICOM file should be correct, there has been reports that this
/// value can be missing, or incorrect, in which case users are advised to override this
/// value using the return value from gdcm::IPPSorter::GetZSpacing() and set it via
/// vtkImageChangeInformation on the reader itself.
/// TODO
/// This reader does not handle a series of 3D images, only a single 3D (multi frame) or a
/// list of 2D files are supported for now.
/// TODO
/// Did not implement SetFilePattern / SetFilePrefix API, move it to protected section for now.
/// BUG
/// Overlay are assumed to have the same extent as image. Right now if overlay origin is not
/// 0,0 the overlay will have an offset...
/// Only the very first overlay is loaded at the VTK level, for now (even if there are more than one in the file)
/// DataOrigin
/// When the reader is instanciated with FileLowerLeftOn the DataOrigin and Image Position (Patient) are
/// identical. But when FileLowerLeft is Off, we have to reorder the Y-line of the image, and thus the DataOrigin
/// is then translated to the other side of the image.
/// Spacing
/// When reading a 3D volume, the spacing along the Z dimension might be negative (so as to respect up-side-down)
/// as specified in the Image Orientation (Patient) tag. When Z-spacing is 0, this means the multi-frame object
/// contains image which do not represent uniform volume.
/// Warning
/// When using vtkGDCMPolyDataReader in conjonction with vtkGDCMImageReader
/// it is *required* that FileLowerLeft is set to ON as coordinate system
/// would be inconsistant in between the two data structures.
/// Color Space mapping:
/// * VTK_LUMINANCE <-> MONOCHROME2
/// * VTK_LUMINANCE_ALPHA <-> Not supported
/// * VTK_RGB <-> RGB
/// * VTK_RGBA <-> ARGB (deprecated, DICOM 2008)
/// * VTK_INVERSE_LUMINANCE <-> MONOCHROME1
/// * VTK_LOOKUP_TABLE <-> PALETTE COLOR
/// * VTK_YBR <-> YBR_FULL
///
/// For detailed information on color space transformation and true lossless transformation see:
/// http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=Color_Space_Transformations
/// </remarks>
public class vtkGDCMImageReader : vtkMedicalImageReader2
{
/// <summary>
/// Automatically generated type registration mechanics.
/// </summary>
public new static readonly string MRClassNameKey = "18vtkGDCMImageReader";
/// <summary>
/// Automatically generated type registration mechanics.
/// </summary>
public new const string MRFullTypeName = "Kitware.VTK.vtkGDCMImageReader";
/// <summary>
/// Automatically generated type registration mechanics.
/// </summary>
static vtkGDCMImageReader()
{
Kitware.mummy.Runtime.Methods.RegisterType(
System.Reflection.Assembly.GetExecutingAssembly(),
MRClassNameKey,
System.Type.GetType(MRFullTypeName)
);
}
/// <summary>
/// Automatically generated constructor - called from generated code.
/// DO NOT call directly.
/// </summary>
public vtkGDCMImageReader(IntPtr rawCppThis, bool callDisposalMethod, bool strong) :
base(rawCppThis, callDisposalMethod, strong)
{
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_New")]
internal static extern IntPtr vtkGDCMImageReader_New(ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
///Undocumented Block
/// </summary>
public new static vtkGDCMImageReader New()
{
vtkGDCMImageReader rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_New(ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkGDCMImageReader)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
// Returned object is counted already, (factory method or iwhCounted hint),
// no 'rv.Register(null)' call is necessary...
}
return rv;
}
/// <summary>
///Undocumented Block
/// </summary>
public vtkGDCMImageReader()
: base(IntPtr.Zero, false, false)
{
// mummy generated default C# constructor
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rawCppThis = vtkGDCMImageReader_New(ref mteStatus, ref mteIndex, ref rawRefCount);
this.SetCppThis(rawCppThis, true, (0==mteStatus || rawRefCount<2 ? false : true));
}
/// <summary>
/// Automatically generated protected Dispose method - called from
/// public Dispose or the C# destructor. DO NOT call directly.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_ApplyLookupTableOff_01")]
internal static extern void vtkGDCMImageReader_ApplyLookupTableOff_01(HandleRef pThis);
/// <summary>
/// Load image with its associated Lookup Table
/// </summary>
public virtual void ApplyLookupTableOff()
{
vtkGDCMImageReader_ApplyLookupTableOff_01(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_ApplyLookupTableOn_02")]
internal static extern void vtkGDCMImageReader_ApplyLookupTableOn_02(HandleRef pThis);
/// <summary>
/// Load image with its associated Lookup Table
/// </summary>
public virtual void ApplyLookupTableOn()
{
vtkGDCMImageReader_ApplyLookupTableOn_02(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_ApplyYBRToRGBOff_03")]
internal static extern void vtkGDCMImageReader_ApplyYBRToRGBOff_03(HandleRef pThis);
/// <summary>
/// Load image as YBR
/// </summary>
public virtual void ApplyYBRToRGBOff()
{
vtkGDCMImageReader_ApplyYBRToRGBOff_03(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_ApplyYBRToRGBOn_04")]
internal static extern void vtkGDCMImageReader_ApplyYBRToRGBOn_04(HandleRef pThis);
/// <summary>
/// Load image as YBR
/// </summary>
public virtual void ApplyYBRToRGBOn()
{
vtkGDCMImageReader_ApplyYBRToRGBOn_04(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_CanReadFile_05")]
internal static extern int vtkGDCMImageReader_CanReadFile_05(HandleRef pThis, string fname);
public override int CanReadFile(string fname)
{
int rv = vtkGDCMImageReader_CanReadFile_05(this.GetCppThis(), fname);
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetApplyLookupTable_06")]
internal static extern int vtkGDCMImageReader_GetApplyLookupTable_06(HandleRef pThis);
/// <summary>
/// Load image with its associated Lookup Table
/// </summary>
public virtual int GetApplyLookupTable()
{
int rv = vtkGDCMImageReader_GetApplyLookupTable_06(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetApplyYBRToRGB_07")]
internal static extern int vtkGDCMImageReader_GetApplyYBRToRGB_07(HandleRef pThis);
/// <summary>
/// Load image as YBR
/// </summary>
public virtual int GetApplyYBRToRGB()
{
int rv = vtkGDCMImageReader_GetApplyYBRToRGB_07(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetCurve_08")]
internal static extern IntPtr vtkGDCMImageReader_GetCurve_08(HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
/// Set/Get the first Curve Data:
/// </summary>
public virtual vtkPolyData GetCurve()
{
vtkPolyData rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_GetCurve_08(this.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkPolyData)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
if (mteCreated)
{
rv.Register(null);
}
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetDescriptiveName_09")]
internal static extern IntPtr vtkGDCMImageReader_GetDescriptiveName_09(HandleRef pThis);
/// <summary>
/// A descriptive name for this format
/// </summary>
public override string GetDescriptiveName()
{
string rv = Marshal.PtrToStringAnsi(vtkGDCMImageReader_GetDescriptiveName_09(this.GetCppThis()));
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetDirectionCosines_10")]
internal static extern IntPtr vtkGDCMImageReader_GetDirectionCosines_10(HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
/// Get the Image Position (Patient) as stored in the DICOM file
/// This is a read-only data member
/// </summary>
public virtual vtkMatrix4x4 GetDirectionCosines()
{
vtkMatrix4x4 rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_GetDirectionCosines_10(this.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkMatrix4x4)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
if (mteCreated)
{
rv.Register(null);
}
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetFileExtensions_11")]
internal static extern IntPtr vtkGDCMImageReader_GetFileExtensions_11(HandleRef pThis);
/// <summary>
/// Valid extensions
/// </summary>
public override string GetFileExtensions()
{
string rv = Marshal.PtrToStringAnsi(vtkGDCMImageReader_GetFileExtensions_11(this.GetCppThis()));
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetIconImage_12")]
internal static extern IntPtr vtkGDCMImageReader_GetIconImage_12(HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
///FIXME: Need to get rid of BTX/ETX if only the Python Wrapper of VTK 4.2 would let me
/// </summary>
public vtkImageData GetIconImage()
{
vtkImageData rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_GetIconImage_12(this.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkImageData)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
if (mteCreated)
{
rv.Register(null);
}
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetIconImagePort_13")]
internal static extern IntPtr vtkGDCMImageReader_GetIconImagePort_13(HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
///FIXME: Need to get rid of BTX/ETX if only the Python Wrapper of VTK 4.2 would let me
/// </summary>
public vtkAlgorithmOutput GetIconImagePort()
{
vtkAlgorithmOutput rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_GetIconImagePort_13(this.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkAlgorithmOutput)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
if (mteCreated)
{
rv.Register(null);
}
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetImageFormat_14")]
internal static extern int vtkGDCMImageReader_GetImageFormat_14(HandleRef pThis);
/// <summary>
/// Return VTK_LUMINANCE, VTK_INVERSE_LUMINANCE, VTK_RGB, VTK_RGBA, VTK_LOOKUP_TABLE, VTK_YBR or VTK_CMYK
/// or 0 when ImageFormat is not handled.
/// Warning: For color image, PlanarConfiguration need to be taken into account.
/// </summary>
public virtual int GetImageFormat()
{
int rv = vtkGDCMImageReader_GetImageFormat_14(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetImageOrientationPatient_15")]
internal static extern IntPtr vtkGDCMImageReader_GetImageOrientationPatient_15(HandleRef pThis);
/// <summary>
/// Return the 'raw' information stored in the DICOM file:
/// In case of a series of multiple files, only the first file is considered. The Image Orientation (Patient)
/// is garantee to remain the same, and image Image Position (Patient) in other slice can be computed
/// using the ZSpacing (3rd dimension)
/// (0020,0032) DS [87.774866\-182.908510\168.629671] # 32, 3 ImagePositionPatient
/// (0020,0037) DS [0.001479\0.999989\-0.004376\-0.002039\-0.004372\-0.999988] # 58, 6 ImageOrientationPatient
/// </summary>
public virtual double[] GetImageOrientationPatient()
{
IntPtr rvp = vtkGDCMImageReader_GetImageOrientationPatient_15(this.GetCppThis());
double[] rv = null;
if (IntPtr.Zero != rvp)
{
rv = new double[6];
Marshal.Copy(rvp, rv, 0, rv.Length);
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetImageOrientationPatient_16")]
internal static extern void vtkGDCMImageReader_GetImageOrientationPatient_16(HandleRef pThis, ref double _arg1, ref double _arg2, ref double _arg3, ref double _arg4, ref double _arg5, ref double _arg6);
/// <summary>
/// Return the 'raw' information stored in the DICOM file:
/// In case of a series of multiple files, only the first file is considered. The Image Orientation (Patient)
/// is garantee to remain the same, and image Image Position (Patient) in other slice can be computed
/// using the ZSpacing (3rd dimension)
/// (0020,0032) DS [87.774866\-182.908510\168.629671] # 32, 3 ImagePositionPatient
/// (0020,0037) DS [0.001479\0.999989\-0.004376\-0.002039\-0.004372\-0.999988] # 58, 6 ImageOrientationPatient
/// </summary>
public virtual void GetImageOrientationPatient(ref double _arg1, ref double _arg2, ref double _arg3, ref double _arg4, ref double _arg5, ref double _arg6)
{
vtkGDCMImageReader_GetImageOrientationPatient_16(this.GetCppThis(), ref _arg1, ref _arg2, ref _arg3, ref _arg4, ref _arg5, ref _arg6);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetImageOrientationPatient_17")]
internal static extern void vtkGDCMImageReader_GetImageOrientationPatient_17(HandleRef pThis, IntPtr _arg);
/// <summary>
/// Return the 'raw' information stored in the DICOM file:
/// In case of a series of multiple files, only the first file is considered. The Image Orientation (Patient)
/// is garantee to remain the same, and image Image Position (Patient) in other slice can be computed
/// using the ZSpacing (3rd dimension)
/// (0020,0032) DS [87.774866\-182.908510\168.629671] # 32, 3 ImagePositionPatient
/// (0020,0037) DS [0.001479\0.999989\-0.004376\-0.002039\-0.004372\-0.999988] # 58, 6 ImageOrientationPatient
/// </summary>
public virtual void GetImageOrientationPatient(IntPtr _arg)
{
vtkGDCMImageReader_GetImageOrientationPatient_17(this.GetCppThis(), _arg);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetImagePositionPatient_18")]
internal static extern IntPtr vtkGDCMImageReader_GetImagePositionPatient_18(HandleRef pThis);
/// <summary>
/// Return the 'raw' information stored in the DICOM file:
/// In case of a series of multiple files, only the first file is considered. The Image Orientation (Patient)
/// is garantee to remain the same, and image Image Position (Patient) in other slice can be computed
/// using the ZSpacing (3rd dimension)
/// (0020,0032) DS [87.774866\-182.908510\168.629671] # 32, 3 ImagePositionPatient
/// (0020,0037) DS [0.001479\0.999989\-0.004376\-0.002039\-0.004372\-0.999988] # 58, 6 ImageOrientationPatient
/// </summary>
public virtual double[] GetImagePositionPatient()
{
IntPtr rvp = vtkGDCMImageReader_GetImagePositionPatient_18(this.GetCppThis());
double[] rv = null;
if (IntPtr.Zero != rvp)
{
rv = new double[3];
Marshal.Copy(rvp, rv, 0, rv.Length);
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetImagePositionPatient_19")]
internal static extern void vtkGDCMImageReader_GetImagePositionPatient_19(HandleRef pThis, ref double _arg1, ref double _arg2, ref double _arg3);
/// <summary>
/// Return the 'raw' information stored in the DICOM file:
/// In case of a series of multiple files, only the first file is considered. The Image Orientation (Patient)
/// is garantee to remain the same, and image Image Position (Patient) in other slice can be computed
/// using the ZSpacing (3rd dimension)
/// (0020,0032) DS [87.774866\-182.908510\168.629671] # 32, 3 ImagePositionPatient
/// (0020,0037) DS [0.001479\0.999989\-0.004376\-0.002039\-0.004372\-0.999988] # 58, 6 ImageOrientationPatient
/// </summary>
public virtual void GetImagePositionPatient(ref double _arg1, ref double _arg2, ref double _arg3)
{
vtkGDCMImageReader_GetImagePositionPatient_19(this.GetCppThis(), ref _arg1, ref _arg2, ref _arg3);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetImagePositionPatient_20")]
internal static extern void vtkGDCMImageReader_GetImagePositionPatient_20(HandleRef pThis, IntPtr _arg);
/// <summary>
/// Return the 'raw' information stored in the DICOM file:
/// In case of a series of multiple files, only the first file is considered. The Image Orientation (Patient)
/// is garantee to remain the same, and image Image Position (Patient) in other slice can be computed
/// using the ZSpacing (3rd dimension)
/// (0020,0032) DS [87.774866\-182.908510\168.629671] # 32, 3 ImagePositionPatient
/// (0020,0037) DS [0.001479\0.999989\-0.004376\-0.002039\-0.004372\-0.999988] # 58, 6 ImageOrientationPatient
/// </summary>
public virtual void GetImagePositionPatient(IntPtr _arg)
{
vtkGDCMImageReader_GetImagePositionPatient_20(this.GetCppThis(), _arg);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetLoadIconImage_21")]
internal static extern int vtkGDCMImageReader_GetLoadIconImage_21(HandleRef pThis);
/// <summary>
/// Set/Get whether or not to load the Icon as vtkImageData (if found in the DICOM file)
/// </summary>
public virtual int GetLoadIconImage()
{
int rv = vtkGDCMImageReader_GetLoadIconImage_21(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetLoadOverlays_22")]
internal static extern int vtkGDCMImageReader_GetLoadOverlays_22(HandleRef pThis);
/// <summary>
/// Specifically request to load the overlay into the gdcm-VTK layer (gdcm always loads them when found).
/// If no overlay is found in the image, then the vtkImageData for the overlay will be empty.
/// </summary>
public virtual int GetLoadOverlays()
{
int rv = vtkGDCMImageReader_GetLoadOverlays_22(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetLossyFlag_23")]
internal static extern int vtkGDCMImageReader_GetLossyFlag_23(HandleRef pThis);
/// <summary>
/// Set/Get whether or not the image was compressed using a lossy compression algorithm
/// </summary>
public virtual int GetLossyFlag()
{
int rv = vtkGDCMImageReader_GetLossyFlag_23(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetNumberOfIconImages_24")]
internal static extern int vtkGDCMImageReader_GetNumberOfIconImages_24(HandleRef pThis);
/// <summary>
/// Read only: number of icon image (there can only be zero or one icon per file)
/// Only valid when LoadIconImage is true
/// </summary>
public virtual int GetNumberOfIconImages()
{
int rv = vtkGDCMImageReader_GetNumberOfIconImages_24(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetNumberOfOverlays_25")]
internal static extern int vtkGDCMImageReader_GetNumberOfOverlays_25(HandleRef pThis);
/// <summary>
/// Read only: number of overlays as found in this image (multiple overlays per slice is allowed)
/// Only valid when LoadOverlays is true
/// </summary>
public virtual int GetNumberOfOverlays()
{
int rv = vtkGDCMImageReader_GetNumberOfOverlays_25(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetOverlay_26")]
internal static extern IntPtr vtkGDCMImageReader_GetOverlay_26(HandleRef pThis, int i, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
///FIXME: Need to get rid of BTX/ETX if only the Python Wrapper of VTK 4.2 would let me
/// </summary>
public vtkImageData GetOverlay(int i)
{
vtkImageData rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_GetOverlay_26(this.GetCppThis(), i, ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkImageData)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
if (mteCreated)
{
rv.Register(null);
}
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetOverlayPort_27")]
internal static extern IntPtr vtkGDCMImageReader_GetOverlayPort_27(HandleRef pThis, int index, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
///FIXME: Need to get rid of BTX/ETX if only the Python Wrapper of VTK 4.2 would let me
/// </summary>
public vtkAlgorithmOutput GetOverlayPort(int index)
{
vtkAlgorithmOutput rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_GetOverlayPort_27(this.GetCppThis(), index, ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkAlgorithmOutput)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
if (mteCreated)
{
rv.Register(null);
}
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetPlanarConfiguration_28")]
internal static extern int vtkGDCMImageReader_GetPlanarConfiguration_28(HandleRef pThis);
/// <summary>
/// Return the Planar Configuration. This simply means that the internal DICOM image was stored
/// using a particular planar configuration (most of the time: 0)
/// For monochrome image, PlanarConfiguration is always 0
/// </summary>
public virtual int GetPlanarConfiguration()
{
int rv = vtkGDCMImageReader_GetPlanarConfiguration_28(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetScale_29")]
internal static extern double vtkGDCMImageReader_GetScale_29(HandleRef pThis);
/// <summary>
/// \DEPRECATED:
/// Modality LUT
/// Value returned by GetShift/GetScale might be innacurate since Shift/Scale could be
/// varying along the Series read. Therefore user are advices not to use those functions
/// anymore
/// </summary>
public virtual double GetScale()
{
double rv = vtkGDCMImageReader_GetScale_29(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_GetShift_30")]
internal static extern double vtkGDCMImageReader_GetShift_30(HandleRef pThis);
/// <summary>
/// \DEPRECATED:
/// Modality LUT
/// Value returned by GetShift/GetScale might be innacurate since Shift/Scale could be
/// varying along the Series read. Therefore user are advices not to use those functions
/// anymore
/// </summary>
public virtual double GetShift()
{
double rv = vtkGDCMImageReader_GetShift_30(this.GetCppThis());
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_IsA_31")]
internal static extern int vtkGDCMImageReader_IsA_31(HandleRef pThis, string type);
/// <summary>
///Undocumented Block
/// </summary>
public override int IsA(string type)
{
int rv = vtkGDCMImageReader_IsA_31(this.GetCppThis(), type);
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_IsTypeOf_32")]
internal static extern int vtkGDCMImageReader_IsTypeOf_32(string type);
/// <summary>
///Undocumented Block
/// </summary>
public new static int IsTypeOf(string type)
{
int rv = vtkGDCMImageReader_IsTypeOf_32(type);
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_LoadIconImageOff_33")]
internal static extern void vtkGDCMImageReader_LoadIconImageOff_33(HandleRef pThis);
/// <summary>
/// Set/Get whether or not to load the Icon as vtkImageData (if found in the DICOM file)
/// </summary>
public virtual void LoadIconImageOff()
{
vtkGDCMImageReader_LoadIconImageOff_33(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_LoadIconImageOn_34")]
internal static extern void vtkGDCMImageReader_LoadIconImageOn_34(HandleRef pThis);
/// <summary>
/// Set/Get whether or not to load the Icon as vtkImageData (if found in the DICOM file)
/// </summary>
public virtual void LoadIconImageOn()
{
vtkGDCMImageReader_LoadIconImageOn_34(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_LoadOverlaysOff_35")]
internal static extern void vtkGDCMImageReader_LoadOverlaysOff_35(HandleRef pThis);
/// <summary>
/// Specifically request to load the overlay into the gdcm-VTK layer (gdcm always loads them when found).
/// If no overlay is found in the image, then the vtkImageData for the overlay will be empty.
/// </summary>
public virtual void LoadOverlaysOff()
{
vtkGDCMImageReader_LoadOverlaysOff_35(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_LoadOverlaysOn_36")]
internal static extern void vtkGDCMImageReader_LoadOverlaysOn_36(HandleRef pThis);
/// <summary>
/// Specifically request to load the overlay into the gdcm-VTK layer (gdcm always loads them when found).
/// If no overlay is found in the image, then the vtkImageData for the overlay will be empty.
/// </summary>
public virtual void LoadOverlaysOn()
{
vtkGDCMImageReader_LoadOverlaysOn_36(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_LossyFlagOff_37")]
internal static extern void vtkGDCMImageReader_LossyFlagOff_37(HandleRef pThis);
/// <summary>
/// Set/Get whether or not the image was compressed using a lossy compression algorithm
/// </summary>
public virtual void LossyFlagOff()
{
vtkGDCMImageReader_LossyFlagOff_37(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_LossyFlagOn_38")]
internal static extern void vtkGDCMImageReader_LossyFlagOn_38(HandleRef pThis);
/// <summary>
/// Set/Get whether or not the image was compressed using a lossy compression algorithm
/// </summary>
public virtual void LossyFlagOn()
{
vtkGDCMImageReader_LossyFlagOn_38(this.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_NewInstance_40")]
internal static extern IntPtr vtkGDCMImageReader_NewInstance_40(HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
///Undocumented Block
/// </summary>
public new vtkGDCMImageReader NewInstance()
{
vtkGDCMImageReader rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_NewInstance_40(this.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkGDCMImageReader)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
// Returned object is counted already, (factory method or iwhCounted hint),
// no 'rv.Register(null)' call is necessary...
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_SafeDownCast_41")]
internal static extern IntPtr vtkGDCMImageReader_SafeDownCast_41(HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount);
/// <summary>
///Undocumented Block
/// </summary>
public new static vtkGDCMImageReader SafeDownCast(vtkObjectBase o)
{
vtkGDCMImageReader rv = null;
uint mteStatus = 0;
uint mteIndex = UInt32.MaxValue;
uint rawRefCount = 0;
IntPtr rvp = vtkGDCMImageReader_SafeDownCast_41(o == null ? new HandleRef() : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);
if (IntPtr.Zero != rvp)
{
bool mteCreated;
rv = (vtkGDCMImageReader)
Kitware.mummy.Runtime.Methods.CreateWrappedObject(
mteStatus, mteIndex, rawRefCount, rvp, true, out mteCreated);
if (mteCreated)
{
rv.Register(null);
}
}
return rv;
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_SetApplyLookupTable_42")]
internal static extern void vtkGDCMImageReader_SetApplyLookupTable_42(HandleRef pThis, int _arg);
/// <summary>
/// Load image with its associated Lookup Table
/// </summary>
public virtual void SetApplyLookupTable(int _arg)
{
vtkGDCMImageReader_SetApplyLookupTable_42(this.GetCppThis(), _arg);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_SetApplyYBRToRGB_43")]
internal static extern void vtkGDCMImageReader_SetApplyYBRToRGB_43(HandleRef pThis, int _arg);
/// <summary>
/// Load image as YBR
/// </summary>
public virtual void SetApplyYBRToRGB(int _arg)
{
vtkGDCMImageReader_SetApplyYBRToRGB_43(this.GetCppThis(), _arg);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_SetCurve_44")]
internal static extern void vtkGDCMImageReader_SetCurve_44(HandleRef pThis, HandleRef pd);
/// <summary>
/// Set/Get the first Curve Data:
/// </summary>
public virtual void SetCurve(vtkPolyData pd)
{
vtkGDCMImageReader_SetCurve_44(this.GetCppThis(), pd == null ? new HandleRef() : pd.GetCppThis());
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_SetLoadIconImage_45")]
internal static extern void vtkGDCMImageReader_SetLoadIconImage_45(HandleRef pThis, int _arg);
/// <summary>
/// Set/Get whether or not to load the Icon as vtkImageData (if found in the DICOM file)
/// </summary>
public virtual void SetLoadIconImage(int _arg)
{
vtkGDCMImageReader_SetLoadIconImage_45(this.GetCppThis(), _arg);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_SetLoadOverlays_46")]
internal static extern void vtkGDCMImageReader_SetLoadOverlays_46(HandleRef pThis, int _arg);
/// <summary>
/// Specifically request to load the overlay into the gdcm-VTK layer (gdcm always loads them when found).
/// If no overlay is found in the image, then the vtkImageData for the overlay will be empty.
/// </summary>
public virtual void SetLoadOverlays(int _arg)
{
vtkGDCMImageReader_SetLoadOverlays_46(this.GetCppThis(), _arg);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_SetLossyFlag_47")]
internal static extern void vtkGDCMImageReader_SetLossyFlag_47(HandleRef pThis, int _arg);
/// <summary>
/// Set/Get whether or not the image was compressed using a lossy compression algorithm
/// </summary>
public virtual void SetLossyFlag(int _arg)
{
vtkGDCMImageReader_SetLossyFlag_47(this.GetCppThis(), _arg);
}
[DllImport(vtkgdcmEL_dll, EntryPoint = "vtkGDCMImageReader_SetMedicalImageProperties_48")]
internal static extern void vtkGDCMImageReader_SetMedicalImageProperties_48(HandleRef pThis, HandleRef pd);
/// <summary>
/// Get the medical image properties object
/// </summary>
public virtual void SetMedicalImageProperties(vtkMedicalImageProperties pd)
{
vtkGDCMImageReader_SetMedicalImageProperties_48(this.GetCppThis(), pd == null ? new HandleRef() : pd.GetCppThis());
}
}
}