FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::AtlasPage Class Reference

#include <atlasbook.h>

+ Collaboration diagram for FIFE::AtlasPage:

Public Member Functions

 AtlasPage (uint32_t width, uint32_t height, uint32_t pixelSize, uint32_t page)
 
AtlasBlockgetBlock (uint32_t width, uint32_t height)
 
void shrink (bool pot)
 
uint32_t getWidth () const
 
uint32_t getHeight () const
 

Private Types

typedef std::vector< AtlasBlockBlocks
 

Private Member Functions

AtlasBlock const * intersects (AtlasBlock const *block) const
 

Private Attributes

uint32_t width
 
uint32_t height
 
uint32_t pixelSize
 
uint32_t page
 
int32_t freePixels
 
Blocks blocks
 

Detailed Description

Definition at line 84 of file atlasbook.h.

Member Typedef Documentation

◆ Blocks

typedef std::vector<AtlasBlock> FIFE::AtlasPage::Blocks
private

Definition at line 111 of file atlasbook.h.

Constructor & Destructor Documentation

◆ AtlasPage()

FIFE::AtlasPage::AtlasPage ( uint32_t  width,
uint32_t  height,
uint32_t  pixelSize,
uint32_t  page 
)
inline

Definition at line 86 of file atlasbook.h.

Member Function Documentation

◆ getBlock()

◆ getHeight()

uint32_t FIFE::AtlasPage::getHeight ( ) const
inline

Definition at line 99 of file atlasbook.h.

References FIFE::AtlasBlock::intersects().

◆ getWidth()

uint32_t FIFE::AtlasPage::getWidth ( ) const
inline

Definition at line 95 of file atlasbook.h.

◆ intersects()

AtlasBlock const * FIFE::AtlasPage::intersects ( AtlasBlock const *  block) const
private

Definition at line 188 of file atlasbook.cpp.

References FIFE::AtlasBlock::intersects(), and FIFE::AtlasBlock::isTrivial().

◆ shrink()

void FIFE::AtlasPage::shrink ( bool  pot)

Member Data Documentation

◆ blocks

Blocks FIFE::AtlasPage::blocks
private

Definition at line 112 of file atlasbook.h.

◆ freePixels

int32_t FIFE::AtlasPage::freePixels
private

Definition at line 109 of file atlasbook.h.

◆ height

uint32_t FIFE::AtlasPage::height
private

Definition at line 106 of file atlasbook.h.

◆ page

uint32_t FIFE::AtlasPage::page
private

Definition at line 108 of file atlasbook.h.

◆ pixelSize

uint32_t FIFE::AtlasPage::pixelSize
private

Definition at line 107 of file atlasbook.h.

◆ width

uint32_t FIFE::AtlasPage::width
private

Definition at line 106 of file atlasbook.h.


The documentation for this class was generated from the following files: