Here are the examples of the csharp api class ClearCanvas.ImageViewer.InteractiveGraphics.InteractivePolygonGraphicBuilder.AtOrigin(System.Drawing.PointF) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: ClearCanvas
Source File: InteractivePolygonGraphicBuilder.cs
Source File: InteractivePolygonGraphicBuilder.cs
public override bool Start(IMouseInformation mouseInformation) { _numberOfPointsAnchored++; /n ..... /n //View Source file for more details /n }
0
2. Example
Project: ClearCanvas
Source File: InteractivePolygonGraphicBuilder.cs
Source File: InteractivePolygonGraphicBuilder.cs
public override bool Track(IMouseInformation mouseInformation) { this.Graphic.CoordinateSystem = CoordinateSystem.Destination; if (_numberOfPointsAnchored >= 3 && AtOrigin(mouseInformation.Location)) { this.Graphic.Points[_numberOfPointsAnchored] = this.Graphic.Points[0]; InstallSnapPointGraphic(true); } else { this.Graphic.Points[_numberOfPointsAnchored] = mouseInformation.Location; InstallSnapPointGraphic(false); } this.Graphic.ResetCoordinateSystem(); this.Graphic.Draw(); return true; }