VR-Forces 4.1 Class Documentation
DtVrfNameSymbolDecoration.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 
12 #include <vrfGuiCore/vrfGuiCore.h>
13 
17 
18 namespace makVrv
19 {
20  class DtSymbolDecorationVisualizer;
21  class DtSymbolDecorationUpdaterAgent;
22 }
23 
24 namespace makVrf
25 {
29  {
30  public:
32  DtVrfNameSymbolDecoration(unsigned int index,
33  makVrv::DtSymbolDecorationVisualizer& parentVisualizer);
34 
36  virtual ~DtVrfNameSymbolDecoration();
37 
39  virtual void visualize();
40 
42  virtual void unvisualize();
43 
45  virtual void setScale(float scale) {}
46 
48  virtual void slot_markingTextSet(const std::string& name);
49 
50  protected:
51  unsigned int myIndex;
53  bool myActive;
54  };
55 
59  {
60  public:
63 
66 
68  virtual makVrv::DtSymbolDecoration* create(
69  makVrv::DtSymbolDecorationVisualizer& parentVisualizer)
70  {
71  return new DtVrfNameSymbolDecoration(
72  parentVisualizer.nextLabelIndex(), parentVisualizer);
73  }
74 
76  {
78  }
79 
81  virtual const std::string& displayName()
82  {
83  const static std::string str("Name");
84  return str;
85  }
86 
89  virtual const std::string& decorationClassName()
90  {
91  const static std::string str("DtNameSymbolDecoration");
92  return str;
93  }
94 
95  virtual const std::string& tag()
96  {
97  const static std::string str("");
98  return str;
99  }
100  };
101 }

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)