C# Class touchvg.core.GiGraphics

Inheritance: global::System.IDisposable
Datei anzeigen Open project: rhcad/touchvg-v0.6 Class Usage Examples

Protected Properties

Property Type Description
swigCMemOwn bool

Public Methods

Method Description
Dispose ( ) : void
GiGraphics ( GiTransform xform ) : System
calcPenColor ( GiColor color ) : GiColor
calcPenWidth ( float lineWidth, bool useViewScale ) : float
copy ( GiGraphics src ) : void
drawArc ( GiContext ctx, Point2d center, float rx, float ry, float startAngle, float sweepAngle ) : bool
drawArc ( GiContext ctx, Point2d center, float rx, float ry, float startAngle, float sweepAngle, bool modelUnit ) : bool
drawArc3P ( GiContext ctx, Point2d startpt, Point2d midpt, Point2d endpt ) : bool
drawArc3P ( GiContext ctx, Point2d startpt, Point2d midpt, Point2d endpt, bool modelUnit ) : bool
drawBSplines ( GiContext ctx, int count, Point2d ctlpts ) : bool
drawBSplines ( GiContext ctx, int count, Point2d ctlpts, bool modelUnit ) : bool
drawBeziers ( GiContext ctx, int count, Point2d points ) : bool
drawBeziers ( GiContext ctx, int count, Point2d points, bool closed ) : bool
drawBeziers ( GiContext ctx, int count, Point2d points, bool closed, bool modelUnit ) : bool
drawClosedBSplines ( GiContext ctx, int count, Point2d ctlpts ) : bool
drawClosedBSplines ( GiContext ctx, int count, Point2d ctlpts, bool modelUnit ) : bool
drawClosedSplines ( GiContext ctx, int count, Point2d knots, Vector2d knotvs ) : bool
drawClosedSplines ( GiContext ctx, int count, Point2d knots, Vector2d knotvs, bool modelUnit ) : bool
drawEllipse ( GiContext ctx, Box2d rect ) : bool
drawEllipse ( GiContext ctx, Box2d rect, bool modelUnit ) : bool
drawEllipse ( GiContext ctx, Point2d center, float rx ) : bool
drawEllipse ( GiContext ctx, Point2d center, float rx, float ry ) : bool
drawEllipse ( GiContext ctx, Point2d center, float rx, float ry, bool modelUnit ) : bool
drawHandle ( Point2d pnt, int type ) : bool
drawHandle ( Point2d pnt, int type, bool modelUnit ) : bool
drawLine ( GiContext ctx, Point2d startPt, Point2d endPt ) : bool
drawLine ( GiContext ctx, Point2d startPt, Point2d endPt, bool modelUnit ) : bool
drawLines ( GiContext ctx, int count, Point2d points ) : bool
drawLines ( GiContext ctx, int count, Point2d points, bool modelUnit ) : bool
drawPath ( GiContext ctx, GiPath path, bool fill ) : bool
drawPath ( GiContext ctx, GiPath path, bool fill, bool modelUnit ) : bool
drawPie ( GiContext ctx, Point2d center, float rx, float ry, float startAngle, float sweepAngle ) : bool
drawPie ( GiContext ctx, Point2d center, float rx, float ry, float startAngle, float sweepAngle, bool modelUnit ) : bool
drawPolygon ( GiContext ctx, int count, Point2d points ) : bool
drawPolygon ( GiContext ctx, int count, Point2d points, bool modelUnit ) : bool
drawRect ( GiContext ctx, Box2d rect ) : bool
drawRect ( GiContext ctx, Box2d rect, bool modelUnit ) : bool
drawRoundRect ( GiContext ctx, Box2d rect, float rx ) : bool
drawRoundRect ( GiContext ctx, Box2d rect, float rx, float ry ) : bool
drawRoundRect ( GiContext ctx, Box2d rect, float rx, float ry, bool modelUnit ) : bool
drawSplines ( GiContext ctx, int count, Point2d knots, Vector2d knotvs ) : bool
drawSplines ( GiContext ctx, int count, Point2d knots, Vector2d knotvs, bool modelUnit ) : bool
getBkColor ( ) : GiColor
getClipBox ( RECT_2D rc ) : RECT_2D
getClipModel ( ) : Box2d
getClipWorld ( ) : Box2d
isDrawing ( ) : bool
isGrayMode ( ) : bool
isPrint ( ) : bool
setBkColor ( GiColor color ) : GiColor
setClipBox ( RECT_2D rc ) : bool
setClipWorld ( Box2d rectWorld ) : bool
setGrayMode ( bool gray ) : void
setMaxPenWidth ( float pixels ) : void
setMaxPenWidth ( float pixels, float minw ) : void
xf ( ) : GiTransform

