VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
visualMetaDataManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 
9 
10 #pragma once
11 
13 #include <vlutil/vlFilename.h>
14 
15 #include <map>
16 #include <set>
17 #include <string>
18 
19 class DtRwVisualMetaData;
21 
26 {
27 public:
28  struct Marking
29  {
30  std::string displayName;
31  std::string annotationName;
32  std::string linkageName;
33  std::map<std::string, int> values;
34  };
35 
36  typedef std::map<std::string, Marking> Markings;
37 
38 public:
41 
44 
46  virtual ~DtVisualMetaDataManager();
47 
48  virtual Markings visualMetaDataFor(const DtFilename& metaDataFile);
49 
51  virtual void clear();
52 
54  virtual std::map<std::string, std::string> markingsFromVisualMetaData(const DtFilename& metaDataFile, const DtRwVisualMetaData&);
55 
58 
60  static DtVisualMetaDataManager* instance();
61 
62 protected:
64  virtual std::vector<std::string> orderFromSelection(const std::map<std::string, int>&, const DtRwNLengthStringVector&) const;
65 
67  virtual std::string randomlySelect(const std::vector<std::string>&, double topPercentToChoose, double topRandomPrecent) const;
68 
70  virtual std::string weightedExponential(const std::vector<std::string>&) const;
71 
73  virtual void* loadMetaFile(const DtFilename&) const;
74 
75 protected:
77 
78  typedef std::map<std::string, Markings> StoredMarkings;
80 };

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)