C# Class tk2dEditor.Atlas.MaxRectsBinPack

Afficher le fichier Open project: Collegiennes/Malisse Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetMapped ( ) : List
Résultat List

Init() public méthode

public Init ( int width, int height ) : void
width int
height int
Résultat void

Insert() public méthode

public Insert ( int width, int height, FreeRectChoiceHeuristic method ) : Rect
width int
height int
method FreeRectChoiceHeuristic
Résultat Rect

Insert() public méthode

public Insert ( List rects, FreeRectChoiceHeuristic method ) : bool
rects List
method FreeRectChoiceHeuristic
Résultat bool

MaxRectsBinPack() public méthode

public MaxRectsBinPack ( ) : System
Résultat System

MaxRectsBinPack() public méthode

public MaxRectsBinPack ( int width, int height ) : System
width int
height int
Résultat System

Occupancy() public méthode

public Occupancy ( ) : float
Résultat float

WastedBinArea() public méthode

public WastedBinArea ( ) : int
Résultat int