Crossfire Server, Trunk
CREPixmap Class Reference

#include <CREPixmap.h>

+ Collaboration diagram for CREPixmap:

Static Public Member Functions

static void clearFaceCache ()
 
static QIcon getIcon (uint16_t faceNumber)
 
static QIcon getTreasureIcon ()
 
static QIcon getTreasureNoIcon ()
 
static QIcon getTreasureOneIcon ()
 
static QIcon getTreasureYesIcon ()
 
static void init ()
 
static void setFaceset (const QString &prefix)
 
static void setUseFacesetFallback (bool use)
 

Static Public Attributes

static face_setsfaceset
 

Static Protected Member Functions

static QIcon getIcon (const face_sets *faceset, uint16_t faceNumber)
 

Static Protected Attributes

static QHash< uint16_t, QIcon > allFaces
 
static QIcon * myTreasureIcon
 
static QIcon * myTreasureNoIcon
 
static QIcon * myTreasureOneIcon
 
static QIcon * myTreasureYesIcon
 
static bool myUseFaceFallback = true
 

Detailed Description

Definition at line 8 of file CREPixmap.h.

Member Function Documentation

◆ clearFaceCache()

void CREPixmap::clearFaceCache ( )
static

Definition at line 50 of file CREPixmap.cpp.

References allFaces.

Referenced by CREMainWindow::onToolReloadAssets().

+ Here is the caller graph for this function:

◆ getIcon() [1/2]

QIcon CREPixmap::getIcon ( const face_sets faceset,
uint16_t  faceNumber 
)
staticprotected

Definition at line 60 of file CREPixmap.cpp.

References allFaces, face_sets::allocated, face_info::data, face_info::datalen, face_sets::faces, faceset, face_sets::fallback, getIcon(), myUseFaceFallback, and uchar.

+ Here is the call graph for this function:

◆ getIcon() [2/2]

◆ getTreasureIcon()

QIcon CREPixmap::getTreasureIcon ( )
static

Definition at line 82 of file CREPixmap.cpp.

References myTreasureIcon.

Referenced by CREUtils::treasureNode().

+ Here is the caller graph for this function:

◆ getTreasureNoIcon()

QIcon CREPixmap::getTreasureNoIcon ( )
static

Definition at line 100 of file CREPixmap.cpp.

References myTreasureNoIcon.

Referenced by CREUtils::treasureNode().

+ Here is the caller graph for this function:

◆ getTreasureOneIcon()

QIcon CREPixmap::getTreasureOneIcon ( )
static

Definition at line 88 of file CREPixmap.cpp.

References myTreasureOneIcon.

Referenced by CREUtils::treasureNode().

+ Here is the caller graph for this function:

◆ getTreasureYesIcon()

QIcon CREPixmap::getTreasureYesIcon ( )
static

Definition at line 94 of file CREPixmap.cpp.

References myTreasureYesIcon.

Referenced by CREUtils::treasureNode().

+ Here is the caller graph for this function:

◆ init()

void CREPixmap::init ( )
static

Definition at line 22 of file CREPixmap.cpp.

References faceset, AssetsManager::facesets(), AssetsCollection< T, Key >::get(), getManager(), myTreasureIcon, myTreasureNoIcon, myTreasureOneIcon, myTreasureYesIcon, myUseFaceFallback, and settings.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFaceset()

void CREPixmap::setFaceset ( const QString &  prefix)
static

Definition at line 34 of file CREPixmap.cpp.

References allFaces, faceset, AssetsManager::facesets(), AssetsCollection< T, Key >::get(), getManager(), castle_read::prefix, and settings.

Referenced by CREMainWindow::onToolFaceset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUseFacesetFallback()

void CREPixmap::setUseFacesetFallback ( bool  use)
static

Definition at line 42 of file CREPixmap.cpp.

References allFaces, myUseFaceFallback, and settings.

Referenced by CREMainWindow::onToolFacesetUseFallback().

+ Here is the caller graph for this function:

Field Documentation

◆ allFaces

QHash< uint16_t, QIcon > CREPixmap::allFaces
staticprotected

Definition at line 28 of file CREPixmap.h.

Referenced by clearFaceCache(), getIcon(), setFaceset(), and setUseFacesetFallback().

◆ faceset

face_sets * CREPixmap::faceset
static

Definition at line 13 of file CREPixmap.h.

Referenced by getIcon(), init(), FaceMakerDialog::makeFaces(), and setFaceset().

◆ myTreasureIcon

QIcon * CREPixmap::myTreasureIcon
staticprotected

Definition at line 29 of file CREPixmap.h.

Referenced by getTreasureIcon(), and init().

◆ myTreasureNoIcon

QIcon * CREPixmap::myTreasureNoIcon
staticprotected

Definition at line 32 of file CREPixmap.h.

Referenced by getTreasureNoIcon(), and init().

◆ myTreasureOneIcon

QIcon * CREPixmap::myTreasureOneIcon
staticprotected

Definition at line 30 of file CREPixmap.h.

Referenced by getTreasureOneIcon(), and init().

◆ myTreasureYesIcon

QIcon * CREPixmap::myTreasureYesIcon
staticprotected

Definition at line 31 of file CREPixmap.h.

Referenced by getTreasureYesIcon(), and init().

◆ myUseFaceFallback

bool CREPixmap::myUseFaceFallback = true
staticprotected

Definition at line 33 of file CREPixmap.h.

Referenced by getIcon(), init(), and setUseFacesetFallback().


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