C# Class Canguro.Controller.Snap.SnapPainter

显示文件 Open project: rforsbach/Treu-Structure Class Usage Examples

Public Methods

Method Description
PaintLineSegment ( Device device, GraphicView activeView, Point startPoint, Point endPoint, LineMagnetType type ) : void
PaintLineSegment ( Device device, GraphicView activeView, System.Vector3 startPos, Point endPoint, LineMagnetType type ) : void
PaintLineSegment ( Device device, GraphicView activeView, System.Vector3 startPos, System.Vector3 endPos, LineMagnetType type ) : void
PaintPointSymbol ( Device device, GraphicView activeView, Point magnet, PointMagnetType type, byte alpha ) : void
PaintPointSymbol ( Device device, GraphicView activeView, System.Vector3 magnet, PointMagnetType type, byte alpha ) : void

Private Methods

Method Description
drawEndPoint ( Device device, float x, float y, Color colorWithAlpha ) : void
drawIntersectPoint ( Device device, float x, float y, Color colorWithAlpha ) : void
drawMidPoint ( Device device, float x, float y, Color colorWithAlpha ) : void
drawPerpPoint ( Device device, float x, float y, Color colorWithAlpha ) : void
drawPointSymbol ( Device device, float x, float y, PointMagnetType type, byte alpha ) : void
drawSegment ( Device device, float x0, float y0, float x1, float y1, LineMagnetType type ) : void
drawSimplePoint ( Device device, float x, float y, Color colorWithAlpha ) : void
followAxis ( Device device, float x0, float y0, float x1, float y1, int color, int stipplePattern ) : void

Method Details

PaintLineSegment() public method

public PaintLineSegment ( Device device, GraphicView activeView, Point startPoint, Point endPoint, LineMagnetType type ) : void
device Device
activeView GraphicView
startPoint Point
endPoint Point
type LineMagnetType
return void

PaintLineSegment() public method

public PaintLineSegment ( Device device, GraphicView activeView, System.Vector3 startPos, Point endPoint, LineMagnetType type ) : void
device Device
activeView GraphicView
startPos System.Vector3
endPoint Point
type LineMagnetType
return void

PaintLineSegment() public method

public PaintLineSegment ( Device device, GraphicView activeView, System.Vector3 startPos, System.Vector3 endPos, LineMagnetType type ) : void
device Device
activeView GraphicView
startPos System.Vector3
endPos System.Vector3
type LineMagnetType
return void

PaintPointSymbol() public method

public PaintPointSymbol ( Device device, GraphicView activeView, Point magnet, PointMagnetType type, byte alpha ) : void
device Device
activeView GraphicView
magnet Point
type PointMagnetType
alpha byte
return void

PaintPointSymbol() public method

public PaintPointSymbol ( Device device, GraphicView activeView, System.Vector3 magnet, PointMagnetType type, byte alpha ) : void
device Device
activeView GraphicView
magnet System.Vector3
type PointMagnetType
alpha byte
return void