C# Class ThreeDDrawing.Scene3DBase

ファイルを表示 Open project: EFanZh/EFanZh Class Usage Examples

Public Methods

Method Description
Render ( Graphics graphics ) : void
Resize ( Size new_size ) : void
Scene3DBase ( Size size, double angle_of_view, CameraTransform camera_transform ) : System

Protected Methods

Method Description
DoDraw ( Graphics graphics ) : void
DrawLines ( Graphics graphics, Pen pen, double min_length ) : void
DrawPolygon ( Graphics graphics, Pen pen, double min_length ) : void
GetLines ( double min_length ) : System.Drawing.PointF[]
GetPolygon ( double min_length ) : System.Drawing.PointF[]

Private Methods

Method Description
CommitSize ( ) : void
GetCameraFullViewSize ( ) : double
GetViewCoordinates ( Point3D point ) : PointF
SliceLine ( double min_length, Point3D line_start, Point3D line_end, PointF line_start_map, PointF line_end_map ) : List

Method Details

DoDraw() protected abstract method

protected abstract DoDraw ( Graphics graphics ) : void
graphics System.Drawing.Graphics
return void

DrawLines() protected method

protected DrawLines ( Graphics graphics, Pen pen, double min_length ) : void
graphics System.Drawing.Graphics
pen System.Drawing.Pen
min_length double
return void

DrawPolygon() protected method

protected DrawPolygon ( Graphics graphics, Pen pen, double min_length ) : void
graphics System.Drawing.Graphics
pen System.Drawing.Pen
min_length double
return void

GetLines() protected method

protected GetLines ( double min_length ) : System.Drawing.PointF[]
min_length double
return System.Drawing.PointF[]

GetPolygon() protected method

protected GetPolygon ( double min_length ) : System.Drawing.PointF[]
min_length double
return System.Drawing.PointF[]

Render() public method

public Render ( Graphics graphics ) : void
graphics System.Drawing.Graphics
return void

Resize() public method

public Resize ( Size new_size ) : void
new_size System.Drawing.Size
return void

Scene3DBase() public method

public Scene3DBase ( Size size, double angle_of_view, CameraTransform camera_transform ) : System
size System.Drawing.Size
angle_of_view double
camera_transform CameraTransform
return System