FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::AtlasBlock Class Reference

#include <atlasbook.h>

+ Collaboration diagram for FIFE::AtlasBlock:

Public Member Functions

 AtlasBlock (const Rect &rect, uint32_t page)
 
 AtlasBlock ()
 
void setTrivial ()
 
bool isTrivial () const
 
uint32_t getWidth () const
 
uint32_t getHeight () const
 
AtlasBlock intersects (AtlasBlock const &rect) const
 
void merge (AtlasBlock const &rect)
 

Public Attributes

uint32_t page
 
uint32_t left
 
uint32_t right
 
uint32_t top
 
uint32_t bottom
 

Detailed Description

Definition at line 41 of file atlasbook.h.

Constructor & Destructor Documentation

◆ AtlasBlock() [1/2]

FIFE::AtlasBlock::AtlasBlock ( const Rect rect,
uint32_t  page 
)
inline

Definition at line 46 of file atlasbook.h.

◆ AtlasBlock() [2/2]

FIFE::AtlasBlock::AtlasBlock ( )
inline

Definition at line 52 of file atlasbook.h.

Referenced by FIFE::AtlasPage::getBlock().

+ Here is the caller graph for this function:

Member Function Documentation

◆ getHeight()

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

Definition at line 78 of file atlasbook.h.

References intersects(), merge(), and top.

Referenced by FIFE::AtlasPage::getBlock(), isTrivial(), FIFE::GuiImageLoader::load(), and FIFE::AtlasPage::shrink().

+ Here is the caller graph for this function:

◆ getWidth()

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

Definition at line 77 of file atlasbook.h.

References left.

Referenced by FIFE::AtlasPage::getBlock(), isTrivial(), FIFE::GuiImageLoader::load(), and FIFE::AtlasPage::shrink().

+ Here is the caller graph for this function:

◆ intersects()

AtlasBlock FIFE::AtlasBlock::intersects ( AtlasBlock const &  rect) const

Definition at line 31 of file atlasbook.cpp.

References bottom, left, right, setTrivial(), and top.

Referenced by FIFE::AtlasPage::getBlock(), getHeight(), FIFE::AtlasPage::getHeight(), and FIFE::AtlasPage::intersects().

+ Here is the caller graph for this function:

◆ isTrivial()

bool FIFE::AtlasBlock::isTrivial ( ) const
inline

Definition at line 73 of file atlasbook.h.

References getHeight(), and getWidth().

Referenced by FIFE::AtlasPage::intersects().

+ Here is the caller graph for this function:

◆ merge()

void FIFE::AtlasBlock::merge ( AtlasBlock const &  rect)

Definition at line 46 of file atlasbook.cpp.

References bottom, left, right, and top.

Referenced by getHeight(), and FIFE::AtlasPage::shrink().

+ Here is the caller graph for this function:

◆ setTrivial()

void FIFE::AtlasBlock::setTrivial ( )
inline

Definition at line 69 of file atlasbook.h.

Referenced by intersects().

+ Here is the caller graph for this function:

Member Data Documentation

◆ bottom

uint32_t FIFE::AtlasBlock::bottom

Definition at line 44 of file atlasbook.h.

Referenced by FIFE::AtlasPage::getBlock(), intersects(), and merge().

◆ left

uint32_t FIFE::AtlasBlock::left

◆ page

uint32_t FIFE::AtlasBlock::page

◆ right

uint32_t FIFE::AtlasBlock::right

Definition at line 44 of file atlasbook.h.

Referenced by FIFE::AtlasPage::getBlock(), intersects(), and merge().

◆ top

uint32_t FIFE::AtlasBlock::top

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