VR-Forces 4.7 Class Documentation
 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 /******************************************************************************
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 
78  protected:
79 
81 
83  typedef std::vector<SurfaceDefinition> SurfaceDefinitionList;
84  std::vector<SurfaceDefinition> mySurfaceDefinitions;
85 
87  };
88 }
89 
90 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)