The TileList class.
More...
#include <tile_list.hpp>
◆ TileList() [1/2]
pic::TileList::TileList |
( |
| ) |
|
◆ TileList() [2/2]
pic::TileList::TileList |
( |
int |
tileSize, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
TileList creates a list of tiles.
- Parameters
-
tileSize | is the width and height of a tile in pixels. |
width | is the horizontal size of the original image in pixels. |
height | is the vertical size of the original image in pixels. |
◆ ~TileList()
pic::TileList::~TileList |
( |
| ) |
|
◆ create()
void pic::TileList::create |
( |
int |
tileSize, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Create creates a list of tiles.
- Parameters
-
tileSize | is the width and height of a tile in pixels. |
width | is the horizontal size of the original image in pixels. |
height | is the vertical size of the original image in pixels. |
◆ getBBox()
BBox pic::TileList::getBBox |
( |
int |
index | ) |
|
genBBox
- Parameters
-
- Returns
◆ getNext()
uint pic::TileList::getNext |
( |
| ) |
|
getNext returns the index of the next tile to process.
- Returns
- This function returns the index of the next tile to proces.
◆ read()
bool pic::TileList::read |
( |
std::string |
name, |
|
|
bool |
flag |
|
) |
| |
read loads a TileList from a file.
- Parameters
-
name | is the file name. |
flag | is a boolean value. If it is true, this loads an Image from the tile name. Otherwise, an Image of the tile size is allocated. |
- Returns
- This function returns true if it is successfull.
◆ resetCounter()
void pic::TileList::resetCounter |
( |
| ) |
|
resetCounter sets the counter to zero.
◆ size()
uint pic::TileList::size |
( |
| ) |
|
◆ write()
bool pic::TileList::write |
( |
std::string |
name | ) |
|
write saves a TileList into a file.
- Parameters
-
- Returns
- This function returns true if it is successfull.
◆ writeIntoMemory()
void pic::TileList::writeIntoMemory |
( |
Image * |
output | ) |
|
writeIntoMemory copies tiles inside an output image.
- Parameters
-
output | is the Image where tiles will be copied to. |
◆ counter
uint pic::TileList::counter |
|
protected |
◆ h_tile
int pic::TileList::h_tile |
◆ height
int pic::TileList::height |
◆ mod_h
◆ mod_w
◆ mutex
std::mutex pic::TileList::mutex |
|
protected |
◆ tiles
std::vector<Tile> pic::TileList::tiles |
◆ w_tile
int pic::TileList::w_tile |
◆ width
The documentation for this class was generated from the following file:
- C:/Users/Francesco/Documents/GitHub/piccante/include/util/tile_list.hpp