ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Grim::ModelNode Class Reference

#include <model.h>

Collaboration diagram for Grim::ModelNode:

List of all members.

Public Member Functions

 ModelNode ()
 ~ModelNode ()
void loadBinary (Common::SeekableReadStream *data, ModelNode *hierNodes, const Model::Geoset *g)
void draw () const
void getBoundingBox (int *x1, int *y1, int *x2, int *y2) const
void addChild (ModelNode *child)
void removeChild (ModelNode *child)
void setMatrix (const Math::Matrix4 &matrix)
void update ()
void addSprite (Sprite *sprite)
void removeSprite (const Sprite *sprite)
void translateViewpoint () const
void translateViewpointStart () const
void translateViewpointFinish () const

Public Attributes

char _name [64]
Mesh_mesh
int _flags
 A value of 0x100 (256) specifies that when animating this node, keyframes should not be interpolated (lerped), but instead the transition from source to target is to occur discretely.
int _type
 Each KeyFrameAnim has a type identifier.
int _depth
int _numChildren
ModelNode_parent
ModelNode_child
ModelNode_sibling
Math::Vector3d _pos
Math::Vector3d _pivot
Math::Quaternion _rot
Math::Vector3d _animPos
Math::Quaternion _animRot
bool _meshVisible
bool _hierVisible
bool _initialized
bool _needsUpdate
Math::Matrix4 _matrix
Math::Matrix4 _localMatrix
Math::Matrix4 _pivotMatrix
Sprite_sprite

Detailed Description

Definition at line 158 of file model.h.


Constructor & Destructor Documentation

Grim::ModelNode::ModelNode (  ) 

Definition at line 581 of file model.cpp.

Grim::ModelNode::~ModelNode (  ) 

Definition at line 588 of file model.cpp.


Member Function Documentation

void Grim::ModelNode::addChild ( ModelNode child  ) 

Definition at line 709 of file model.cpp.

void Grim::ModelNode::addSprite ( Sprite sprite  ) 

Definition at line 763 of file model.cpp.

void Grim::ModelNode::draw (  )  const

Definition at line 643 of file model.cpp.

void Grim::ModelNode::getBoundingBox ( int *  x1,
int *  y1,
int *  x2,
int *  y2 
) const

Definition at line 680 of file model.cpp.

void Grim::ModelNode::loadBinary ( Common::SeekableReadStream data,
ModelNode hierNodes,
const Model::Geoset g 
)

Definition at line 596 of file model.cpp.

void Grim::ModelNode::removeChild ( ModelNode child  ) 

Definition at line 717 of file model.cpp.

void Grim::ModelNode::removeSprite ( const Sprite sprite  ) 

Definition at line 768 of file model.cpp.

void Grim::ModelNode::setMatrix ( const Math::Matrix4 matrix  ) 

Definition at line 727 of file model.cpp.

void Grim::ModelNode::translateViewpoint (  )  const

Definition at line 783 of file model.cpp.

void Grim::ModelNode::translateViewpointFinish (  )  const

Definition at line 795 of file model.cpp.

void Grim::ModelNode::translateViewpointStart (  )  const

Definition at line 791 of file model.cpp.

void Grim::ModelNode::update (  ) 

Definition at line 733 of file model.cpp.


Member Data Documentation

Definition at line 196 of file model.h.

Definition at line 190 of file model.h.

Definition at line 189 of file model.h.

A value of 0x100 (256) specifies that when animating this node, keyframes should not be interpolated (lerped), but instead the transition from source to target is to occur discretely.

Definition at line 182 of file model.h.

Definition at line 198 of file model.h.

Definition at line 199 of file model.h.

Definition at line 201 of file model.h.

Definition at line 176 of file model.h.

Definition at line 198 of file model.h.

Definition at line 175 of file model.h.

Definition at line 200 of file model.h.

Definition at line 189 of file model.h.

Definition at line 190 of file model.h.

Definition at line 193 of file model.h.

Definition at line 193 of file model.h.

Definition at line 194 of file model.h.

Definition at line 190 of file model.h.

Definition at line 204 of file model.h.

Each KeyFrameAnim has a type identifier.

This type field is a bitmask which is ANDed againts the type in the KeyFrameAnim to control which KeyFrameAnims animate on which nodes of the character. This enables selectively controlling the animations to act only on certain bones.

Definition at line 188 of file model.h.


The documentation for this class was generated from the following files:


Generated on Sat Sep 14 2019 05:04:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge