Navigation:  API Change History > 1.1 >

Breaking Changes

Previous pageReturn to chapter overviewNext page

Below is a list of breaking changes organized by namespace and type. At first glance, the list appears quite lengthy.  However, many of the modifications have been made in less commonly used classes and interfaces, and so most developers will likely only be affected by a relatively small subset of these API changes.

Common.Actions

Type

Change

IXmlActionCompilerOperator<T>

Added method GetSchema() : XmlSchemaElement

XmlActionCompiler

Modified method Compile

From:

Compile(XmlElement containingNode) : void

To:

Compile(XmlElement containingNode, bool checkSchema) : void

Common.Specifications

Type

Change

CountSpecification

Modified constructor

From:

CountSpecification(int min, int max)

To:

CountSpecification(int min, int max, ISpecification innerSpecification)

IXmlSpecificationCompilerOperator

Added method GetSchema : XmlSchemaElement

Common.Statistics

Type

Change

CollectionAverageStatistics<T>

Removed property LogAll

Modified method NewStatistics

From:

NewStatistics() : T

To:

NewStatistics(string name) : T

Modified method GetXmlElement

From:

GetXmlElement(XmlDocument doc) : XmlElement

To:

GetXmlElement(XmlDocument doc, bool recursive) : XmlElement

StatisticsSet

Modified method GetXmlElement

From:

GetXmlElement(XmlDocument doc) : XmlElement

To:

GetXmlElement(XmlDocument doc, bool recursive) : XmlElement

StatisticsSetCollection

Modified method NewStatistics

From:

NewStatistics() : T

To:

NewStatistics(string name) : T

Modified method ToXmlElements

From:

ToXmlElements(XmlDocument doc) : List<XmlElement>

To:

ToXmlElements(XmlDocument doc, bool recursive) : : List<XmlElement>

Desktop.Actions

Type

Change

IAction

Added event IconSetChanged : EventHandler

Desktop.Validation

Type

Change

ValidationRuleSet

Removed method Add(string xmlSpecifications) : void

ImageViewer

Type

Change

BasicPresentationImage

Renamed method OnDraw

From:

OnDraw(DrawArgs args) : void

To:

Draw(DrawArgs args) : void

DicomColorPresentationImage

Modified constructor

From:

DicomColorPresentationImage(ImageSop imageSop)

To:

DicomColorPresentationImage(Frame frame)

DicomGrayscalePresentationImage

Modified constructor

From:

DicomGrayscalePresentationImage(ImageSop imageSop)

To:

DicomGrayscalePresentationImage(Frame frame)

IImageViewer

Added property DesktopWindow : IDesktopWindow

IPresentationImage

Added property ClientRectangle : Rectangle

Added method DrawToBitmap(int width, int height) : Bitmap

PresentationImage

Renamed method OnDraw

From:

OnDraw(DrawArgs args) : void

To:

Draw(DrawArgs args) : void

PresentationImageFactory

Modified method Create

From:

Create(ImageSop imageSop) : IPresentationImage

To:

Create(ImageSop imageSop) : List<IPresentationImage>

Tile

Renamed method OnDraw

From:

OnDraw(DrawArgs args) : void

To:

Draw(DrawArgs args) : void

ImageViewer.Annotations

Type

Change

IAnnotationLayout

Added property Visible : bool

ImageViewer.Annotations.Dicom

Type

Change

DicomAnnotationItem<T>

Modified constructor

From:

DicomAnnotationItem(

string identifier,

IAnnotationResourceResolver resolver,

SopDataRetrieverDelegate<T> sopDataRetrieverDelegate,

ResultFormatterDelegate<T> resultFormatterDelegate)

 

To:

DicomAnnotationItem(

string identifier,

IAnnotationResourceResolver resolver,

FrameDataRetrieverDelegate<T> sopDataRetrieverDelegate,

ResultFormatterDelegate<T> resultFormatterDelegate)

Modified Constructor

From:

DicomAnnotationItem(

string identifier,

string displayName,

string label,

SopDataRetrieverDelegate<T> sopDataRetrieverDelegate,

ResultFormatterDelegate<T> resultFormatterDelegate)

 

To:

DicomAnnotationItem(

string identifier,

string displayName,

string label,

FrameDataRetrieverDelegate<T> sopDataRetrieverDelegate,

ResultFormatterDelegate<T> resultFormatterDelegate)

ImageViewer.Comparers

Type

Change

DicomImageSopComparer

Renamed to DicomFrameComparer

InstanceNumberComparer

