dtAnim::AttachmentController Class Reference

Stores a list of attachments for a cal model and can update their positions based each frame based on the position of the bones. More...

#include <attachmentcontroller.h>

List of all members.

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 AttachmentContainerGetAttachments () const
 
Returns:
an immutable container holding the current set of hot spots.

virtual void Update (Cal3DModelWrapper &model)
 Update the attachments to the new positions based on the model.

Protected Member Functions

virtual ~AttachmentController ()


Detailed Description

Stores a list of attachments for a cal model and can update their positions based each frame based on the position of the bones.

It may be subclassed to add additional features.


Member Typedef Documentation

typedef std::vector<AttachmentPair> dtAnim::AttachmentController::AttachmentContainer


Constructor & Destructor Documentation

dtAnim::AttachmentController::AttachmentController (  ) 

dtAnim::AttachmentController::~AttachmentController (  )  [protected, virtual]


Member Function Documentation

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.

See also:
dtCore::HotSpotAttachment

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.

See also:
dtCore::HotSpotAttachment

const AttachmentController::AttachmentContainer & dtAnim::AttachmentController::GetAttachments (  )  const

Returns:
an immutable container holding the current set of hot spots.

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.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008