VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
DtUnicodeChar myOutlineGlyph
Definition: DtEntity2dFacade.h:68
DtUnicodeChar myFillGlyph
Definition: DtEntity2dFacade.h:69
DtUnicodeChar myDamageGlyph
Definition: DtEntity2dFacade.h:70
DtUnicode mySymbolString
Definition: DtEntity2dFacade.h:71
A single unicode character.
Definition: DtUnicodeChar.h:17
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The DtEntity2dFacadeBase is the common methods of a facade around agents that make up an entity in th...
Definition: DtEntity2dFacadeBase.h:31
DtProjectedWidgetModelAgent * myProjectIconModelAgent
Definition: DtEntity2dFacade.h:65
The DtEntity2dFacade is a facade around agents that make up an entity in the 2D Icon model set repres...
Definition: DtEntity2dFacade.h:25
Contains makVrv::DtEntity2dFacade class.
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:33
DtWidgetLabelAgent * mySymbolLabelAgent
Definition: DtEntity2dFacade.h:66
Contains DLL export macros.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)