VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
terrainDbFactory
vectorDataRec.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: vectorDataRec.h,v $ $Revision: 1.15 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef vectorDataRec_H_
9
#define vectorDataRec_H_
10
11
// file vectorDataRec.h
12
// \brief Contains the DtVectorDataRecord class declaration.
13
14
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
15
#include "
terrainDbFactory/mfRec.h
"
16
#include <iosfwd>
17
#include <vector>
18
#include "
terrainDbFactory/terrainDefines.h
"
19
20
class
DtVectorDataInitializer
;
21
22
//
23
// Instances of this class are accessors to dfad/dfd data
24
class
DT_DLL_terrainDbFactory
DtVectorDataRecord
:
public
DtMetafileRecord
25
{
26
27
public
:
28
29
// default constructor.
30
DtVectorDataRecord
();
31
32
// destructor
33
virtual
~
DtVectorDataRecord
();
34
35
// copy constructor
36
DtVectorDataRecord
(
const
DtVectorDataRecord
& orig);
37
38
// assignment operator
39
DtVectorDataRecord
&
operator=
(
const
DtVectorDataRecord
& rhs);
40
41
// Returns "vector".
42
virtual
DtString
recordTypeName
()
const
;
43
44
// Returns DtConfigVectorType
45
virtual
DtConfigCategoryType
recordCategory
()
const
;
46
47
// Returns VectorFileTypeUnknown
48
virtual
const
unsigned
int
vecDataType()
const
;
49
50
// Returns the initializer.
51
virtual
DtVectorDataInitializer
* vectorDataInitializer();
52
53
// Clears the vector files from the vector initializer list
54
virtual
void
resetFileLists
();
55
56
// Read self from stream.
57
virtual
bool
get
(std::istream& stream);
58
59
// identifies a token or passes it to the parent class.
60
virtual
bool
processToken
(std::istream& stream,
DtString
& token);
61
62
static
DtMetafileRecord
* create();
63
64
protected
:
65
66
// Write self to stream.
67
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
68
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
69
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
70
71
protected
:
72
73
static
const
DtString
thePlanarizeVectorNetwork
;
74
static
const
DtString
theClipVectorNetworkToExtent
;
75
static
const
DtString
theTolerance
;
76
static
const
DtString
theExcessiveEdgeCount
;
77
78
DtVectorDataInitializer
*
myVectorDataInitializer
;
79
unsigned
int
myVectorDataType
;
80
81
};
82
83
#endif
84
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)