VR-Forces 4.1 Class Documentation
DtSymbolDecorationSettings.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
15 
17 
18 #include <string>
19 #include <set>
20 
21 #include <boost/unordered_map.hpp>
22 
23 namespace makVrv
24 {
25 
26  class DtDe;
28 
33 
37  {
38  public:
39 
41  typedef std::set<std::string> DecorationSet;
42 
45  typedef std::set<std::string> DecorationSettings;
46 
47  public:
48 
50  virtual ~DtSymbolDecorationSettings();
51 
54 
56  DecorationSet getOrCreateDecorationSet( const std::string& setId ) const;
57 
59  void setDecorationSet(
60  const std::string& setId, DecorationSet& decorationSet );
61 
63  void enableDecoration( const std::string& decorationCreator );
64 
66  void disableDecoration( const std::string& decorationCreator );
67 
69  bool decorationEnabled( const std::string& decorationCreator ) const;
70 
72  const DecorationSettings& decorationSettings() const;
73 
75  DecorationSet enabledDecorationsInSet( const std::string& setId ) const;
76 
79  bool decorationEnabledForSet(
80  const std::string& setId, const std::string& decorationCreator ) const;
81 
83  void setForegroundColor( float r, float g, float b );
85  void foregroundColor( float& r, float& g, float& b ) const;
86 
88  void setBackgroundColor( float r, float g, float b );
90  void backgroundColor( float& r, float& g, float& b ) const;
91 
93  void setBackgroundOpacity( float opacity );
95  float backgroundOpacity() const;
96 
98  void setShadowText( bool enabled );
100  bool shadowText() const;
101 
103 
106 
108  void setFromRecord(
110 
112  void getRecord(
114 
116  const DtSymbolDecorationSettingsBackup* settingsBackup() const;
117 
119  DtSymbolDecorationSettingsBackup* settingsBackup();
120 
122  virtual void backup();
123 
125 
127  static std::string className();
128 
129  protected:
130 
136 
139 
140  protected:
141 
143 
144  typedef boost::unordered_map<std::string, DecorationSet> DecorationSetMap;
146 
150 
155 
157 
159 
160  };
161 
162 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)