16 #ifndef _txpage_read_h_
17 #define _txpage_read_h_
65 bool isValid(
void)
const;
73 virtual void SetDefaultCallback(
trpgr_Callback *,
bool destroy =
true);
83 typedef std::map<trpgToken,trpgr_Token>
tok_map;
85 typedef std::map< trpgToken,trpgr_Token,std::less<trpgToken> >
tok_map;
116 virtual bool GetMipLevelLocalGL(
int miplevel,
const trpgTexture *,
char *data,
int32 dataSize);
129 virtual bool GetNthImageInfoForLocalMat(
const trpgLocalMaterial *locMat,
int index,
139 virtual bool GetImageForLocalMat(
const trpgLocalMaterial *locMat,
char *data,
int dataSize);
143 virtual bool GetNthImageForLocalMat(
const trpgLocalMaterial *locMat,
int index,
char *data,
int dataSize);
147 virtual bool GetMipLevelForLocalMat(
int miplevel,
const trpgLocalMaterial *locMat,
char *data,
int dataSize);
151 virtual bool GetNthImageMipLevelForLocalMat(
int miplevel,
const trpgLocalMaterial *locMat,
int index,
char *data,
int dataSize);
157 virtual bool GetImagePath(
const trpgTexture *,
char *,
int len);
159 virtual trpgrAppFileCache* GetNewRAppFileCache(
const char *fullBase,
const char *ext);
167 this->texTable = texTable;
191 virtual void SetDirectory(
const char *);
192 virtual bool OpenFile(
const char *);
193 virtual void CloseFile(
void);
194 virtual bool ReadHeader(
void);
197 virtual bool ReadHeader(
bool readAllBlocks);
198 bool ReadSubArchive(
int row,
int col,
trpgEndian cpuNess);
205 virtual const trpgHeader *GetHeader(
void)
const;
206 virtual const trpgMatTable *GetMaterialTable(
void)
const;
223 virtual trpgrAppFileCache* GetNewRAppFileCache(
const char *fullBase,
const char *ext);
247 class trpgSceneHelperPush;
248 class trpgSceneHelperPop;
249 class trpgSceneHelperDefault;
258 friend class trpgSceneHelperPush;
259 friend class trpgSceneHelperPop;
260 friend class trpgSceneHelperDefault;
267 virtual bool EndChildren(
void *) {
return true;};
270 std::vector<void *> parents;
Definition: trpage_write.h:155
Definition: trpage_geom.h:2951
trpgLabelPropertyTable labelPropertyTable
Definition: trpage_read.h:242
trpgrAppFileCache * texCache
Definition: trpage_read.h:175
void SetTexTable(trpgTexTable *texTable)
Definition: trpage_read.h:165
trpgLightTable lightTable
Definition: trpage_read.h:238
Definition: trpage_read.h:256
trpgrImageHelper()
Definition: trpage_read.h:102
trpgEndian
Used to specify machine endianess.
Definition: trpage_io.h:314
#define DT_DLL_osgdb_vrftxp
Contains DLL export macros.
Definition: osgdb_vrftxpDefines.h:25
Definition: trpage_geom.h:1763
trpgTextStyleTable textStyleTable
Definition: trpage_read.h:240
trpgSupportStyleTable supportStyleTable
Definition: trpage_read.h:241
trpgRangeTable rangeTable
Definition: trpage_read.h:239
Definition: trpage_io.h:697
char * getDir(void)
Definition: trpage_read.h:221
trpgHeader header
Definition: trpage_read.h:233
virtual ~trpgr_Callback(void)
Definition: trpage_read.h:35
trpgEndian ness
Definition: trpage_read.h:171
Definition: trpage_read.h:60
Definition: trpage_geom.h:1438
trpgr_Callback * cb
Constant token value.
Definition: trpage_read.h:51
const trpgMatTable * matTable
Definition: trpage_read.h:172
Definition: trpage_geom.h:1055
voidpf void * buf
Definition: ioapi.h:39
unsigned int uint32
Definition: trpage_sys.h:80
bool destroy
Callback when we hit this token.
Definition: trpage_read.h:52
Definition: trpage_geom.h:1616
trpgr_Token defCb
Definition: trpage_read.h:88
Definition: trpage_geom.h:1226
trpgrAppFileCache * geotypCache
Definition: trpage_read.h:176
Definition: trpage_read.h:185
{secret}
Definition: trpage_read.h:32
Definition: trpage_io.h:561
Definition: trpage_geom.h:2862
Definition: trpage_io.h:532
std::map< trpgToken, trpgr_Token, std::less< trpgToken > > tok_map
Note: Just how slow is a map<> anyway? This usage is self-contained and could be replaced with an arr...
Definition: trpage_read.h:85
const trpgTexTable * texTable
Definition: trpage_read.h:173
FILE * fp
Definition: trpage_read.h:229
trpgrAppFileCache * GetGeoTypCache()
Definition: trpage_read.h:161
Definition: trpage_io.h:632
int fid
Definition: trpage_read.h:230
#define TRPG_MAGIC
File header Magic Number.
Definition: trpage_io.h:44
Definition: trpage_geom.h:3045
trpgTileTable tileTable
Definition: trpage_read.h:237
Definition: trpage_io.h:601
Definition: trpage_geom.h:903
Definition: trpage_geom.h:1680
trpgrAppFileCache * tileCache
Definition: trpage_read.h:244
tok_map tokenMap
Definition: trpage_read.h:87
trpgEndian ness
Definition: trpage_read.h:228
Definition: trpage_geom.h:345
trpgTexTable texTable
Definition: trpage_read.h:235
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
bool separateGeoTyp
Definition: trpage_read.h:177
int Token
Definition: trpage_read.h:50
trpgModelTable modelTable
Definition: trpage_read.h:236
Definition: trpage_geom.h:1119
Definition: trpage_read.h:99
#define TX_EXDECL
Goes before "class" to handle DLL export in windows.
Definition: trdll.h:69
Definition: trpage_io.h:452
virtual bool StartChildren(void *)
Start defining children for the given object.
Definition: trpage_read.h:266
trpgMatTable materialTable
Definition: trpage_read.h:234
void * lastObject
Check token validity.
Definition: trpage_read.h:78
Definition: trpage_io.h:285
short trpgToken
16 bit token definition value. These are values such as TRPGTEXTABLE or TRPG_ATTACH, etc...
Definition: trpage_io.h:61
Definition: trpage_read.h:43
virtual void * Parse(trpgToken, trpgReadBuffer &)
Definition: trpage_read.h:36