VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtSurfacesSettings.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtSurfacesSettings.h,v $ $Revision: 1.14 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtSurfacesSettings_H_
14
#define DtSurfacesSettings_H_
15
16
#include <
vrvCore/vrvCore.h
>
17
#include <
vrvUtil/signalslib.h
>
18
#include <
makArchives/DtSurfaceSettingsRecord.h
>
19
#include <map>
20
#include <string>
21
#include <vector>
22
23
namespace
makVrv
24
{
27
class
DT_DLL_VRVCORE
DtSurfacesSettings
28
{
29
public
:
30
32
typedef
std::vector<int>
SurfaceIdList
;
33
36
class
SurfaceDefinition
37
{
38
public
:
39
SurfaceDefinition
(
const
std::string& regExp,
int
id
)
40
: myId(id)
41
, myRegExp(regExp)
42
{}
43
44
std::string
myRegExp
;
45
int
myId
;
46
};
47
49
DtSurfacesSettings
();
50
52
~
DtSurfacesSettings
();
53
55
DtSurfacesSettings
(
DtSurfacesSettings
const
&);
56
58
DtSurfacesSettings
& operator=(
DtSurfacesSettings
const
& obj);
59
61
void
getRecord(
makArchives::DtSurfaceSettingsRecord
& rec)
const
;
62
64
void
setFromRecord(
const
makArchives::DtSurfaceSettingsRecord
& rec);
65
67
void
setSurfaceVisible(
int
surfaceId,
bool
state);
68
70
bool
surfaceVisible(
int
surfaceId);
71
73
SurfaceIdList
const
& surfaceIds();
74
76
SurfaceDefinition
* findSurfaceDefinition(
int
id
);
77
79
bool
isLoaded();
80
81
protected
:
82
83
makArchives::DtSurfaceSettingsRecord::SurfaceVisibleMap
mySurfaceVisibleMap
;
84
86
typedef
std::vector<SurfaceDefinition>
SurfaceDefinitionList
;
87
std::vector<SurfaceDefinition>
mySurfaceDefinitions
;
88
89
SurfaceIdList
mySurfaceIds
;
90
91
bool
myIsLoaded
;
92
};
93
}
94
95
#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
)