VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtEntity2dFacade.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <vrvUtil/DtUnicode.h>
15 #include <string>
16 
17 namespace makVrv
18 {
19  class DtProjectedWidgetModelAgent;
20  class DtWidgetLabelAgent;
21 
26  {
27  public:
28 
31  DtElementID id, bool distribute = false);
32 
34  DtEntity2dFacade(DtAgentManagerInterface& sceneInterface, int modelSet,
35  DtElementID id, bool distribute = false);
36 
37 
39  virtual ~DtEntity2dFacade();
40 
43 
44 
46  virtual void setIconModelDefinition(const std::string& modelDefinitionName);
47 
48  virtual void setOutlineColor(const float color[4]);
49  virtual void setFillColor(const float color[4]);
50 
51  virtual void setOutlineGlyph(DtUnicodeChar glyph);
52  virtual void setFillGlyph(DtUnicodeChar glyph);
53  virtual void setDamageGlyph(DtUnicodeChar glyph);
54 
56 
57  protected:
58 
59  virtual void updateIcon();
60 
61  virtual DtUnicode generateSymbolString(float fillColor[4],
62  float outlineColor[4] ) const;
63 
64  protected:
65  DtProjectedWidgetModelAgent* myProjectIconModelAgent;
66  DtWidgetLabelAgent* mySymbolLabelAgent;
67 
72 
73  float myFillColor[4];
74  float myOutlineColor[4];
75  };
76 }
77 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)