02.05.2014 Views

Ocean* Application Development Framework - Ocean - Schlumberger

Ocean* Application Development Framework - Ocean - Schlumberger

Ocean* Application Development Framework - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Geometry<br />

respectively. These interfaces are created for representing data in Euclidean 2D and<br />

3D space respectively.<br />

public interface IPolyline2 : IEnumerable;<br />

public interface IPolyline3 : IPoint3Set;<br />

Polyline2 and Polyline 3<br />

Classes<br />

They define one public property:<br />

IsClosed - This property determines if the polyline is closed or not.<br />

The Slb.<strong>Ocean</strong>.Geometry namespace defines two sealed polyline classes called<br />

Polyline2 and Polyline3, which extend the IPolyline2 and IPolyline3<br />

interfaces. These classes represent data in Euclidean 2D and 3D space. They<br />

represent a line that passes through a collection of points. The points here are<br />

defined by Point2 or Point3 objects.<br />

The Polyline2 class is defined as:<br />

public sealed class Polyline2 : IPolyline2<br />

{<br />

public Polyline2 (IEnumerable points);<br />

public Polyline2 (IEnumerable points, bool isClosed);<br />

public bool IsClosed { ; }<br />

public static readonly Polyline2 Empty = new Polyline2 (<br />

new Point2 [0]);<br />

}<br />

public static Polyline 2 CreateByReference (IEnumerable <br />

points)<br />

public static Polyline2 CreateByReference (IEnumerable <br />

points, bool isClosed);<br />

public IEnumerator GetEnumerator();<br />

<strong>Schlumberger</strong> Private - Customer Use<br />

<strong>Ocean</strong> Services 4-149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!