Private Methods

Method Description
GiGraphics ( IntPtr cPtr, bool cMemoryOwn ) : System
getCPtr ( GiGraphics obj ) : HandleRef

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GiGraphics() public method

public GiGraphics ( GiTransform xform ) : System
xform GiTransform
return System

calcPenColor() public method

public calcPenColor ( GiColor color ) : GiColor
color GiColor
return GiColor

calcPenWidth() public method

public calcPenWidth ( float lineWidth, bool useViewScale ) : float
lineWidth float
useViewScale bool
return float

copy() public method

public copy ( GiGraphics src ) : void
src GiGraphics
return void

drawArc() public method

public drawArc ( GiContext ctx, Point2d center, float rx, float ry, float startAngle, float sweepAngle ) : bool
ctx GiContext
center Point2d
rx float
ry float
startAngle float
sweepAngle float
return bool

drawArc() public method

public drawArc ( GiContext ctx, Point2d center, float rx, float ry, float startAngle, float sweepAngle, bool modelUnit ) : bool
ctx GiContext
center Point2d
rx float
ry float
startAngle float
sweepAngle float
modelUnit bool
return bool

drawArc3P() public method

public drawArc3P ( GiContext ctx, Point2d startpt, Point2d midpt, Point2d endpt ) : bool
ctx GiContext
startpt Point2d
midpt Point2d
endpt Point2d
return bool

drawArc3P() public method

public drawArc3P ( GiContext ctx, Point2d startpt, Point2d midpt, Point2d endpt, bool modelUnit ) : bool
ctx GiContext
startpt Point2d
midpt Point2d
endpt Point2d
modelUnit bool
return bool

drawBSplines() public method

public drawBSplines ( GiContext ctx, int count, Point2d ctlpts ) : bool
ctx GiContext
count int
ctlpts Point2d
return bool

drawBSplines() public method

public drawBSplines ( GiContext ctx, int count, Point2d ctlpts, bool modelUnit ) : bool
ctx GiContext
count int
ctlpts Point2d
modelUnit bool
return bool

drawBeziers() public method

public drawBeziers ( GiContext ctx, int count, Point2d points ) : bool
ctx GiContext
count int
points Point2d
return bool

drawBeziers() public method

public drawBeziers ( GiContext ctx, int count, Point2d points, bool closed ) : bool
ctx GiContext
count int
points Point2d
closed bool
return bool

drawBeziers() public method

public drawBeziers ( GiContext ctx, int count, Point2d points, bool closed, bool modelUnit ) : bool
ctx GiContext
count int
points Point2d
closed bool
modelUnit bool
return bool

drawClosedBSplines() public method

public drawClosedBSplines ( GiContext ctx, int count, Point2d ctlpts ) : bool
ctx GiContext
count int
ctlpts Point2d
return bool

drawClosedBSplines() public method

public drawClosedBSplines ( GiContext ctx, int count, Point2d ctlpts, bool modelUnit ) : bool
ctx GiContext
count int
ctlpts Point2d
modelUnit bool
return bool

drawClosedSplines() public method

public drawClosedSplines ( GiContext ctx, int count, Point2d knots, Vector2d knotvs ) : bool
ctx GiContext
count int
knots Point2d
knotvs Vector2d
return bool

drawClosedSplines() public method

public drawClosedSplines ( GiContext ctx, int count, Point2d knots, Vector2d knotvs, bool modelUnit ) : bool
ctx GiContext
count int
knots Point2d
knotvs Vector2d
modelUnit bool
return bool

drawEllipse() public method

public drawEllipse ( GiContext ctx, Box2d rect ) : bool
ctx GiContext
rect Box2d
return bool

drawEllipse() public method

public drawEllipse ( GiContext ctx, Box2d rect, bool modelUnit ) : bool
ctx GiContext
rect Box2d
modelUnit bool
return bool

drawEllipse() public method

public drawEllipse ( GiContext ctx, Point2d center, float rx ) : bool
ctx GiContext
center Point2d
rx float
return bool

drawEllipse() public method

public drawEllipse ( GiContext ctx, Point2d center, float rx, float ry ) : bool
ctx GiContext
center Point2d
rx float
ry float
return bool

drawEllipse() public method

public drawEllipse ( GiContext ctx, Point2d center, float rx, float ry, bool modelUnit ) : bool
ctx GiContext
center Point2d
rx float
ry float
modelUnit bool
return bool

drawHandle() public method

public drawHandle ( Point2d pnt, int type ) : bool
pnt Point2d
type int
return bool

drawHandle() public method

public drawHandle ( Point2d pnt, int type, bool modelUnit ) : bool
pnt Point2d
type int
modelUnit bool
return bool

