C# Класс tk2dAtlas.MaxRectsBinPack

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetMapped() публичный Метод

public GetMapped ( ) : List
Результат List

Init() публичный Метод

public Init ( int width, int height ) : void
width int
height int
Результат void

Insert() публичный Метод

public Insert ( int width, int height, FreeRectChoiceHeuristic method ) : Rect
width int
height int
method FreeRectChoiceHeuristic
Результат Rect

Insert() публичный Метод

public Insert ( List rects, FreeRectChoiceHeuristic method ) : bool
rects List
method FreeRectChoiceHeuristic
Результат bool

MaxRectsBinPack() публичный Метод

public MaxRectsBinPack ( ) : System
Результат System

MaxRectsBinPack() публичный Метод

public MaxRectsBinPack ( int width, int height ) : System
width int
height int
Результат System

Occupancy() публичный Метод

public Occupancy ( ) : float
Результат float

WastedBinArea() публичный Метод

public WastedBinArea ( ) : int
Результат int