VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgAttributeGroupWidget.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc.
3  * All rights reserved.
4  **************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
15 
16 namespace makVrv
17 {
18 
19  class DtAttributeLayout;
20  class DtTextAttribute;
21 
25  : public DtAttributeGroupWidget
26  {
27  public:
28 
30 
31  virtual ~DtOsgAttributeGroupWidget();
32 
34  virtual void setBackgroundEnabled(bool enabled);
35 
37  virtual void setOutlineEnabled(bool enabled);
38 
40  virtual void setTypeText(unsigned int index,
41  const DtUnicode& attributeName);
42 
44  virtual void setTypeValueText(unsigned int index,
45  const DtUnicode& attributeName);
46 
48  virtual void setTypeNumeric(unsigned int index,
49  const DtUnicode& attributeName);
50 
52  virtual void setTypeValueBar(unsigned int index,
53  const DtUnicode& attributeName);
54 
56  virtual void setTypeGraph(
57  unsigned int index, const DtUnicode& attributeName, int maxValues);
58 
60  virtual void setTypeImage(
61  unsigned int index, const DtUnicode& attributeName);
62 
64  virtual void setTypeNull(unsigned int index);
65 
67  virtual void setValueImage(
68  unsigned int index, const std::string& imageFilepath);
69 
71  virtual void setValueGraphPoint(
72  unsigned int index, unsigned int n, float x, float y);
73 
75  virtual void setValueBarValue(unsigned int index, float val);
76 
78  virtual void setValueNumeric(unsigned int index, float val);
79 
81  virtual void setValueTextValue(unsigned int index, const DtUnicode& val);
82 
84  virtual void setAttributeVisible(unsigned int index, bool visible);
85 
86  // DtWidget interface
88  virtual void setOverlay( unsigned int overlay );
89 
91  virtual unsigned int overlay() const;
92 
94  virtual void setOrderGroup( unsigned int group );
95 
97  virtual unsigned int orderGroup() const;
98 
100  virtual void setBackgroundOrderGroup( unsigned int groupId );
101 
103  virtual void setPosition( float x, float y, float z, float w = 0 );
104 
106  virtual void setBackgroundImage( const std::string& filename );
107 
109  virtual void setBackgroundColor( float r, float g, float b, float a = 1.0f );
110 
112  virtual void setColor(float r,float g,float b, float a);
113 
116  virtual void setOrigin(float originX, float originY);
117 
119  virtual void setSize(float w, float h);
120 
122  virtual void setPadding(float paddingX, float paddingY);
123 
126  virtual void setModelDefinition(const std::string& str);
127 
129  virtual void setEventsEnabled(bool enabled);
130 
132  virtual void expandLayoutBy(unsigned int rows, unsigned int cols);
133 
135  virtual void setVisible(bool visible);
136 
139  virtual void setHorizontalCenter(bool center);
140 
143  virtual void setVerticalCenter(bool center);
144 
146  virtual void setFontSize(float fontSize);
147 
149  virtual void setFontFile(const std::string& fontFile);
150 
152  virtual void setShadowText( bool enabled );
153 
155  virtual void setRotation(float);
156 
157  protected:
158 
160 
161  osg::Vec4 myBackgroundColor;
162 
163  float myR;
164  float myG;
165  float myB;
166  float myA;
167 
168  std::string myFontFile;
169  float myFontSize;
170 
171  unsigned int myOverlay;
172 
173  virtual DtTextAttribute* buildTextAttribute(const DtUnicode& text);
174 
175  };
176 
177 }
A unicode string.
Definition: DtUnicode.h:33
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
float myG
Definition: DtOsgAttributeGroupWidget.h:164
float myA
Definition: DtOsgAttributeGroupWidget.h:166
The attribute layout tells DtAttributes where to draw.
Definition: DtTextAttribute.h:22
unsigned int myOverlay
Definition: DtOsgAttributeGroupWidget.h:171
Contains the DtAttributeGroupWidget class declaration.
The attribute layout tells DtAttributes where to draw using a grid type layout.
Definition: DtAttributeLayout.h:37
Class for a widget that displays remote graphics attribute groups.
Definition: DtAttributeGroupWidget.h:20
float myB
Definition: DtOsgAttributeGroupWidget.h:165
osg::Vec4 myBackgroundColor
Definition: DtOsgAttributeGroupWidget.h:161
float myFontSize
Definition: DtOsgAttributeGroupWidget.h:169
DtAttributeLayout myLayout
Definition: DtOsgAttributeGroupWidget.h:159
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
float myR
Definition: DtOsgAttributeGroupWidget.h:163
The osg implementation of an attribute group.
Definition: DtOsgAttributeGroupWidget.h:24
std::string myFontFile
Definition: DtOsgAttributeGroupWidget.h:168
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains the DtAttributeLayout class declaration.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)