OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
Nif::NIFStream Class Reference

#include <nifstream.hpp>

Collaboration diagram for Nif::NIFStream:

Public Member Functions

 NIFStream (NIFFile *file, Files::IStreamPtr inp)
 
void skip (size_t size)
 
char getChar ()
 
short getShort ()
 
unsigned short getUShort ()
 
int getInt ()
 
unsigned int getUInt ()
 
float getFloat ()
 
osg::Vec2f getVector2 ()
 
osg::Vec3f getVector3 ()
 
osg::Vec4f getVector4 ()
 
Matrix3 getMatrix3 ()
 
osg::Quat getQuaternion ()
 
Transformation getTrafo ()
 
std::string getString (size_t length)
 Read in a string of the given length. More...
 
std::string getString ()
 Read in a string of the length specified in the file. More...
 
std::string getVersionString ()
 This is special since the version string doesn't start with a number, and ends with "\n". More...
 
void getUShorts (std::vector< unsigned short > &vec, size_t size)
 
void getFloats (std::vector< float > &vec, size_t size)
 
void getVector2s (std::vector< osg::Vec2f > &vec, size_t size)
 
void getVector3s (std::vector< osg::Vec3f > &vec, size_t size)
 
void getVector4s (std::vector< osg::Vec4f > &vec, size_t size)
 
void getQuaternions (std::vector< osg::Quat > &quat, size_t size)
 

Public Attributes

NIFFile *const file
 

Private Attributes

Files::IStreamPtr inp
 Input stream. More...
 

Constructor & Destructor Documentation

Nif::NIFStream::NIFStream ( NIFFile file,
Files::IStreamPtr  inp 
)
inline

Member Function Documentation

char Nif::NIFStream::getChar ( )
inline

Here is the caller graph for this function:

float Nif::NIFStream::getFloat ( )
inline

Here is the caller graph for this function:

void Nif::NIFStream::getFloats ( std::vector< float > &  vec,
size_t  size 
)
inline

Here is the caller graph for this function:

int Nif::NIFStream::getInt ( )
inline

Here is the caller graph for this function:

Matrix3 Nif::NIFStream::getMatrix3 ( )
inline

Here is the caller graph for this function:

osg::Quat Nif::NIFStream::getQuaternion ( )

Here is the caller graph for this function:

void Nif::NIFStream::getQuaternions ( std::vector< osg::Quat > &  quat,
size_t  size 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

short Nif::NIFStream::getShort ( )
inline
std::string Nif::NIFStream::getString ( size_t  length)
inline

Read in a string of the given length.

Here is the caller graph for this function:

std::string Nif::NIFStream::getString ( )
inline

Read in a string of the length specified in the file.

Transformation Nif::NIFStream::getTrafo ( )

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int Nif::NIFStream::getUInt ( )
inline

Here is the caller graph for this function:

unsigned short Nif::NIFStream::getUShort ( )
inline

Here is the caller graph for this function:

void Nif::NIFStream::getUShorts ( std::vector< unsigned short > &  vec,
size_t  size 
)
inline

Here is the caller graph for this function:

osg::Vec2f Nif::NIFStream::getVector2 ( )
inline
void Nif::NIFStream::getVector2s ( std::vector< osg::Vec2f > &  vec,
size_t  size 
)
inline

Here is the caller graph for this function:

osg::Vec3f Nif::NIFStream::getVector3 ( )
inline

Here is the caller graph for this function:

void Nif::NIFStream::getVector3s ( std::vector< osg::Vec3f > &  vec,
size_t  size 
)
inline

Here is the caller graph for this function:

osg::Vec4f Nif::NIFStream::getVector4 ( )
inline

Here is the caller graph for this function:

void Nif::NIFStream::getVector4s ( std::vector< osg::Vec4f > &  vec,
size_t  size 
)
inline

Here is the caller graph for this function:

std::string Nif::NIFStream::getVersionString ( )
inline

This is special since the version string doesn't start with a number, and ends with "\n".

Here is the caller graph for this function:

void Nif::NIFStream::skip ( size_t  size)
inline

Here is the caller graph for this function:

Member Data Documentation

NIFFile* const Nif::NIFStream::file
Files::IStreamPtr Nif::NIFStream::inp
private

Input stream.


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