VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAttributeGroupStateVisualizer.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
14 
15 #include <matrix/vlVector.h>
16 
17 namespace makVrv
18 {
19  class DtAttributeGroupIndicator;
20  class DtProjectedWidgetModelAgent;
21  class DtAttachableUpdaterAgent;
22 
29  {
30  public:
32  DtStateListener& listener, int modelSet);
33 
35 
36 
37  virtual void setColor(float r, float g, float b, float a);
38 
39  virtual void setFlashing(bool flashing);
40 
41  virtual void setPosition(const DtVector& pos);
42 
43  virtual void setAttached(DtUniqueID id, int vtx, double percentage);
44 
45  virtual void setHostId(const std::string& id, int vtx, double percentage);
46 
47  virtual void setVisible(bool yesNo);
48 
49  virtual void setAttribute(const std::string& name, double numVal,
50  const std::string& imageFile, double yVal);
51 
52  virtual void setNoValueAttribute(const std::string& name, int index);
53 
54  virtual void setNumericAttribute(const std::string& name, int index,
55  double val);
56 
57  virtual void setBarGraphAttribute(const std::string& name, int index,
58  double val);
59 
60  virtual void setBitmapAttribute(const std::string& name, int index,
61  const std::string& val);
62 
63  virtual void setGraphAttribute(const std::string& name, int index,
64  double xVal, double yVal);
65 
66  virtual void setGroupTemplateName(const std::string& name);
67 
69  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
70 
72  static const DtStateVisualizer::TypeInfo& theTypeInfo();
73 
74  protected:
75  virtual void createModelAgents();
76 
77  virtual void destroyModelAgents();
78 
79  virtual void setModelDefinitionForAgents();
80 
81  virtual void slot_mouseInChanged(bool mouseIn);
82 
83  virtual void slot_mouseButtonReleased(int button);
84 
85  protected:
87  {
88  int index;
89  int type;
90  double numericValue;
91  double yValue;
92  std::string imageFilename;
94  };
95  typedef std::map<std::string, DtAttributeTemplateInfo> AttributeInfoMap;
96 
98  DtAttachableUpdaterAgent* myAttachedUpdaterAgent;
102  std::string myGroupTemplateName;
103 
104  };
105 
110 }

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)