| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| public static enum | |
| pack-priv class | MaxRectsPacker.
Maximal rectangles bin packing algorithm. |
| Modifier and Type | Field and Description |
|---|---|
| private final MaxRectsPacker. | |
| private final MaxRectsPacker. | |
| private final Comparator | |
| pack-priv final TexturePacker. | |
| private final Sort |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private TexturePacker. | |
| public Array | pack(Array<TexturePacker.
Implements com.
|
| public Array | pack(TexturePacker.
Implements com.
|
| private TexturePacker. | packAtSize(boolean
If true, the only results that pack all rects will be considered. If false, all results are considered, not
all rects may be packed. fully, int width, int height, Array<TexturePacker.
|
| private TexturePacker. |
| maxRects | back to summary |
|---|---|
| private final MaxRectsPacker. | |
| methods | back to summary |
|---|---|
| private final MaxRectsPacker. | |
| rectComparator | back to summary |
|---|---|
| private final Comparator<TexturePacker. | |
| settings | back to summary |
|---|---|
| pack-priv final TexturePacker. | |
| sort | back to summary |
|---|---|
| private final Sort sort | |
| MaxRectsPacker | back to summary |
|---|---|
| public MaxRectsPacker(TexturePacker. | |
| getBest | back to summary |
|---|---|
| private TexturePacker. | |
| pack | back to summary |
|---|---|
| public Array Implements com. | |
| pack | back to summary |
|---|---|
| public Array Implements com. | |
| packAtSize | back to summary |
|---|---|
private TexturePacker.
| |
| packPage | back to summary |
|---|---|
| private TexturePacker. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv final int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final boolean | |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int |
| current | back to summary |
|---|---|
| pack-priv int current | |
| fuzziness | back to summary |
|---|---|
| pack-priv final int fuzziness | |
| high | back to summary |
|---|---|
| pack-priv int high | |
| low | back to summary |
|---|---|
| pack-priv int low | |
| max | back to summary |
|---|---|
| pack-priv final int max | |
| min | back to summary |
|---|---|
| pack-priv final int min | |
| mod4 | back to summary |
|---|---|
| pack-priv final boolean mod4 | |
| pot | back to summary |
|---|---|
| pack-priv final boolean pot | |
| BinarySearch | back to summary |
|---|---|
| public BinarySearch(int min, int max, int fuzziness, boolean pot, boolean mod4) | |
| next | back to summary |
|---|---|
| public int next(boolean result) | |
| reset | back to summary |
|---|---|
| public int reset() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final MaxRectsPacker. | BestAreaFit
BAF: Positions the rectangle into the smallest free rect into which it fits. |
| public static final MaxRectsPacker. | BestLongSideFit
BLSF: Positions the rectangle against the long side of a free rectangle into which it fits the best. |
| public static final MaxRectsPacker. | BestShortSideFit
BSSF: Positions the rectangle against the short side of a free rectangle into which it fits the best. |
| public static final MaxRectsPacker. | BottomLeftRule
BL: Does the Tetris placement. |
| public static final MaxRectsPacker. | ContactPointRule
CP: Choosest the placement where the rectangle touches other rects as much as possible. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MaxRectsPacker. | |
| public static MaxRectsPacker. |
| BestAreaFit | back to summary |
|---|---|
| public static final MaxRectsPacker. BAF: Positions the rectangle into the smallest free rect into which it fits. | |
| BestLongSideFit | back to summary |
|---|---|
| public static final MaxRectsPacker. BLSF: Positions the rectangle against the long side of a free rectangle into which it fits the best. | |
| BestShortSideFit | back to summary |
|---|---|
| public static final MaxRectsPacker. BSSF: Positions the rectangle against the short side of a free rectangle into which it fits the best. | |
| BottomLeftRule | back to summary |
|---|---|
| public static final MaxRectsPacker. BL: Does the Tetris placement. | |
| ContactPointRule | back to summary |
|---|---|
| public static final MaxRectsPacker. CP: Choosest the placement where the rectangle touches other rects as much as possible. | |
| FreeRectChoiceHeuristic | back to summary |
|---|---|
| private FreeRectChoiceHeuristic() | |
| valueOf | back to summary |
|---|---|
| public static MaxRectsPacker. | |
| values | back to summary |
|---|---|
| public static MaxRectsPacker. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private final Array | |
| private final Array | |
| private final Array |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| private TexturePacker. | findPositionForNewNodeBestAreaFit(int width, int height, int rotatedWidth, int rotatedHeight, boolean rotate)
|
| private TexturePacker. | findPositionForNewNodeBestLongSideFit(int width, int height, int rotatedWidth, int rotatedHeight, boolean rotate)
|
| private TexturePacker. | findPositionForNewNodeBestShortSideFit(int width, int height, int rotatedWidth, int rotatedHeight, boolean rotate)
|
| private TexturePacker. | findPositionForNewNodeBottomLeft(int width, int height, int rotatedWidth, int rotatedHeight, boolean rotate)
|
| private TexturePacker. | findPositionForNewNodeContactPoint(int width, int height, int rotatedWidth, int rotatedHeight, boolean rotate)
|
| private float | |
| public TexturePacker. | |
| public void | |
| public TexturePacker. | |
| private boolean | |
| public TexturePacker. | pack(Array<TexturePacker.
For each rectangle, packs each one then chooses the best and packs that. |
| private void | |
| private void | |
| private TexturePacker. | |
| private boolean |
| binHeight | back to summary |
|---|---|
| private int binHeight | |
| binWidth | back to summary |
|---|---|
| private int binWidth | |
| freeRectangles | back to summary |
|---|---|
| private final Array<TexturePacker. | |
| rectanglesToCheckWhenPruning | back to summary |
|---|---|
| private final Array<TexturePacker. | |
| usedRectangles | back to summary |
|---|---|
| private final Array<TexturePacker. | |
| MaxRects | back to summary |
|---|---|
| pack-priv MaxRects() | |
| commonIntervalLength | back to summary |
|---|---|
| private int commonIntervalLength(int i1start, int i1end, int i2start, int i2end) | |
| contactPointScoreNode | back to summary |
|---|---|
| private int contactPointScoreNode(int x, int y, int width, int height) | |
| findPositionForNewNodeBestAreaFit | back to summary |
|---|---|
| private TexturePacker. | |
| findPositionForNewNodeBestLongSideFit | back to summary |
|---|---|
| private TexturePacker. | |
| findPositionForNewNodeBestShortSideFit | back to summary |
|---|---|
| private TexturePacker. | |
| findPositionForNewNodeBottomLeft | back to summary |
|---|---|
| private TexturePacker. | |
| findPositionForNewNodeContactPoint | back to summary |
|---|---|
| private TexturePacker. | |
| getOccupancy | back to summary |
|---|---|
| private float getOccupancy() | |
| getResult | back to summary |
|---|---|
| public TexturePacker. | |
| init | back to summary |
|---|---|
| public void init(int width, int height) | |
| insert | back to summary |
|---|---|
| public TexturePacker. Packs a single image. Order is defined externally. | |
| isContainedIn | back to summary |
|---|---|
| private boolean isContainedIn(TexturePacker. | |
| pack | back to summary |
|---|---|
| public TexturePacker. For each rectangle, packs each one then chooses the best and packs that. | |
| placeRect | back to summary |
|---|---|
| private void placeRect(TexturePacker. | |
| pruneFreeList | back to summary |
|---|---|
| private void pruneFreeList() | |
| scoreRect | back to summary |
|---|---|
| private TexturePacker. | |
| splitFreeNode | back to summary |
|---|---|
| private boolean splitFreeNode(TexturePacker. | |