osg::ImageFileType::Head Struct Reference

#include <OSGImageFileType.h>

List of all members.

Public Member Functions

bool netToHost (void)
bool hostToNet (void)

Public Attributes

Char8 suffix [8]
unsigned short pixelFormat
unsigned short width
unsigned short height
unsigned short depth
unsigned short mipmapCount
unsigned short frameCount
unsigned short frameDelay
unsigned short sideCount
unsigned short dataType
unsigned short _reserved3
unsigned short _reserved4
unsigned short attachmentSize

Detailed Description

Definition at line 162 of file OSGImageFileType.h.


Member Function Documentation

bool ImageFileType::Head::netToHost ( void   ) 

Helper method to convert the Head block from net to host format

Definition at line 62 of file OSGImageFileType.cpp.

References _reserved3, _reserved4, attachmentSize, dataType, depth, frameCount, frameDelay, height, mipmapCount, osg::osgntohs(), pixelFormat, sideCount, and width.

Referenced by osg::MTDImageFileType::read(), and osg::ImageFileType::restore().

00063 {
00064     pixelFormat    = osgntohs(pixelFormat);
00065     width          = osgntohs(width);
00066     height         = osgntohs(height);
00067     depth          = osgntohs(depth);
00068     mipmapCount    = osgntohs(mipmapCount);
00069     frameCount     = osgntohs(frameCount);
00070     frameDelay     = osgntohs(frameDelay);
00071     sideCount      = osgntohs(sideCount);
00072     dataType       = osgntohs(dataType);
00073     _reserved3     = 0;
00074     _reserved4     = 0;
00075     attachmentSize = osgntohs(attachmentSize);
00076 
00077     return true;
00078 }

bool ImageFileType::Head::hostToNet ( void   ) 

Helper method to convert the Head block from host to net format

Definition at line 85 of file OSGImageFileType.cpp.

References _reserved3, _reserved4, attachmentSize, dataType, depth, frameCount, frameDelay, height, mipmapCount, osg::osghtons(), pixelFormat, sideCount, and width.

Referenced by osg::ImageFileType::store(), and osg::MTDImageFileType::write().

00086 {
00087     pixelFormat    = osghtons(pixelFormat);
00088     width          = osghtons(width);
00089     height         = osghtons(height);
00090     depth          = osghtons(depth);
00091     mipmapCount    = osghtons(mipmapCount);
00092     frameCount     = osghtons(frameCount);
00093     frameDelay     = osghtons(frameDelay);
00094     sideCount      = osghtons(sideCount);
00095     dataType       = osghtons(dataType);
00096     _reserved3     = 0;
00097     _reserved4     = 0;
00098     attachmentSize = osghtons(attachmentSize);
00099 
00100     return true;
00101 }


Member Data Documentation

Definition at line 163 of file OSGImageFileType.h.

Referenced by osg::ImageFileType::restore(), and osg::ImageFileType::store().

Definition at line 173 of file OSGImageFileType.h.

Referenced by hostToNet(), and netToHost().

Definition at line 174 of file OSGImageFileType.h.

Referenced by hostToNet(), and netToHost().

Definition at line 175 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().


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

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1