VR-Forces 4.1 Class Documentation
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 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)