VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
trpgr_Archive Class Reference
Inheritance diagram for trpgr_Archive:
Inheritance graph
[legend]

Public Member Functions

 trpgr_Archive (void)
virtual ~trpgr_Archive (void)
virtual void SetDirectory (const char *)
virtual bool OpenFile (const char *)
virtual void CloseFile (void)
 Open File.
virtual bool ReadHeader (void)
virtual bool ReadHeader (bool readAllBlocks)
 Read header (materials, tile table. etc..)
bool ReadSubArchive (int row, int col, trpgEndian cpuNess)
virtual bool ReadTile (uint32 x, uint32 y, uint32 lod, trpgMemReadBuffer &)
 In version 2.1, only tile at lod 0 are fetchable via the tile table.
virtual bool ReadTile (const trpgwAppAddress &addr, trpgMemReadBuffer &buf)
virtual bool ReadExternalTile (uint32 x, uint32 y, uint32 lod, trpgMemReadBuffer &buf)
virtual const trpgHeaderGetHeader (void) const
 Get access to header info.
virtual const trpgMatTableGetMaterialTable (void) const
virtual trpgTexTableGetTexTable (void)
virtual const trpgModelTableGetModelTable (void) const
virtual const trpgTileTableGetTileTable (void) const
virtual const trpgLightTableGetLightTable (void) const
virtual const trpgRangeTableGetRangeTable (void) const
virtual const
trpgLabelPropertyTable
GetLabelPropertyTable () const
virtual const trpgTextStyleTableGetTextStyleTable () const
virtual const
trpgSupportStyleTable
GetSupportStyleTable () const
virtual bool trpgGetTileMBR (uint32 x, uint32 y, uint32 lod, trpg3dPoint &ll, trpg3dPoint &ur) const
 Utility routine to calculate the MBR of a given tile.
trpgEndian GetEndian (void) const
chargetDir (void)
virtual trpgrImageHelperGetNewRImageHelper (trpgEndian ness, char *dir, const trpgMatTable &matTable, const trpgTexTable &texTable)
virtual trpgrAppFileCacheGetNewRAppFileCache (const char *fullBase, const char *ext)
virtual int32 GetHeaderData (char *dataPtr, int32 length, FILE *filehandle)
virtual int32 GetMagicNumber ()
- Public Member Functions inherited from trpgCheckable
 trpgCheckable (void)
virtual ~trpgCheckable (void)
bool isValid (void) const
 Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check.
virtual TeAttrHdl GetHandle () const
virtual void SetHandle (TeAttrHdl hdl)

Protected Attributes

bool headerRead
trpgEndian ness
FILE * fp
int fid
char dir [1024]
 Header info.
trpgHeader header
trpgMatTable materialTable
trpgTexTable texTable
trpgModelTable modelTable
trpgTileTable tileTable
trpgLightTable lightTable
trpgRangeTable rangeTable
trpgTextStyleTable textStyleTable
trpgSupportStyleTable supportStyleTable
trpgLabelPropertyTable labelPropertyTable
trpgrAppFileCachetileCache
- Protected Attributes inherited from trpgCheckable
bool valid
TeAttrHdl handle
bool writeHandle

Constructor & Destructor Documentation

trpgr_Archive::trpgr_Archive ( void  )
virtual trpgr_Archive::~trpgr_Archive ( void  )
virtual

Member Function Documentation

virtual void trpgr_Archive::SetDirectory ( const char )
virtual
virtual bool trpgr_Archive::OpenFile ( const char )
virtual
virtual void trpgr_Archive::CloseFile ( void  )
virtual

Open File.

virtual bool trpgr_Archive::ReadHeader ( void  )
virtual
virtual bool trpgr_Archive::ReadHeader ( bool  readAllBlocks)
virtual

Read header (materials, tile table. etc..)

bool trpgr_Archive::ReadSubArchive ( int  row,
int  col,
trpgEndian  cpuNess 
)
virtual bool trpgr_Archive::ReadTile ( uint32  x,
uint32  y,
uint32  lod,
trpgMemReadBuffer  
)
virtual

In version 2.1, only tile at lod 0 are fetchable via the tile table.

virtual bool trpgr_Archive::ReadTile ( const trpgwAppAddress addr,
trpgMemReadBuffer buf 
)
virtual
virtual bool trpgr_Archive::ReadExternalTile ( uint32  x,
uint32  y,
uint32  lod,
trpgMemReadBuffer buf 
)
virtual
virtual const trpgHeader* trpgr_Archive::GetHeader ( void  ) const
virtual

Get access to header info.

virtual const trpgMatTable* trpgr_Archive::GetMaterialTable ( void  ) const
virtual
virtual trpgTexTable* trpgr_Archive::GetTexTable ( void  )
virtual
virtual const trpgModelTable* trpgr_Archive::GetModelTable ( void  ) const
virtual
virtual const trpgTileTable* trpgr_Archive::GetTileTable ( void  ) const
virtual
virtual const trpgLightTable* trpgr_Archive::GetLightTable ( void  ) const
virtual
virtual const trpgRangeTable* trpgr_Archive::GetRangeTable ( void  ) const
virtual
virtual const trpgLabelPropertyTable* trpgr_Archive::GetLabelPropertyTable ( ) const
virtual
virtual const trpgTextStyleTable* trpgr_Archive::GetTextStyleTable ( ) const
virtual
virtual const trpgSupportStyleTable* trpgr_Archive::GetSupportStyleTable ( ) const
virtual
virtual bool trpgr_Archive::trpgGetTileMBR ( uint32  x,
uint32  y,
uint32  lod,
trpg3dPoint ll,
trpg3dPoint ur 
) const
virtual

Utility routine to calculate the MBR of a given tile.

trpgEndian trpgr_Archive::GetEndian ( void  ) const
char* trpgr_Archive::getDir ( void  )
inline
virtual trpgrImageHelper* trpgr_Archive::GetNewRImageHelper ( trpgEndian  ness,
char dir,
const trpgMatTable matTable,
const trpgTexTable texTable 
)
virtual
virtual trpgrAppFileCache* trpgr_Archive::GetNewRAppFileCache ( const char fullBase,
const char ext 
)
virtual
virtual int32 trpgr_Archive::GetHeaderData ( char dataPtr,
int32  length,
FILE *  filehandle 
)
virtual
virtual int32 trpgr_Archive::GetMagicNumber ( )
inlinevirtual

Member Data Documentation

bool trpgr_Archive::headerRead
protected
trpgEndian trpgr_Archive::ness
protected
FILE* trpgr_Archive::fp
protected
int trpgr_Archive::fid
protected
char trpgr_Archive::dir[1024]
protected

Header info.

trpgHeader trpgr_Archive::header
protected
trpgMatTable trpgr_Archive::materialTable
protected
trpgTexTable trpgr_Archive::texTable
protected
trpgModelTable trpgr_Archive::modelTable
protected
trpgTileTable trpgr_Archive::tileTable
protected
trpgLightTable trpgr_Archive::lightTable
protected
trpgRangeTable trpgr_Archive::rangeTable
protected
trpgTextStyleTable trpgr_Archive::textStyleTable
protected
trpgSupportStyleTable trpgr_Archive::supportStyleTable
protected
trpgLabelPropertyTable trpgr_Archive::labelPropertyTable
protected
trpgrAppFileCache* trpgr_Archive::tileCache
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)