Renamed to InstanceAndFrameNumberComparer

ImageViewer.Graphics

Type

Change

IndexedImageGraphic

Removed

InsertRemoveGraphicUndoableCommand

Migrated to InsertRemoveOverlayGraphicUndoableCommand

IGraphicToolContext

Added property DesktopWindow : IDesktopWindow

ImageSpatialTransform

Renamed method CalculateScale

From:

CalculateScale()

To:

UpdateScaleParameters()

ISpatialTransform

Added property CenterOfRotationXY : PointF

Added property CumulativeScale : float

PointPrimitive

Removed constructor PointPrimitive(PointF point), replaced with default constructor PointPrimitive()

SpatialTransform

Changed property RecalculationRequired : bool

From:

protected internal bool RecalculationRequired { get; set; }

To:

protected bool RecalculationRequired { get; private set; }

Renamed method CalculateScale

From:

CalculateScale()

To:

UpdateScaleParameters()

Removed ConvertVectorsToDestination(PointF[] sourceVectors) : PointF[]

Removed ConvertVectorsToSource(PointF[] sourceVectors) : PointF[]

ImageViewer.Imaging

Type

Change

AlgorithmCalculatedVoiLutLinear

Modified constructor

From:

AlgorithmCalculatedVoiLutLinear(IndexedPixelData pixelData, IModalityLut modalityLut)

 

To:

AlgorithmCalculatedVoiLutLinear(GrayscalePixelData pixelData, IModalityLut modalityLut)

Modified constructor

From:

AlgorithmCalculatedVoiLutLinear(IndexedPixelData pixelData)

 

To:

AlgorithmCalculatedVoiLutLinear(GrayscalePixelData pixelData)

Changed method CalculateWindowRange

From:

CalculateWindowRange(IndexedPixelData pixelData, out int windowStart, out int windowEnd);

To:

CalculateWindowRange(GrayscalePixelData pixelData, out int windowStart, out int windowEnd);

IndexedPixelData

Removed

MinMaxPixelCalculatedLinearLut

Modified constructor

From:

MinMaxPixelCalculatedLinearLut(IndexedPixelData pixelData, IModalityLut modalityLut)

 

To:

MinMaxPixelCalculatedLinearLut(GrayscalePixelData pixelData, IModalityLut modalityLut)

Modified constructor

From:

MinMaxPixelCalculatedLinearLut(IndexedPixelData pixelData)

 

To:

MinMaxPixelCalculatedLinearLut(GrayscalePixelData pixelData)

Changed method CalculateWindowRange

From:

CalculateWindowRange(IndexedPixelData pixelData, out int windowStart, out int windowEnd);

To:

CalculateWindowRange(GrayscalePixelData pixelData, out int windowStart, out int windowEnd);

ImageViewer.InteractiveGraphics

Type

Change

CreateRectangleInteractiveGraphicState

Removed

Migrated to CreateBoundableGraphicState

InteractiveGraphic

Added abstract property BoundingBox : RectangleF

Added abstract method GetClosestPoint(PointF point) : PointF

ImageViewer.Rendering

Type

Change

DrawArgs

Constructor changed

From:

DrawArgs(IRenderingSurface surface, DrawMode drawMode)

To:

DrawArgs(IRenderingSurface surface, IScreenInfo screenInfo, DrawMode drawMode)

RendererBase

Added abstract method DrawEllipsePrimitive(EllipsePrimitive ellipse) : void

Added abstract method DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse) : void

Added abstract method DrawArcPrimitive(IArcGraphic arc) : void

ImageViewer.StudyManagement

Type

Change

IImageSopProvider

Added property Frame : Frame

ImageSop

Added abstract method CreateFrame(int index) : Frame

Method GetModalityPixelSpacing() : PixelSpacing, moved into NormalizedPixelSpacing class

Removed method (and moved into Frame class)

DecompressPixelData(byte[] compressedPixelData) : byte[]

Removed method (and moved into Frame class)

NormalizePixelData(byte[] compressedPixelData) : byte[]

LocalImageSop

Renamed method GetTagAsDicomStringArray

From:

GetTagAsDicomStringArray

To:

GetMultiValuedTagRaw

Removed method GetNormalizedPixelData() : byte[]

Sop

Added abstract method GetTag(uint tag, out byte[] value, out bool tagExists) : void

Renamed method GetTagAsDicomStringArray

From:

GetTagAsDicomStringArray

To:

GetMultiValuedTagRaw

SopDataRetrieverFactory

Renamed to FrameDataRetrieverFactory