FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
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

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

Definition at line 111 of file atlasbook.h.

Constructor & Destructor Documentation

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

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

Definition at line 99 of file atlasbook.h.

References FIFE::AtlasBlock::intersects().

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

Definition at line 95 of file atlasbook.h.

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().

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

Member Data Documentation

Blocks FIFE::AtlasPage::blocks
private

Definition at line 112 of file atlasbook.h.

int32_t FIFE::AtlasPage::freePixels
private

Definition at line 109 of file atlasbook.h.

uint32_t FIFE::AtlasPage::height
private

Definition at line 106 of file atlasbook.h.

uint32_t FIFE::AtlasPage::page
private

Definition at line 108 of file atlasbook.h.

uint32_t FIFE::AtlasPage::pixelSize
private

Definition at line 107 of file atlasbook.h.

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: