VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtAttributeGroupIndicator.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtAttributeGroupIndicator.h,v $ $Revision: 1.23 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtAttributeGroupIndicator_H_
14 #define DtAttributeGroupIndicator_H_
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtUniqueID.h>
19 #include <vrvCore/DtMouseState.h>
21 
22 #include <boost/signal.hpp>
23 #include <vector>
24 
25 namespace makVrv
26 {
27  class DtAgentManagerInterface;
28  class DtProjectedWidgetModelAgent;
29  class DtAttributeGroupWidgetAgent;
30  class DtWidgetAgent;
31  class DtModelAgent;
32  class DtWidgetInstanceSignaler;
33  class DtUnicode;
34 
38  {
39  public:
40 
41  // The maximum number of points displayed in a graph
42  enum {MaxGraphPoints = 10};
43 
45  unsigned int modelSet,
46  const std::string& normalTheme = "AttributeGroupIndicatorTheme",
47  const std::string& pinnedTheme = "AttributeGroupPinnedTheme",
48  int height = 16, int width = 16);
49 
50  virtual ~DtAttributeGroupIndicator();
51 
53  virtual void setIndicatorActive(bool active);
54 
56  virtual void setColor(float r, float g, float b, float a = 1.);
57 
59  virtual DtProjectedWidgetModelAgent* model();
60 
62  virtual void setEventsEnabled(bool enabled);
63 
65  virtual DtWidgetEventSignals& eventSignals(DtWidgetSignaler& signaler);
66 
68  virtual void setAttributeGroupVisible(bool visible);
69 
71  virtual void setAttributeVisible(unsigned int index, bool visible);
72 
76  virtual void setVisible(bool visible);
77 
79  virtual bool isVisible();
80 
82  {
88  AttributeTypeValueBar
89  };
90 
92  virtual void setAttributeType(unsigned int index, const DtUnicode& name, AttributeType t);
93 
95  virtual void setValueImage(unsigned int index, const std::string& imageFilepath);
96 
98  virtual void setValueGraphPoint(unsigned int index, unsigned int n, float x, float y);
99 
101  virtual void setValueBarValue(unsigned int index, float val);
102 
104  virtual void setValueNumeric(unsigned int index, float val);
105 
107  virtual void setMouseIn(bool mouseIn);
108 
110  virtual void toggleLockState();
111 
112  protected:
113 
115  virtual void updateVisibility();
116 
119  DtProjectedWidgetModelAgent* myProjectedWidgetModel;
120  DtWidgetAgent* myWidgetAgent;
121  DtAttributeGroupWidgetAgent* myAttributeGroupWidgetAgent;
122  std::string myNormalTheme;
123  std::string myPinnedTheme;
126  bool myMouseIn;
128 
129  bool myVisible;
131  std::vector<bool> myAttributeVisibility;
132 
133  };
134 }
135 
136 #endif
137 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)