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

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

Definition at line 46 of file atlasbook.h.

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

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:

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:

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:

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:

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:

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

uint32_t FIFE::AtlasBlock::bottom

Definition at line 44 of file atlasbook.h.

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

uint32_t FIFE::AtlasBlock::left
uint32_t FIFE::AtlasBlock::page
uint32_t FIFE::AtlasBlock::right

Definition at line 44 of file atlasbook.h.

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

uint32_t FIFE::AtlasBlock::top

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