Here are the examples of the csharp api class ClearCanvas.ImageViewer.Graphics.SpatialTransform.CalculatePreTransform(System.Drawing.Drawing2D.Matrix) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: ClearCanvas
Source File: SpatialTransform.cs
Source File: SpatialTransform.cs
protected virtual void Calculate() { if (!this.RecalculationRequired) return; // The cumulative transform is the product of the transform of the // parent graphic and the transform of this graphic (i.e. the current transform) // If there is no parent graphic, then the cumulative transform = current transform if (_cumulativeTransform == null) _cumulativeTransform = new Matrix(); _cumulativeTransform.Reset(); IGraphic parentGraphic = OwnerGraphic != null ? OwnerGraphic.ParentGraphic : null; if (parentGraphic != null) _cumulativeTransform.Multiply(parentGraphic.SpatialTransform.CumulativeTransform); CalculatePreTransform(_cumulativeTransform); _cumulativeTransform.Multiply(this.Transform); CalculatePostTransform(_cumulativeTransform); this.RecalculationRequired = false; // Validate if there's a validation policy in place. Otherwise, assume all is good. if (_validationPolicy != null) _validationPolicy.Validate(this); }