VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelSetRealizationManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtModelSetRealizationManager.h,v $ $Revision: 1.16 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtModelSetRealizationManager_H_
14 #define DtModelSetRealizationManager_H_
15 
16 #include <vrvCore/vrvCore.h>
17 
19 
20 #include <map>
21 
22 #include <boost/signal.hpp>
23 
24 
25 namespace makArchives
26 {
27  class DtModelSetRealizationsRecord;
28 }
29 
30 namespace makVrv
31 {
32  class DtDe;
33  class DtModelSetRealizationManagerSignaler;
34 
40  {
41  public:
43 
44  typedef std::map<int, bool> ModelSetRealizations;
45 
48 
50  const ModelSetRealizations& modelSetRealizations() const;
51 
53  bool visualizeModelSet( int modelSet ) const;
54 
56  void setVisualizeModelSet( int modelset, bool visualize );
57 
59  bool loadModelSetRealizations( const std::string& filepath );
60 
61  bool saveModelSetRealizations( const std::string& filepath ) const;
62 
64  void saveAsDefaults();
65 
66  void loadDefaults();
67 
70  const std::string& name() const;
71 
73  void setName( const std::string& name );
74 
76  const std::string& extension() const;
77 
79  void setExtension( const std::string& extension );
80 
81  void setAutoSave(bool b);
82 
83  bool autoSave() const;
84 
85  void setFromRecord( const makArchives::DtModelSetRealizationsRecord& record );
86 
87  void getRecord( makArchives::DtModelSetRealizationsRecord& record ) const;
88 
89  protected:
90 
93 
94  std::string defaultFilePath() const;
95 
96  protected:
97 
99 
100  // Says which model sets can be used in what modes
102 
105  std::string myName;
106  std::string myExtension;
107  };
108 
112  {
113  public:
114 
116  static DtModelSetRealizationManagerSignaler& instance(DtDe& de);
117 
120 
122  boost::signal<void (int, bool)> signal_modelSetVisualized;
123 
124  protected:
126 
127  };
128 
129 
133  {
134  public:
137 
140 
144  static DtModelSetRealizationManagerCreator& instance(DtDe& de);
145 
147  virtual DtModelSetRealizationManager* create(DtDe&);
148  };
149 }
150 #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)