VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSurfacesSettings.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtSurfacesSettings_H_
11 #define DtSurfacesSettings_H_
12 
13 #include <vrvCore/vrvCore.h>
14 #include <vrvUtil/signalslib.h>
16 #include <map>
17 #include <string>
18 #include <vector>
19 
20 namespace makVrv
21 {
25  {
26  public:
27 
29  typedef std::vector<int> SurfaceIdList;
30 
34  {
35  public:
36  SurfaceDefinition(const std::string& regExp, int id)
37  : myId(id)
38  , myRegExp(regExp)
39  {}
40 
41  std::string myRegExp;
42  int myId;
43  };
44 
47 
50 
53 
55  DtSurfacesSettings& operator=(DtSurfacesSettings const& obj);
56 
58  void getRecord(makArchives::DtSurfaceSettingsRecord& rec) const;
59 
61  void setFromRecord(const makArchives::DtSurfaceSettingsRecord& rec);
62 
64  void setSurfaceVisible(int surfaceId, bool state);
65 
67  bool surfaceVisible(int surfaceId);
68 
70  SurfaceIdList const& surfaceIds();
71 
73  SurfaceDefinition* findSurfaceDefinition(int id);
74 
75  protected:
76 
78 
80  typedef std::vector<SurfaceDefinition> SurfaceDefinitionList;
81  std::vector<SurfaceDefinition> mySurfaceDefinitions;
82 
84  };
85 }
86 
87 #endif
SurfaceIdList mySurfaceIds
Definition: DtSurfacesSettings.h:83
Contains surface on/off settings.
Definition: DtSurfacesSettings.h:24
Definition of a surface record.
Definition: DtSurfacesSettings.h:33
std::map< int, bool > SurfaceVisibleMap
Map from surface IDs to on/off setting.
Definition: DtSurfaceSettingsRecord.h:42
std::vector< SurfaceDefinition > mySurfaceDefinitions
Definition: DtSurfacesSettings.h:81
std::vector< int > SurfaceIdList
Move to SurfaceDefinitionManager.
Definition: DtSurfacesSettings.h:29
int myId
Definition: DtSurfacesSettings.h:42
Contains makVrv::DtSurfaceSettingsRecord class.
SurfaceDefinition(const std::string &regExp, int id)
Definition: DtSurfacesSettings.h:36
makArchives::DtSurfaceSettingsRecord::SurfaceVisibleMap mySurfaceVisibleMap
Definition: DtSurfacesSettings.h:77
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
std::vector< SurfaceDefinition > SurfaceDefinitionList
Move to Surface Definition Manager later.
Definition: DtSurfacesSettings.h:80
std::string myRegExp
Definition: DtSurfacesSettings.h:41
Record of which soil/surface types are visible and which are invisible for a particular terrain...
Definition: DtSurfaceSettingsRecord.h:21
Contains DLL export macros.

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)