OpenMW
|
#include <node.hpp>
Public Member Functions | |
void | read (NIFStream *nif) |
Parses the record from file. | |
void | post (NIFFile *nif) |
Does post-processing, after the entire tree is loaded. | |
void | makeRootBone (const NiSkinData::BoneTrafo *tr) |
void | makeBone (short ind, const NiSkinData::BoneInfo &bi) |
void | getProperties (const Nif::NiTexturingProperty *&texprop, const Nif::NiMaterialProperty *&matprop, const Nif::NiAlphaProperty *&alphaprop, const Nif::NiVertexColorProperty *&vertprop, const Nif::NiZBufferProperty *&zprop, const Nif::NiSpecularProperty *&specprop, const Nif::NiWireframeProperty *&wireprop) const |
Ogre::Matrix4 | getLocalTransform () const |
Ogre::Matrix4 | getWorldTransform () const |
Public Attributes | |
int | flags |
Transformation | trafo |
Ogre::Vector3 | velocity |
PropertyList | props |
bool | hasBounds |
Ogre::Vector3 | boundPos |
Ogre::Matrix3 | boundRot |
Ogre::Vector3 | boundXYZ |
NiNode * | parent |
const NiSkinData::BoneTrafo * | boneTrafo |
const NiSkinData::BoneInfo * | boneInfo |
short | boneIndex |
A Node is an object that's part of the main NIF tree. It has parent node (unless it's the root), and transformation (location and rotation) relative to it's parent.
Ogre::Matrix4 Nif::Node::getLocalTransform | ( | ) | const |
void Nif::Node::getProperties | ( | const Nif::NiTexturingProperty *& | texprop, |
const Nif::NiMaterialProperty *& | matprop, | ||
const Nif::NiAlphaProperty *& | alphaprop, | ||
const Nif::NiVertexColorProperty *& | vertprop, | ||
const Nif::NiZBufferProperty *& | zprop, | ||
const Nif::NiSpecularProperty *& | specprop, | ||
const Nif::NiWireframeProperty *& | wireprop | ||
) | const |
Ogre::Matrix4 Nif::Node::getWorldTransform | ( | ) | const |
void Nif::Node::makeBone | ( | short | ind, |
const NiSkinData::BoneInfo & | bi | ||
) | [inline] |
void Nif::Node::makeRootBone | ( | const NiSkinData::BoneTrafo * | tr | ) | [inline] |
void Nif::Node::post | ( | NIFFile * | nif | ) | [inline, virtual] |
Does post-processing, after the entire tree is loaded.
Reimplemented from Nif::Controlled.
Reimplemented in Nif::NiRotatingParticles, Nif::NiAutoNormalParticles, Nif::NiTriShape, Nif::NiNode, and Nif::NiTextureEffect.
void Nif::Node::read | ( | NIFStream * | nif | ) | [inline, virtual] |
Parses the record from file.
Reimplemented from Nif::Named.
Reimplemented in Nif::NiRotatingParticles, Nif::NiAutoNormalParticles, Nif::NiCamera, Nif::NiTriShape, Nif::NiNode, Nif::NiTextureEffect, and Nif::NiLight.
short Nif::Node::boneIndex |
Ogre::Vector3 Nif::Node::boundPos |
Ogre::Matrix3 Nif::Node::boundRot |
Ogre::Vector3 Nif::Node::boundXYZ |
int Nif::Node::flags |
bool Nif::Node::hasBounds |
Ogre::Vector3 Nif::Node::velocity |