drawLine() public method

public drawLine ( GiContext ctx, Point2d startPt, Point2d endPt ) : bool
ctx GiContext
startPt Point2d
endPt Point2d
return bool

drawLine() public method

public drawLine ( GiContext ctx, Point2d startPt, Point2d endPt, bool modelUnit ) : bool
ctx GiContext
startPt Point2d
endPt Point2d
modelUnit bool
return bool

drawLines() public method

public drawLines ( GiContext ctx, int count, Point2d points ) : bool
ctx GiContext
count int
points Point2d
return bool

drawLines() public method

public drawLines ( GiContext ctx, int count, Point2d points, bool modelUnit ) : bool
ctx GiContext
count int
points Point2d
modelUnit bool
return bool

drawPath() public method

public drawPath ( GiContext ctx, GiPath path, bool fill ) : bool
ctx GiContext
path GiPath
fill bool
return bool

drawPath() public method

public drawPath ( GiContext ctx, GiPath path, bool fill, bool modelUnit ) : bool
ctx GiContext
path GiPath
fill bool
modelUnit bool
return bool

drawPie() public method

public drawPie ( GiContext ctx, Point2d center, float rx, float ry, float startAngle, float sweepAngle ) : bool
ctx GiContext
center Point2d
rx float
ry float
startAngle float
sweepAngle float
return bool

drawPie() public method

public drawPie ( GiContext ctx, Point2d center, float rx, float ry, float startAngle, float sweepAngle, bool modelUnit ) : bool
ctx GiContext
center Point2d
rx float
ry float
startAngle float
sweepAngle float
modelUnit bool
return bool

drawPolygon() public method

public drawPolygon ( GiContext ctx, int count, Point2d points ) : bool
ctx GiContext
count int
points Point2d
return bool

drawPolygon() public method

public drawPolygon ( GiContext ctx, int count, Point2d points, bool modelUnit ) : bool
ctx GiContext
count int
points Point2d
modelUnit bool
return bool

drawRect() public method

public drawRect ( GiContext ctx, Box2d rect ) : bool
ctx GiContext
rect Box2d
return bool

drawRect() public method

public drawRect ( GiContext ctx, Box2d rect, bool modelUnit ) : bool
ctx GiContext
rect Box2d
modelUnit bool
return bool

drawRoundRect() public method

public drawRoundRect ( GiContext ctx, Box2d rect, float rx ) : bool
ctx GiContext
rect Box2d
rx float
return bool

drawRoundRect() public method

public drawRoundRect ( GiContext ctx, Box2d rect, float rx, float ry ) : bool
ctx GiContext
rect Box2d
rx float
ry float
return bool

drawRoundRect() public method

public drawRoundRect ( GiContext ctx, Box2d rect, float rx, float ry, bool modelUnit ) : bool
ctx GiContext
rect Box2d
rx float
ry float
modelUnit bool
return bool

drawSplines() public method

public drawSplines ( GiContext ctx, int count, Point2d knots, Vector2d knotvs ) : bool
ctx GiContext
count int
knots Point2d
knotvs Vector2d
return bool

drawSplines() public method

public drawSplines ( GiContext ctx, int count, Point2d knots, Vector2d knotvs, bool modelUnit ) : bool
ctx GiContext
count int
knots Point2d
knotvs Vector2d
modelUnit bool
return bool

getBkColor() public method

public getBkColor ( ) : GiColor
return GiColor

getClipBox() public method

public getClipBox ( RECT_2D rc ) : RECT_2D
rc RECT_2D
return RECT_2D

getClipModel() public method

public getClipModel ( ) : Box2d
return Box2d

getClipWorld() public method

public getClipWorld ( ) : Box2d
return Box2d

isDrawing() public method

public isDrawing ( ) : bool
return bool

isGrayMode() public method

public isGrayMode ( ) : bool
return bool

isPrint() public method

public isPrint ( ) : bool
return bool

setBkColor() public method

public setBkColor ( GiColor color ) : GiColor
color GiColor
return GiColor

setClipBox() public method

public setClipBox ( RECT_2D rc ) : bool
rc RECT_2D
return bool

setClipWorld() public method

public setClipWorld ( Box2d rectWorld ) : bool
rectWorld Box2d
return bool

setGrayMode() public method

public setGrayMode ( bool gray ) : void
gray bool
return void

setMaxPenWidth() public method

public setMaxPenWidth ( float pixels ) : void
pixels float
return void

setMaxPenWidth() public method

public setMaxPenWidth ( float pixels, float minw ) : void
pixels float
minw float
return void

xf() public method

public xf ( ) : GiTransform
return GiTransform

Property Details

swigCMemOwn protected_oe property

protected bool swigCMemOwn
return bool