C# Class touchvg.core.MgArc

Inheritance: touchvg.core.MgBaseShape
Show file Open project: rhcad/touchvg-v0.6 Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
MgArc ( ) : System
Type ( ) : int
clear ( ) : void
clearCachedData ( ) : void
clone ( ) : touchvg.core.MgObject
copy ( touchvg.core.MgObject src ) : void
create ( ) : MgArc
draw ( int mode, GiGraphics gs, GiContext ctx, int segment ) : bool
equals ( touchvg.core.MgObject src ) : bool
getCenter ( ) : Point2d
getEndAngle ( ) : float
getEndPoint ( ) : Point2d
getEndTangent ( ) : Vector2d
getExtent ( ) : Box2d
getHandleCount ( ) : int
getHandlePoint ( int index ) : Point2d
getHandleType ( int index ) : int
getMidPoint ( ) : Point2d
getPoint ( int index ) : Point2d
getPointCount ( ) : int
getRadius ( ) : float
getStartAngle ( ) : float
getStartPoint ( ) : Point2d
getStartTangent ( ) : Vector2d
getSweepAngle ( ) : float
getType ( ) : int
getTypeName ( ) : string
hitTest ( Point2d pt, float tol, MgHitResult res ) : float
hitTestBox ( Box2d rect ) : bool
isClosed ( ) : bool
isCurve ( ) : bool
isHandleFixed ( int index ) : bool
isKindOf ( int type ) : bool
load ( MgShapeFactory factory, touchvg.core.MgStorage s ) : bool
offset ( Vector2d vec, int segment ) : bool
release ( ) : void
save ( touchvg.core.MgStorage s ) : bool
setCenterRadius ( Point2d center, float radius, float startAngle, float sweepAngle ) : bool
setCenterStartEnd ( Point2d center, Point2d start ) : bool
setCenterStartEnd ( Point2d center, Point2d start, Point2d end ) : bool
setHandlePoint ( int index, Point2d pt, float tol ) : bool
setPoint ( int index, Point2d pt ) : void
setStartMidEnd ( Point2d start, Point2d point, Point2d end ) : bool
setTanStartEnd ( Vector2d startTan, Point2d start, Point2d end ) : bool
transform ( Matrix2d mat ) : void
update ( ) : void

Private Methods

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

Method Details

Dispose() public method

public Dispose ( ) : void
return void

MgArc() public method

public MgArc ( ) : System
return System

Type() public static method

public static Type ( ) : int
return int

clear() public method

public clear ( ) : void
return void

clearCachedData() public method

public clearCachedData ( ) : void
return void

clone() public method

public clone ( ) : touchvg.core.MgObject
return touchvg.core.MgObject

copy() public method

public copy ( touchvg.core.MgObject src ) : void
src touchvg.core.MgObject
return void

create() public static method

public static create ( ) : MgArc
return MgArc

draw() public method

public draw ( int mode, GiGraphics gs, GiContext ctx, int segment ) : bool
mode int
gs GiGraphics
ctx GiContext
segment int
return bool

equals() public method

public equals ( touchvg.core.MgObject src ) : bool
src touchvg.core.MgObject
return bool

getCenter() public method

public getCenter ( ) : Point2d
return Point2d

getEndAngle() public method

public getEndAngle ( ) : float
return float

getEndPoint() public method

public getEndPoint ( ) : Point2d
return Point2d

getEndTangent() public method

public getEndTangent ( ) : Vector2d
return Vector2d

getExtent() public method

public getExtent ( ) : Box2d
return Box2d

getHandleCount() public method

public getHandleCount ( ) : int
return int

getHandlePoint() public method

public getHandlePoint ( int index ) : Point2d
index int
return Point2d

getHandleType() public method

public getHandleType ( int index ) : int
index int
return int

getMidPoint() public method

public getMidPoint ( ) : Point2d
return Point2d

getPoint() public method

public getPoint ( int index ) : Point2d
index int
return Point2d

getPointCount() public method

public getPointCount ( ) : int
return int

getRadius() public method

public getRadius ( ) : float
return float

getStartAngle() public method

public getStartAngle ( ) : float
return float

getStartPoint() public method

public getStartPoint ( ) : Point2d
return Point2d

getStartTangent() public method

public getStartTangent ( ) : Vector2d
return Vector2d

getSweepAngle() public method

public getSweepAngle ( ) : float
return float

getType() public method

public getType ( ) : int
return int

getTypeName() public method

public getTypeName ( ) : string
return string

hitTest() public method

public hitTest ( Point2d pt, float tol, MgHitResult res ) : float
pt Point2d
tol float
res MgHitResult
return float

hitTestBox() public method

public hitTestBox ( Box2d rect ) : bool
rect Box2d
return bool

isClosed() public method

public isClosed ( ) : bool
return bool

isCurve() public method

public isCurve ( ) : bool
return bool

isHandleFixed() public method

public isHandleFixed ( int index ) : bool
index int
return bool

isKindOf() public method

public isKindOf ( int type ) : bool
type int
return bool

load() public method

public load ( MgShapeFactory factory, touchvg.core.MgStorage s ) : bool
factory MgShapeFactory
s touchvg.core.MgStorage
return bool

offset() public method

public offset ( Vector2d vec, int segment ) : bool
vec Vector2d
segment int
return bool

release() public method

public release ( ) : void
return void

save() public method

public save ( touchvg.core.MgStorage s ) : bool
s touchvg.core.MgStorage
return bool

setCenterRadius() public method

public setCenterRadius ( Point2d center, float radius, float startAngle, float sweepAngle ) : bool
center Point2d
radius float
startAngle float
sweepAngle float
return bool

setCenterStartEnd() public method

public setCenterStartEnd ( Point2d center, Point2d start ) : bool
center Point2d
start Point2d
return bool

setCenterStartEnd() public method

public setCenterStartEnd ( Point2d center, Point2d start, Point2d end ) : bool
center Point2d
start Point2d
end Point2d
return bool

setHandlePoint() public method

public setHandlePoint ( int index, Point2d pt, float tol ) : bool
index int
pt Point2d
tol float
return bool

setPoint() public method

public setPoint ( int index, Point2d pt ) : void
index int
pt Point2d
return void

setStartMidEnd() public method

public setStartMidEnd ( Point2d start, Point2d point, Point2d end ) : bool
start Point2d
point Point2d
end Point2d
return bool

setTanStartEnd() public method

public setTanStartEnd ( Vector2d startTan, Point2d start, Point2d end ) : bool
startTan Vector2d
start Point2d
end Point2d
return bool

transform() public method

public transform ( Matrix2d mat ) : void
mat Matrix2d
return void

update() public method

public update ( ) : void
return void