VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vmap
vpfSpecFactory.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/specificationManager.h
"
21
#include "
geometry/color.h
"
22
23
#include "
vmap/vmapDefines.h
"
24
#include "
vmap/vpfSpecNode.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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)