OpenMW
Public Member Functions | Public Attributes
Nif::Node Class Reference

#include <node.hpp>

List of all members.

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

Detailed Description

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.


Member Function Documentation

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]

Member Data Documentation

Ogre::Vector3 Nif::Node::boundPos
Ogre::Matrix3 Nif::Node::boundRot
Ogre::Vector3 Nif::Node::boundXYZ
Ogre::Vector3 Nif::Node::velocity

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