OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions | Variables
Nif Namespace Reference

This file holds the main classes of NIF Records used by everything else. More...

Classes

class  Extra
 
class  Controller
 
class  Controlled
 Anything that has a controller. More...
 
class  Named
 Has name, extra-data and controller. More...
 
class  NiSourceTexture
 
class  NiParticleGrowFade
 
class  NiParticleColorModifier
 
class  NiGravity
 
class  NiPlanarCollider
 
class  NiSphericalCollider
 
class  NiParticleRotation
 
class  NiParticleSystemController
 
class  NiMaterialColorController
 
class  NiPathController
 
class  NiUVController
 
class  NiKeyframeController
 
class  NiAlphaController
 
class  NiGeomMorpherController
 
class  NiVisController
 
class  NiFlipController
 
class  ShapeData
 
class  NiTriShapeData
 
class  NiAutoNormalParticlesData
 
class  NiRotatingParticlesData
 
class  NiPosData
 
class  NiUVData
 
class  NiFloatData
 
class  NiPixelData
 
class  NiColorData
 
class  NiVisData
 
class  NiSkinInstance
 
class  NiSkinData
 
struct  NiMorphData
 
struct  NiKeyframeData
 
struct  NiDynamicEffect
 
struct  NiLight
 
struct  NiPointLight
 
struct  NiSpotLight
 
struct  NiTextureEffect
 
class  NiVertWeightsExtraData
 
class  NiTextKeyExtraData
 
class  NiStringExtraData
 
struct  RecordFactoryEntry
 
class  NIFFile
 
struct  KeyT
 
struct  KeyMapT
 
class  NIFStream
 
struct  Matrix3
 
struct  Transformation
 
class  Node
 
struct  NiNode
 
struct  NiTriShape
 
struct  NiCamera
 
struct  NiAutoNormalParticles
 
struct  NiRotatingParticles
 
struct  NiSwitchNode
 
struct  NiLODNode
 
class  Property
 
class  NiTexturingProperty
 
class  NiFogProperty
 
class  NiShadeProperty
 
class  NiDitherProperty
 
class  NiZBufferProperty
 
class  NiSpecularProperty
 
class  NiWireframeProperty
 
struct  StructPropT
 
struct  S_MaterialProperty
 
struct  S_VertexColorProperty
 
struct  S_AlphaProperty
 
struct  S_StencilProperty
 
class  NiAlphaProperty
 
class  NiMaterialProperty
 
class  NiVertexColorProperty
 
class  NiStencilProperty
 
struct  Record
 Base class for all records. More...
 
class  RecordPtrT
 
class  RecordListT
 

Typedefs

typedef Named NiSequenceStreamHelper
 
typedef NiParticleSystemController NiBSPArrayController
 
typedef boost::shared_ptr
< const Nif::NIFFile
NIFFilePtr
 
typedef KeyT< float > FloatKey
 
typedef KeyT< osg::Vec3f > Vector3Key
 
typedef KeyT< osg::Vec4f > Vector4Key
 
typedef KeyT< osg::Quat > QuaternionKey
 
typedef KeyMapT< float,&NIFStream::getFloatFloatKeyMap
 
typedef KeyMapT< osg::Vec3f,&NIFStream::getVector3Vector3KeyMap
 
typedef KeyMapT< osg::Vec4f,&NIFStream::getVector4Vector4KeyMap
 
typedef KeyMapT< osg::Quat,&NIFStream::getQuaternionQuaternionKeyMap
 
typedef boost::shared_ptr
< FloatKeyMap
FloatKeyMapPtr
 
typedef boost::shared_ptr
< Vector3KeyMap
Vector3KeyMapPtr
 
typedef boost::shared_ptr
< Vector4KeyMap
Vector4KeyMapPtr
 
typedef boost::shared_ptr
< QuaternionKeyMap
QuaternionKeyMapPtr
 
typedef RecordPtrT< NodeNodePtr
 
typedef RecordPtrT< ExtraExtraPtr
 
typedef RecordPtrT< NiUVDataNiUVDataPtr
 
typedef RecordPtrT< NiPosDataNiPosDataPtr
 
typedef RecordPtrT< NiVisDataNiVisDataPtr
 
typedef RecordPtrT< ControllerControllerPtr
 
typedef RecordPtrT< ControlledControlledPtr
 
typedef RecordPtrT< NiSkinDataNiSkinDataPtr
 
typedef RecordPtrT< NiMorphDataNiMorphDataPtr
 
typedef RecordPtrT< NiPixelDataNiPixelDataPtr
 
typedef RecordPtrT< NiFloatDataNiFloatDataPtr
 
typedef RecordPtrT< NiColorDataNiColorDataPtr
 
typedef RecordPtrT
< NiKeyframeData
NiKeyframeDataPtr
 
typedef RecordPtrT
< NiTriShapeData
NiTriShapeDataPtr
 
typedef RecordPtrT
< NiSkinInstance
NiSkinInstancePtr
 
typedef RecordPtrT
< NiSourceTexture
NiSourceTexturePtr
 
typedef RecordPtrT
< NiRotatingParticlesData
NiRotatingParticlesDataPtr
 
typedef RecordPtrT
< NiAutoNormalParticlesData
NiAutoNormalParticlesDataPtr
 
typedef RecordListT< NodeNodeList
 
typedef RecordListT< PropertyPropertyList
 
typedef RecordListT
< NiSourceTexture
NiSourceTextureList
 

Enumerations

