|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Represents an equipped item on a character model. More...
#include <WoWItem.h>
Public Member Functions | |
| WoWItem (CharSlots slot) | |
| void | setId (int id) |
| int | id () const |
| void | setDisplayId (int id) |
| void | setLevel (int level) |
| void | setModifierId (int id) |
| CharSlots | slot () const |
| int | quality () const |
| void | refresh () |
| void | onParentSet (Component *) override |
| Called after the parent has been set; override for custom logic. | |
| void | load () |
| unsigned int | nbLevels () const |
| std::map< POSITION_SLOTS, WoWModel * > | models () const |
| void | save (pugi::xml_node &parentNode) const |
| void | load (const std::string &filepath) |
Public Member Functions inherited from Component | |
| Component () | |
| virtual | ~Component () |
| virtual bool | addChild (Component *) |
| Add a child component to this node. | |
| virtual bool | removeChild (Component *) |
| Remove a child component from this node. | |
| virtual void | removeAllChildren () |
| virtual unsigned int | nbChildren () const |
| virtual bool | findChildComponent (Component *, bool) |
| virtual Component * | getChild (unsigned int) |
| virtual const Component * | getChild (unsigned int) const |
| void | setParentComponent (Component *) |
| Set the parent of this component. | |
| const Component * | parent () const |
| Get the parent component (const). | |
| Component * | parent () |
| Get the parent component. | |
| template<class DataType > | |
| const DataType * | firstParentOfType () |
| Walk up the parent chain and return the first ancestor of the given type. | |
| void | ref () |
| Increment the reference counter. | |
| void | unref () |
| Decrement the reference counter; deletes this when it reaches zero. | |
| void | setName (const std::string &name) |
| std::string | name () const |
| virtual void | onNameChanged () |
| void | print (int l_depth=0) |
| virtual void | doPrint () |
| void | copy (const Component &component, bool) |
Private Member Functions | |
| void | unload () |
| bool | isCustomizableTabard () const |
| void | updateItemModel (POSITION_SLOTS pos, int modelId, int textureId) |
| void | mergeModel (CharSlots slot, int modelId, int textureId) |
| CharRegions | getRegionForTexture (GameFile *file) const |
| int | getCustomModelId (size_t index) const |
| int | getCustomTextureId (size_t index) const |
Private Attributes | |
| WoWModel * | charModel_ = nullptr |
| int | id_ = -1 |
| int | displayId_ = -1 |
| int | quality_ = 0 |
| int | level_ = 0 |
| int | type_ = 0 |
| int | displayFlags_ = 0 |
| unsigned int | nbLevels_ = 0 |
| CharSlots | slot_ |
| std::map< CharRegions, GameFile * > | itemTextures_ |
| std::map< CharGeosets, int > | itemGeosets_ |
| std::map< int, int > | levelDisplayMap_ |
| std::map< int, int > | modifierIdDisplayMap_ |
| std::map< POSITION_SLOTS, WoWModel * > | itemModels_ |
| WoWModel * | mergedModel_ = nullptr |
Static Private Attributes | |
| static std::map< CharSlots, int > | SLOT_LAYERS_ |
| static std::map< std::string, int > | MODELID_OFFSETS_ |
Represents an equipped item on a character model.
Handles item display lookup, model attachment, texture composition, and geoset visibility for a single equipment slot.
| WoWItem::WoWItem | ( | CharSlots | slot | ) |
|
private |
Definition at line 1152 of file WoWItem.cpp.
|
private |
Definition at line 1230 of file WoWItem.cpp.
|
private |
Definition at line 998 of file WoWItem.cpp.
|
inline |
|
private |
| void WoWItem::load | ( | ) |
Definition at line 204 of file WoWItem.cpp.
| void WoWItem::load | ( | const std::string & | filepath | ) |
|
private |
Definition at line 969 of file WoWItem.cpp.
|
inline |
|
overridevirtual |
Called after the parent has been set; override for custom logic.
Reimplemented from Component.
Definition at line 166 of file WoWItem.cpp.
| void WoWItem::refresh | ( | ) |
| void WoWItem::save | ( | pugi::xml_node & | parentNode | ) | const |
| void WoWItem::setDisplayId | ( | int | id | ) |
Definition at line 112 of file WoWItem.cpp.
| void WoWItem::setId | ( | int | id | ) |
Definition at line 34 of file WoWItem.cpp.
| void WoWItem::setLevel | ( | int | level | ) |
Definition at line 123 of file WoWItem.cpp.
| void WoWItem::setModifierId | ( | int | id | ) |
|
inline |
|
private |
Definition at line 171 of file WoWItem.cpp.
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |