C# Class tk2dAtlas.MaxRectsBinPack

Mostra file Open project: CodeStrumpet/Elemental Class Usage Examples

Public Methods

Method Description
GetMapped ( ) : List
Init ( int width, int height ) : void
Insert ( int width, int height, FreeRectChoiceHeuristic method ) : Rect
Insert ( List rects, FreeRectChoiceHeuristic method ) : bool
MaxRectsBinPack ( ) : System
MaxRectsBinPack ( int width, int height ) : System
Occupancy ( ) : float
WastedBinArea ( ) : int

Private Methods

Method Description
CommonIntervalLength ( int i1start, int i1end, int i2start, int i2end ) : int
ContactPointScoreNode ( int x, int y, int width, int height ) : int
FindPositionForNewNodeBestAreaFit ( int width, int height, int &bestAreaFit, int &bestShortSideFit ) : Rect
FindPositionForNewNodeBestLongSideFit ( int width, int height, int &bestShortSideFit, int &bestLongSideFit ) : Rect
FindPositionForNewNodeBestShortSideFit ( int width, int height, int &bestShortSideFit, int &bestLongSideFit ) : Rect
FindPositionForNewNodeBottomLeft ( int width, int height, int &bestY, int &bestX ) : Rect
FindPositionForNewNodeContactPoint ( int width, int height, int &bestContactScore ) : Rect
PlaceRect ( Rect node ) : void
PruneFreeList ( ) : void
ScoreRect ( int width, int height, FreeRectChoiceHeuristic method, int &score1, int &score2 ) : Rect
SplitFreeNode ( Rect freeNode, Rect usedNode ) : bool

Method Details

GetMapped() public method

public GetMapped ( ) : List
return List

Init() public method

public Init ( int width, int height ) : void
width int
height int
return void

Insert() public method

public Insert ( int width, int height, FreeRectChoiceHeuristic method ) : Rect
width int
height int
method FreeRectChoiceHeuristic
return Rect

Insert() public method

public Insert ( List rects, FreeRectChoiceHeuristic method ) : bool
rects List
method FreeRectChoiceHeuristic
return bool

MaxRectsBinPack() public method

public MaxRectsBinPack ( ) : System
return System

MaxRectsBinPack() public method

public MaxRectsBinPack ( int width, int height ) : System
width int
height int
return System

Occupancy() public method

public Occupancy ( ) : float
return float

WastedBinArea() public method

public WastedBinArea ( ) : int
return int