enum  RecordType {
  RC_MISSING = 0, RC_NiNode, RC_NiSwitchNode, RC_NiLODNode,
  RC_NiBillboardNode, RC_AvoidNode, RC_NiTriShape, RC_NiRotatingParticles,
  RC_NiAutoNormalParticles, RC_NiBSParticleNode, RC_NiCamera, RC_NiTexturingProperty,
  RC_NiFogProperty, RC_NiMaterialProperty, RC_NiZBufferProperty, RC_NiAlphaProperty,
  RC_NiVertexColorProperty, RC_NiShadeProperty, RC_NiDitherProperty, RC_NiWireframeProperty,
  RC_NiSpecularProperty, RC_NiStencilProperty, RC_NiVisController, RC_NiGeomMorpherController,
  RC_NiKeyframeController, RC_NiAlphaController, RC_NiUVController, RC_NiPathController,
  RC_NiMaterialColorController, RC_NiBSPArrayController, RC_NiParticleSystemController, RC_NiFlipController,
  RC_NiBSAnimationNode, RC_NiLight, RC_NiTextureEffect, RC_NiVertWeightsExtraData,
  RC_NiTextKeyExtraData, RC_NiStringExtraData, RC_NiGravity, RC_NiPlanarCollider,
  RC_NiParticleGrowFade, RC_NiParticleColorModifier, RC_NiParticleRotation, RC_NiFloatData,
  RC_NiTriShapeData, RC_NiVisData, RC_NiColorData, RC_NiPixelData,
  RC_NiMorphData, RC_NiKeyframeData, RC_NiSkinData, RC_NiUVData,
  RC_NiPosData, RC_NiRotatingParticlesData, RC_NiAutoNormalParticlesData, RC_NiSequenceStreamHelper,
  RC_NiSourceTexture, RC_NiSkinInstance, RC_RootCollisionNode, RC_NiSphericalCollider
}
 

Functions

template<typename NodeType >
static Recordconstruct ()
 
static std::pair< std::string,
RecordFactoryEntry
makeEntry (std::string recName, Record *(*create_t)(), RecordType type)
 Helper function for adding records to the factory map. More...
 
static std::map< std::string,
RecordFactoryEntry
makeFactory ()
 These are all the record types we know how to read. More...
 

Variables

static const std::map
< std::string,
RecordFactoryEntry
factories = makeFactory()
 Make the factory map used for parsing the file. More...
 

Detailed Description

This file holds the main classes of NIF Records used by everything else.

Functions used to read raw binary data from .nif files.

File to handle keys used by nif file records.

Main header for reading .nif files.

Typedef Documentation

typedef KeyT<float> Nif::FloatKey
typedef boost::shared_ptr<FloatKeyMap> Nif::FloatKeyMapPtr
typedef boost::shared_ptr<const Nif::NIFFile> Nif::NIFFilePtr
typedef KeyT<osg::Quat> Nif::QuaternionKey
typedef boost::shared_ptr<QuaternionKeyMap> Nif::QuaternionKeyMapPtr
typedef KeyT<osg::Vec3f> Nif::Vector3Key
typedef boost::shared_ptr<Vector3KeyMap> Nif::Vector3KeyMapPtr
typedef KeyT<osg::Vec4f> Nif::Vector4Key
typedef boost::shared_ptr<Vector4KeyMap> Nif::Vector4KeyMapPtr

Enumeration Type Documentation

Enumerator
RC_MISSING 
RC_NiNode 
RC_NiSwitchNode 
RC_NiLODNode 
RC_NiBillboardNode 
RC_AvoidNode 
RC_NiTriShape 
RC_NiRotatingParticles 
RC_NiAutoNormalParticles 
RC_NiBSParticleNode 
RC_NiCamera 
RC_NiTexturingProperty 
RC_NiFogProperty 
RC_NiMaterialProperty 
RC_NiZBufferProperty 
RC_NiAlphaProperty 
RC_NiVertexColorProperty 
RC_NiShadeProperty 
RC_NiDitherProperty 
RC_NiWireframeProperty 
RC_NiSpecularProperty 
RC_NiStencilProperty 
RC_NiVisController 
RC_NiGeomMorpherController 
RC_NiKeyframeController 
RC_NiAlphaController 
RC_NiUVController 
RC_NiPathController 
RC_NiMaterialColorController 
RC_NiBSPArrayController 
RC_NiParticleSystemController 
RC_NiFlipController 
RC_NiBSAnimationNode 
RC_NiLight 
RC_NiTextureEffect 
RC_NiVertWeightsExtraData 
RC_NiTextKeyExtraData 
RC_NiStringExtraData 
RC_NiGravity 
RC_NiPlanarCollider 
RC_NiParticleGrowFade 
RC_NiParticleColorModifier 
RC_NiParticleRotation 
RC_NiFloatData 
RC_NiTriShapeData 
RC_NiVisData 
RC_NiColorData 
RC_NiPixelData 
RC_NiMorphData 
RC_NiKeyframeData 
RC_NiSkinData 
RC_NiUVData 
RC_NiPosData 
RC_NiRotatingParticlesData 
RC_NiAutoNormalParticlesData 
RC_NiSequenceStreamHelper 
RC_NiSourceTexture 
RC_NiSkinInstance 
RC_RootCollisionNode 
RC_NiSphericalCollider 

Function Documentation

template<typename NodeType >
static Record* Nif::construct ( )
static
static std::pair<std::string,RecordFactoryEntry> Nif::makeEntry ( std::string  recName,
Record *(*)()  create_t,
RecordType  type 
)
static

Helper function for adding records to the factory map.

Here is the caller graph for this function:

static std::map<std::string,RecordFactoryEntry> Nif::makeFactory ( )
static

These are all the record types we know how to read.

Here is the call graph for this function:

Variable Documentation

const std::map<std::string,RecordFactoryEntry> Nif::factories = makeFactory()
static

Make the factory map used for parsing the file.