|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Scene-graph node that attaches a Displayable to a parent bone slot. More...
#include <Attachment.h>
Public Member Functions | |
| Attachment (Attachment *parent, Displayable *model, int id, int slot) | |
| ~Attachment () | |
| void | setup () |
| void | setupParticle () |
| Attachment * | addChild (std::string fn, int id, int slot) |
| Attachment * | addChild (Displayable *disp, int id, int slot) |
| void | delSlot (int slot) |
| void | delChildren () |
| void | draw () |
| void | drawParticles () |
| void | tick (float dt) |
| void | setModel (Displayable *newmodel) |
| Displayable * | model () const |
Public Attributes | |
| Attachment * | parent |
| std::vector< Attachment * > | children |
| int | id |
| int | slot |
Private Attributes | |
| Displayable * | model_ |
Scene-graph node that attaches a Displayable to a parent bone slot.
Forms a tree of model attachments (e.g. character → weapon → enchant glow). Each node owns its children and delegates draw/tick calls down the tree.
Definition at line 20 of file Attachment.h.
| Attachment::Attachment | ( | Attachment * | parent, |
| Displayable * | model, | ||
| int | id, | ||
| int | slot | ||
| ) |
| Attachment::~Attachment | ( | ) |
| Attachment * Attachment::addChild | ( | Displayable * | disp, |
| int | id, | ||
| int | slot | ||
| ) |
Definition at line 109 of file Attachment.cpp.
| Attachment * Attachment::addChild | ( | std::string | fn, |
| int | id, | ||
| int | slot | ||
| ) |
Definition at line 95 of file Attachment.cpp.
| void Attachment::delChildren | ( | ) |
| void Attachment::delSlot | ( | int | slot | ) |
| void Attachment::draw | ( | ) |
| void Attachment::drawParticles | ( | ) |
|
inline |
| void Attachment::setModel | ( | Displayable * | newmodel | ) |
| void Attachment::setup | ( | ) |
Definition at line 79 of file Attachment.cpp.
| void Attachment::setupParticle | ( | ) |
Definition at line 87 of file Attachment.cpp.
| void Attachment::tick | ( | float | dt | ) |
| std::vector<Attachment*> Attachment::children |
Definition at line 42 of file Attachment.h.
| int Attachment::id |
Definition at line 44 of file Attachment.h.
|
private |
Definition at line 48 of file Attachment.h.
| Attachment* Attachment::parent |
Definition at line 40 of file Attachment.h.
| int Attachment::slot |
Definition at line 45 of file Attachment.h.