C# Class Sphere.Core.Segment

An obstruction segment.
Datei anzeigen Open project: Radnen/spherestudio

Public Methods

Method Description
Draw ( Graphics g, Point &offset, int zoom ) : void

Draws this obstruction segement to the System.Drawings.Graphics.

DrawMe ( Graphics g, int offX, int offY, int zoom ) : void

Draws this obstruction segement to the System.Drawings.Graphics.

Segment ( ) : System.Drawing

Creates an empty segment.

Segment ( BinaryReader stream ) : System.Drawing

Creates and loads a segment from a filestream.

Segment ( int x1, int y1, int x2, int y2 ) : System.Drawing

Creates a segment with supplied values.

Private Methods

Method Description
Save ( BinaryWriter binwrite ) : void

Stores this segment into a filestream.

Method Details

Draw() public method

Draws this obstruction segement to the System.Drawings.Graphics.
public Draw ( Graphics g, Point &offset, int zoom ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to use.
offset System.Drawing.Point The x/y offset to use.
zoom int The zoom factor to use.
return void

DrawMe() public method

Draws this obstruction segement to the System.Drawings.Graphics.
public DrawMe ( Graphics g, int offX, int offY, int zoom ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to use.
offX int The offset x position.
offY int The offset y position.
zoom int The zoom factor to use.
return void

Segment() public method

Creates an empty segment.
public Segment ( ) : System.Drawing
return System.Drawing

Segment() public method

Creates and loads a segment from a filestream.
public Segment ( BinaryReader stream ) : System.Drawing
stream System.IO.BinaryReader The System.IO.BinaryReader to use.
return System.Drawing

Segment() public method

Creates a segment with supplied values.
public Segment ( int x1, int y1, int x2, int y2 ) : System.Drawing
x1 int The upper left x.
y1 int The upper left y.
x2 int The lower right x.
y2 int The lower right y.
return System.Drawing