OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | 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 (osg::VectorGLushort *vec, size_t size)
 
void getFloats (std::vector< float > &vec, size_t size)
 
void getVector2s (osg::Vec2Array *vec, size_t size)
 
void getVector3s (osg::Vec3Array *vec, size_t size)
 
void getVector4s (osg::Vec4Array *vec, size_t size)
 
void getQuaternions (std::vector< osg::Quat > &quat, size_t size)
 

Public Attributes

NIFFile *const file
 

Private Member Functions

uint8_t read_byte ()
 
uint16_t read_le16 ()
 
uint32_t read_le32 ()
 
float read_le32f ()
 

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 call graph for this function:

Here is the caller graph for this function:

float Nif::NIFStream::getFloat ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

int Nif::NIFStream::getInt ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

Matrix3 Nif::NIFStream::getMatrix3 ( )

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

short Nif::NIFStream::getShort ( )
inline

Here is the call graph for this function:

std::string Nif::NIFStream::getString ( size_t  length)

Read in a string of the given length.

Here is the caller graph for this function:

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

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

Here is the call graph for this function:

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 call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void Nif::NIFStream::getUShorts ( osg::VectorGLushort *  vec,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

osg::Vec2f Nif::NIFStream::getVector2 ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void Nif::NIFStream::getVector2s ( osg::Vec2Array *  vec,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void Nif::NIFStream::getVector3s ( osg::Vec3Array *  vec,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void Nif::NIFStream::getVector4s ( osg::Vec4Array *  vec,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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

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:

uint8_t Nif::NIFStream::read_byte ( )
private

Here is the caller graph for this function:

uint16_t Nif::NIFStream::read_le16 ( )
private

Here is the caller graph for this function:

uint32_t Nif::NIFStream::read_le32 ( )
private

Here is the caller graph for this function:

float Nif::NIFStream::read_le32f ( )
private

Here is the call graph for this function:

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: