VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 /******************************************************************************
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>
19 #include <map>
20 #include <string>
21 #include <vector>
22 
23 namespace makVrv
24 {
28  {
29  public:
30 
32  typedef std::vector<int> SurfaceIdList;
33 
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 
50 
53 
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 
84 
86  typedef std::vector<SurfaceDefinition> SurfaceDefinitionList;
87  std::vector<SurfaceDefinition> mySurfaceDefinitions;
88 
90 
91  bool myIsLoaded;
92  };
93 }
94 
95 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)