C# Class touchvg.core.MgImageShape

Inheritance: MgBaseRect
显示文件 Open project: rhcad/touchvg-v0.6 Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
MgImageShape ( ) : System
Type ( ) : int
clear ( ) : void
clearCachedData ( ) : void
clone ( ) : touchvg.core.MgObject
copy ( touchvg.core.MgObject src ) : void
create ( ) : MgImageShape
draw ( int mode, GiGraphics gs, GiContext ctx, int segment ) : bool
equals ( touchvg.core.MgObject src ) : bool
findShapeByImageID ( touchvg.core.MgShapes shapes, string name ) : MgShape
getExtent ( ) : Box2d
getHandleCount ( ) : int
getHandlePoint ( int index ) : Point2d
getHandleType ( int index ) : int
getName ( ) : string
getPoint ( int index ) : Point2d
getPointCount ( ) : int
getType ( ) : int
getTypeName ( ) : string
hitTest ( Point2d pt, float tol, MgHitResult res ) : float
hitTestBox ( Box2d rect ) : bool
isClosed ( ) : 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
setHandlePoint ( int index, Point2d pt, float tol ) : bool
setName ( string name ) : void
setPoint ( int index, Point2d pt ) : void
transform ( Matrix2d mat ) : void
update ( ) : void

Private Methods

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

Method Details

Dispose() public method

public Dispose ( ) : void
return void

MgImageShape() public method

public MgImageShape ( ) : 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 ( ) : MgImageShape
return MgImageShape

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

findShapeByImageID() public static method

public static findShapeByImageID ( touchvg.core.MgShapes shapes, string name ) : MgShape
shapes touchvg.core.MgShapes
name string
return MgShape

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

getName() public method

public getName ( ) : string
return string

getPoint() public method

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

getPointCount() public method

public getPointCount ( ) : int
return int

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

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

setHandlePoint() public method

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

setName() public method

public setName ( string name ) : void
name string
return void

setPoint() public method

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

transform() public method

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

update() public method

public update ( ) : void
return void