#include <attachmentcontroller.h>
Public Types | |
| typedef std::vector < AttachmentPair > | AttachmentContainer |
Public Member Functions | |
| AttachmentController () | |
| void | AddAttachment (dtCore::Transformable &actor, dtUtil::HotSpotDefinition &spot) |
| Adds a hot spot attachment to the skeleton. | |
| void | RemoveAttachment (const dtCore::Transformable &actor) |
| Removes a previously added hot spot attachment. | |
| const AttachmentContainer & | GetAttachments () const |
| |
| virtual void | Update (Cal3DModelWrapper &model) |
| Update the attachments to the new positions based on the model. | |
Protected Member Functions | |
| virtual | ~AttachmentController () |
It may be subclassed to add additional features.
| typedef std::vector<AttachmentPair> dtAnim::AttachmentController::AttachmentContainer |
| dtAnim::AttachmentController::AttachmentController | ( | ) |
| dtAnim::AttachmentController::~AttachmentController | ( | ) | [protected, virtual] |
| void dtAnim::AttachmentController::AddAttachment | ( | dtCore::Transformable & | actor, | |
| dtUtil::HotSpotDefinition & | spot | |||
| ) |
Adds a hot spot attachment to the skeleton.
This will move the attachment each time the skeleton is updated.
| void dtAnim::AttachmentController::RemoveAttachment | ( | const dtCore::Transformable & | actor | ) |
Removes a previously added hot spot attachment.
If the spot is not in the container, this call is a no-op.
| const AttachmentController::AttachmentContainer & dtAnim::AttachmentController::GetAttachments | ( | ) | const |
| void dtAnim::AttachmentController::Update | ( | Cal3DModelWrapper & | model | ) | [virtual] |
Update the attachments to the new positions based on the model.
This may be overridden in a subclass to modify or update the behavior.