VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vmap
vmapSpecificationFactory.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
* $RCSfile: vmapSpecificationFactory.h,v $ $Revision: 1.8 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef VMAP_SPECIFICATION_FACTORY_H_
10
#define VMAP_SPECIFICATION_FACTORY_H_
11
15
16
#include <list>
17
#include <map>
18
19
#include <vlutil/vlString.h>
20
#include "
gdb/specMgr.h
"
21
#include "
geometry/gdbColor.h
"
22
23
#include "
vmap/vmapDefines.h
"
24
#include "
vmap/vmapSpecNode.h
"
25
26
//forward defs
27
class
DtVpfRow
;
28
class
DtVpfDatabase
;
29
struct
DtVpf3Coord
;
30
31
//typedefs
32
typedef
std::map<DtString, DtColor>
DtColorMap
;
33
typedef
std::map<DtString, DtColor>::iterator
DtColorMapIter
;
34
37
class
DT_DLL_vmap
DtVpfSpecFactory
38
{
39
private
:
41
DtVpfSpecFactory
(
const
DtVpfSpecFactory
&input);
42
44
DtVpfSpecFactory
& operator=(
const
DtVpfSpecFactory
&input);
45
46
public
:
49
DtVpfSpecFactory
(
DtVpfDatabase
* Db);
50
52
virtual
~
DtVpfSpecFactory
();
53
56
virtual
bool
init
();
57
61
virtual
bool
createNewSpecification(
DtSpecification
& spec,
62
DtSpecificationID
& specID,
const
DtVpfRow
& row);
63
66
virtual
DtVpfDatabase
* database()
const
;
67
71
virtual
void
findBounds(
DtSpecification
& spec,
const
std::vector<DtVpf3Coord*>* coords);
72
73
protected
:
77
virtual
DtColor
findColor(
DtString
sedrisCode);
78
virtual
std::vector<DtString> tokenize(
const
std::string& str,
const
std::string& delim);
79
virtual
bool
initColorMap();
80
virtual
bool
initSpecMap();
81
virtual
void
insert(
DtSpecification
& spec,
DtVpfEnumeration
& e);
82
virtual
DtSpecification
* findSpec(
const
DtVpfEnumeration
& e);
83
virtual
DtVpfEnumeration
buildEnum(
const
DtVpfRow
& row);
84
85
DtColorMap
myColorMap
;
86
DtVpfDatabase
*
myDatabase
;
87
DtVpfSpecNode
*
myRootSpecNode
;
88
};
89
90
#endif
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
)