|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Manages character customisation options (skin, face, hair, etc.). More...
#include <CharDetails.h>
Classes | |
| class | CustomizationElements |
| class | TextureCustomization |
Public Types | |
| enum | BaseSectionType { SkinBaseType = 0 , FaceBaseType = 1 , FacialHairBaseType = 2 , HairBaseType = 3 , UnderwearBaseType = 4 , Custom1BaseType = 5 , Custom2BaseType = 6 , Custom3BaseType = 7 } |
| enum | SectionType { SkinType = 0 , FaceType = 1 , FacialHairType = 2 , HairType = 3 , UnderwearType = 4 , SkinTypeHD = 5 , FaceTypeHD = 6 , FacialHairTypeHD = 7 , HairTypeHD = 8 , UnderwearTypeHD = 9 , Custom1Type = 11 , Custom1TypeHD = 12 , Custom2Type = 13 , Custom2TypeHD = 14 , Custom3Type = 15 , Custom3TypeHD = 16 } |
| enum | CustomizationType { SKIN_COLOR = 0 , FACE = 1 , FACIAL_CUSTOMIZATION_STYLE = 2 , FACIAL_CUSTOMIZATION_COLOR = 3 , ADDITIONAL_FACIAL_CUSTOMIZATION = 4 , CUSTOM1_STYLE = 5 , CUSTOM1_COLOR = 8 , CUSTOM2_STYLE = 6 , CUSTOM3_STYLE = 7 } |
Public Member Functions | |
| CharDetails () | |
| void | save (pugi::xml_node &parentNode) |
| void | load (const std::string &filepath) |
| void | reset (WoWModel *m=nullptr) |
| void | randomise () |
| uint | get (uint chrCustomizationOptionID) const |
| void | set (uint chrCustomizationOptionID, uint chrCustomizationChoiceID) |
| std::vector< uint > | getCustomizationChoices (const uint chrCustomizationOptionID) |
| void | setDemonHunterMode (bool val) |
| bool | isDemonHunter () const |
| void | refresh () |
Public Member Functions inherited from Observable | |
| Observable () | |
| virtual | ~Observable () |
| void | attach (Observer *) |
| Subscribe an observer to receive events from this object. | |
| void | detach (Observer *) |
| Unsubscribe an observer. | |
Public Attributes | |
| EyeGlowTypes | eyeGlowType |
| bool | showUnderwear |
| bool | showEars |
| bool | showHair |
| bool | showFacialHair |
| bool | showFeet |
| bool | autoHideGeosetsForHeadItems |
| bool | isNPC |
| std::map< uint, uint > | geosets |
| std::vector< TextureCustomization > | textures |
Private Member Functions | |
| void | fillCustomizationMap () |
| void | fillCustomizationMapForOption (uint chrCustomizationOption) |
| void | rebuildAllCustomizationElements () |
| void | refreshGeosets () |
| void | refreshTextures () |
| void | refreshSkinnedModels () |
Static Private Member Functions | |
| static int | bitMaskToSectionType (int mask) |
Private Attributes | |
| WoWModel * | model_ |
| bool | isDemonHunter_ |
| std::map< uint, uint > | currentCustomization_ |
| std::map< uint, std::vector< uint > > | choicesPerOptionMap_ |
| std::set< uint > | defaultOptionIds_ |
| std::map< uint, CustomizationElements > | customizationElementsPerOption_ |
| std::vector< std::pair< uint, std::pair< uint, uint > > > | models_ |
Additional Inherited Members | |
Protected Member Functions inherited from Observable | |
| void | notify (Event &) |
| Broadcast an event to all attached observers. | |
Manages character customisation options (skin, face, hair, etc.).
Maintains the current selection indices for each customisation slot and notifies observers when selections change so textures can be rebuilt.
Definition at line 29 of file CharDetails.h.
| Enumerator | |
|---|---|
| SkinBaseType | |
| FaceBaseType | |
| FacialHairBaseType | |
| HairBaseType | |
| UnderwearBaseType | |
| Custom1BaseType | |
| Custom2BaseType | |
| Custom3BaseType | |
Definition at line 35 of file CharDetails.h.
| Enumerator | |
|---|---|
| SKIN_COLOR | |
| FACE | |
| FACIAL_CUSTOMIZATION_STYLE | |
| FACIAL_CUSTOMIZATION_COLOR | |
| ADDITIONAL_FACIAL_CUSTOMIZATION | |
| CUSTOM1_STYLE | |
| CUSTOM1_COLOR | |
| CUSTOM2_STYLE | |
| CUSTOM3_STYLE | |
Definition at line 68 of file CharDetails.h.
Definition at line 48 of file CharDetails.h.
| CharDetails::CharDetails | ( | ) |
Definition at line 388 of file CharDetails.cpp.
|
private |
Definition at line 144 of file CharDetails.cpp.
Definition at line 188 of file CharDetails.cpp.
|
inline |
Definition at line 40 of file CharDetails.cpp.
| void CharDetails::randomise | ( | ) |
|
private |
Definition at line 270 of file CharDetails.cpp.
| void CharDetails::refresh | ( | ) |
Definition at line 404 of file CharDetails.cpp.
|
private |
Definition at line 412 of file CharDetails.cpp.
|
private |
Definition at line 496 of file CharDetails.cpp.
|
private |
Definition at line 467 of file CharDetails.cpp.
Definition at line 90 of file CharDetails.cpp.
| void CharDetails::save | ( | pugi::xml_node & | parentNode | ) |
Definition at line 20 of file CharDetails.cpp.
Definition at line 227 of file CharDetails.cpp.
Definition at line 112 of file CharDetails.h.
| bool CharDetails::autoHideGeosetsForHeadItems |
Definition at line 93 of file CharDetails.h.
Definition at line 147 of file CharDetails.h.
Definition at line 123 of file CharDetails.h.
|
private |
Definition at line 151 of file CharDetails.h.
|
private |
Definition at line 149 of file CharDetails.h.
| EyeGlowTypes CharDetails::eyeGlowType |
Definition at line 91 of file CharDetails.h.
Definition at line 97 of file CharDetails.h.
|
private |
Definition at line 121 of file CharDetails.h.
| bool CharDetails::isNPC |
Definition at line 95 of file CharDetails.h.
|
private |
Definition at line 120 of file CharDetails.h.
Definition at line 153 of file CharDetails.h.
| bool CharDetails::showEars |
Definition at line 93 of file CharDetails.h.
| bool CharDetails::showFacialHair |
Definition at line 93 of file CharDetails.h.
| bool CharDetails::showFeet |
Definition at line 93 of file CharDetails.h.
| bool CharDetails::showHair |
Definition at line 93 of file CharDetails.h.
| bool CharDetails::showUnderwear |
Definition at line 93 of file CharDetails.h.
| std::vector<TextureCustomization> CharDetails::textures |
Definition at line 98 of file CharDetails.h.