VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
terrainDbFactory
mResPprMapRec.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: mResPprMapRec.h,v $ $Revision: 1.12 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef DtMultiResPaperMapRecord_H_
10
#define DtMultiResPaperMapRecord_H_
11
12
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
13
#include "
terrainDbFactory/pprMapRec.h
"
14
15
#include "
geometry/point.h
"
16
17
#include <iosfwd>
18
19
// class DtMultiResPaperMapRecord:
20
//
21
// Instances of this class are accessors to Mak terrain database metafiles.
22
// This record points to a mtl file which contains the information for
23
// form a paper map out of a set of pageable raster images.
24
25
class
DT_DLL_terrainDbFactory
DtMultiResPaperMapRecord
:
public
DtPaperMapRecord
26
{
27
28
public
:
29
30
// default constructor.
31
DtMultiResPaperMapRecord
();
32
33
// destructor
34
virtual
~
DtMultiResPaperMapRecord
();
35
36
// copy constructor
37
DtMultiResPaperMapRecord
(
const
DtMultiResPaperMapRecord
& orig);
38
39
// assignment operator
40
DtMultiResPaperMapRecord
&
operator=
(
const
DtMultiResPaperMapRecord
& rhs);
41
42
virtual
DtPaperMapRecord
*
clone
();
43
44
// Returns the record type.
45
virtual
DtString
recordTypeName
()
const
;
46
47
// Read self from stream.
48
virtual
bool
get
(std::istream& stream);
49
50
// identifies a token or passes it to the parent class
51
virtual
bool
processToken
(std::istream& stream,
DtString
& token);
52
53
static
DtMetafileRecord
*
create
();
54
55
void
setCacheImages(
bool
);
56
57
bool
cacheImages()
const
;
58
59
protected
:
60
61
// Write self to stream.
62
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
63
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
64
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
65
66
protected
:
67
// If true (default is false) images, when loaded, will not be unloaded
68
// but rather cached in the system. Set this flag to true when performance
69
// is more of an issue than memory usage.
70
bool
myCacheImages
;
71
static
const
DtString
theParameterCacheImages
;
72
};
73
74
inline
void
DtMultiResPaperMapRecord::setCacheImages
(
bool
b)
75
{
76
myCacheImages
= b;
77
}
78
79
inline
bool
DtMultiResPaperMapRecord::cacheImages
()
const
80
{
81
return
myCacheImages
;
82
}
83
84
#endif
85
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)