Skip to content

Commit

Permalink
NuGenMediImage initial import of source
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNystrom committed Oct 26, 2010
1 parent 857e45a commit abdf825
Show file tree
Hide file tree
Showing 174 changed files with 26,716 additions and 0 deletions.
21 changes: 21 additions & 0 deletions NuGenMediImage/BrightnessChangedEventArgs.cs
@@ -0,0 +1,21 @@
using System;

namespace Genetibase.NuGenMediImage
{
/// <summary>
/// Summary description for BrightnessChangedEventArgs.
/// </summary>
public class BrightnessChangedEventArgs:EventArgs
{

internal float brightness = 0;

public float Brightness
{
get
{
return brightness;
}
}
}
}
21 changes: 21 additions & 0 deletions NuGenMediImage/ContrastChangedEventArgs.cs
@@ -0,0 +1,21 @@
using System;

namespace Genetibase.NuGenMediImage
{
/// <summary>
/// Summary description for BrightnessChangedEventArgs.
/// </summary>
public class ContrastChangedEventArgs:EventArgs
{

internal float contrast = 0;

public float Contrast
{
get
{
return contrast;
}
}
}
}
15 changes: 15 additions & 0 deletions NuGenMediImage/Delegates.cs
@@ -0,0 +1,15 @@
using System;

namespace Genetibase.NuGenMediImage
{
public delegate void CollapsedEventHandler(object sender, EventArgs e);
public delegate void ShowProgressCallback(int max, int value, string text);
public delegate void SimpleDelegate();
public delegate void SimpleDelegateDouble(double val);
public delegate void AddSliceDelegate(System.Drawing.Bitmap b,int idx,int total);
internal delegate void DicomSliceLoadEventHandler(object sender, DicomSliceLoadEventArgs e);
internal delegate void DicomLoadEventHandler(object sender, DicomLoadEventArgs e);
//internal delegate void LoadDicomDelegate(string Path);
internal delegate void LoadImageHelperDelegate(ImageArray images);
internal delegate void SliceProcessedEventHandler(object sender, SliceEventArgs e);
}
85 changes: 85 additions & 0 deletions NuGenMediImage/EventArgs.cs
@@ -0,0 +1,85 @@
/*
* Created by SharpDevelop.
* User: hq230002
* Date: 4/18/2007
* Time: 10:35 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/

using System;

namespace Genetibase.NuGenMediImage
{
internal class DicomSliceLoadEventArgs : EventArgs
{
private System.Drawing.Bitmap b;
private int idx = 0;
private int total = 0;

public int Idx
{
get { return idx; }
//set { idx = value; }
}

public int Total
{
get { return total; }
//set { total = value; }
}


public System.Drawing.Bitmap Thumbnail
{
get { return b; }
//set { b = value; }
}

public DicomSliceLoadEventArgs(System.Drawing.Bitmap b,int idx,int total)
{
this.b = b;
this.idx = idx;
this.total = total;
}
}

internal class DicomLoadEventArgs : EventArgs
{
private int idx = 0;
private int total = 0;

public int Idx
{
get { return idx; }
//set { idx = value; }
}

public int Total
{
get { return total; }
//set { total = value; }
}

public DicomLoadEventArgs(int idx, int total)
{
this.idx = idx;
this.total = total;
}
}

internal class SliceEventArgs : EventArgs
{
private int frameNumber;

public int FrameNumber
{
get { return frameNumber; }
}

public SliceEventArgs(int frameNumber)
{
this.frameNumber = frameNumber;
}
}
}
26 changes: 26 additions & 0 deletions NuGenMediImage/FileType.cs
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Genetibase.NuGenMediImage
{
public enum FileType
{
Normal,
PPM,
RAW,
DICOM,
Analyze,
Inter,
ECAT,
Vision,
Genisis
}

public enum ThumbnailFileType
{
AllImages,
CommonImages,
DICOM
}
}

0 comments on commit abdf825

Please sign in to comment.