VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Dt2DTextBoxVisualizer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvCore/vrvCore.h>
13 
17 
18 namespace makVrv
19 {
20  class Dt2DTextBoxFacade;
21 
26  {
27  public:
30  int modelSet);
31 
33  virtual ~Dt2DTextBoxVisualizer();
34 
35  public:
37  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
38 
40  static const DtStateVisualizer::TypeInfo& theTypeInfo();
41 
43  virtual void setFont(const std::string& font, int fontSize);
44 
46  virtual void setTextColor(float r, float g, float b, float a);
47 
49  virtual void setText(const std::string&);
50 
52  virtual void setFontScale(float);
53 
54  protected:
56  virtual void createModelAgents();
57 
59  virtual void destroyModelAgents();
60 
62  virtual void setVisualizerDefinition(const DtVisualizerDefinition& visDef);
63 
65  virtual void setModelDefinitionForAgents();
66 
67  protected:
68  std::string myFontFile;
69  std::string myLabel;
72  float myScale;
74  float myDefaultColor[4];
75  float myBoxWidth;
76  float myBoxHeight;
77  float myOffsetX;
78  float myOffsetY;
79  };
80 
84 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)