#include <Pieces.h>
Collaboration diagram for PicBucket:
Public Slots | |
void | updateTexture (int gind) |
Signals | |
void | boundTexture (int index, QImage img) |
void | updateTexture (int index, QImage img) |
Public Member Functions | |
bool | loadXML (const QString &xmlname) |
load the main configuration xml. | |
Texture * | newTexture (QImage img, bool emitb=true) |
void | makeBitmapList () |
void | buildMeshes (const DisplayConf &dpc, bool showStop, GLWidget *listContext) |
int | SelectedCount () const |
const PicDef & | getPic (int gind, int pind) const |
void | setSwapEndians (int v) |
void | updateSwapEndian (int v) |
int | numDefs () const |
Static Public Member Functions | |
static void | CreateSingleton () |
static const PicBucket & | Instance () |
static PicBucket & | MutableInstance () |
Public Attributes | |
int | sumPics |
how many cubes, how many pics in total | |
QVector< PicGroupDef > | defs |
group definitions, inside them the piece definitions | |
QList< Texture * > | texs |
QVector< PicFamily > | families |
Private Member Functions | |
PicBucket () | |
private ctor, this is a singleton | |
Private Attributes | |
int | nSwapEndians |
Static Private Attributes | |
static PicBucket * | g_instance |
PicBucket is a singleton object which is created at startup according to the piece definition XML it contains all the data know about all the pieces the application is aware of, even if some of these pieces are not currently being used.
PicBucket::PicBucket | ( | ) | [inline, private] |
private ctor, this is a singleton
bool PicBucket::loadXML | ( | const QString & | xmlname | ) |
load the main configuration xml.
this is one of the first things that ever happen in the application
Texture * PicBucket::newTexture | ( | QImage | img, | |
bool | emitb = true | |||
) |
void PicBucket::CreateSingleton | ( | ) | [static] |
static const PicBucket& PicBucket::Instance | ( | ) | [inline, static] |
static PicBucket& PicBucket::MutableInstance | ( | ) | [inline, static] |
void PicBucket::makeBitmapList | ( | ) |
void PicBucket::buildMeshes | ( | const DisplayConf & | dpc, | |
bool | showStop, | |||
GLWidget * | listContext | |||
) |
int PicBucket::SelectedCount | ( | ) | const |
const PicDef& PicBucket::getPic | ( | int | gind, | |
int | pind | |||
) | const [inline] |
void PicBucket::setSwapEndians | ( | int | v | ) | [inline] |
void PicBucket::updateSwapEndian | ( | int | v | ) |
int PicBucket::numDefs | ( | ) | const [inline] |
void PicBucket::updateTexture | ( | int | gind | ) | [slot] |
void PicBucket::boundTexture | ( | int | index, | |
QImage | img | |||
) | [signal] |
void PicBucket::updateTexture | ( | int | index, | |
QImage | img | |||
) | [signal] |
how many cubes, how many pics in total
QVector<PicGroupDef> PicBucket::defs |
group definitions, inside them the piece definitions
QList<Texture*> PicBucket::texs |
QVector<PicFamily> PicBucket::families |
PicBucket * PicBucket::g_instance [static, private] |
int PicBucket::nSwapEndians [private] |