VR-Forces 4.10 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) 2020 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 setOutlineColor( float r, float g,
38  float b, float a = 1.0f );
39 
41  virtual void setOutlineWidth(float width);
42 
44  virtual void setOutlineEnabled(bool enabled);
45 
47  virtual void setTypeText(unsigned int index,
48  const DtUnicode& attributeName);
49 
51  virtual void setTypeValueText(unsigned int index,
52  const DtUnicode& attributeName);
53 
55  virtual void setTypeNumeric(unsigned int index,
56  const DtUnicode& attributeName);
57 
59  virtual void setTypeValueBar(unsigned int index,
60  const DtUnicode& attributeName);
61 
63  virtual void setTypeGraph(
64  unsigned int index, const DtUnicode& attributeName, int maxValues);
65 
67  virtual void setTypeImage(
68  unsigned int index, const DtUnicode& attributeName);
69 
71  virtual void setTypeNull(unsigned int index);
72 
74  virtual void setValueImage(
75  unsigned int index, const std::string& imageFilepath);
76 
78  virtual void setValueGraphPoint(
79  unsigned int index, unsigned int n, float x, float y);
80 
82  virtual void setValueBarValue(unsigned int index, float val);
83 
85  virtual void setValueNumeric(unsigned int index, float val);
86 
88  virtual void setValueTextValue(unsigned int index, const DtUnicode& val);
89 
91  virtual void setAttributeVisible(unsigned int index, bool visible);
92 
93  // DtWidget interface
95  virtual void setOverlay( unsigned int overlay );
96 
98  virtual unsigned int overlay() const;
99 
101  virtual void setOrderGroup( unsigned int group );
102 
104  virtual unsigned int orderGroup() const;
105 
107  virtual void setBackgroundOrderGroup( unsigned int groupId );
108 
110  virtual void setPosition( float x, float y, float z, float w = 0 );
111 
113  virtual void setBackgroundImage( const std::string& filename );
114 
116  virtual void setBackgroundColor( float r, float g, float b, float a = 1.0f );
117 
119  virtual void setColor(float r,float g,float b, float a);
120 
123  virtual void setOrigin(float originX, float originY);
124 
126  virtual void setSize(float w, float h);
127 
129  virtual void setPadding(float paddingX, float paddingY);
130 
133  virtual void setModelDefinition(const std::string& str);
134 
136  virtual void setEventsEnabled(bool enabled);
137 
139  virtual void expandLayoutBy(unsigned int rows, unsigned int cols);
140 
142  virtual void setVisible(bool visible);
143 
146  virtual void setHorizontalCenter(bool center);
147 
150  virtual void setVerticalCenter(bool center);
151 
153  virtual void setFontSize(float fontSize);
154 
156  virtual void setFontFile(const std::string& fontFile);
157 
159  virtual void setShadowText( bool enabled );
160 
162  virtual void setRotation(float);
163 
164  protected:
165 
167 
168  osg::Vec4 myBackgroundColor;
169 
170  unsigned int myOrderGroup;
172 
173  float myR;
174  float myG;
175  float myB;
176  float myA;
177 
178  std::string myFontFile;
179  float myFontSize;
180 
181  unsigned int myOverlay;
182 
183  virtual DtTextAttribute* buildTextAttribute(const DtUnicode& text);
184 
185  };
186 
187 }
A unicode string.
Definition: DtUnicode.h:33
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
float myG
Definition: DtOsgAttributeGroupWidget.h:174
float myA
Definition: DtOsgAttributeGroupWidget.h:176
unsigned int myBackgroundOrderGroup
Definition: DtOsgAttributeGroupWidget.h:171
The attribute layout tells DtAttributes where to draw.
Definition: DtTextAttribute.h:19
unsigned int myOverlay
Definition: DtOsgAttributeGroupWidget.h:181
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:175
osg::Vec4 myBackgroundColor
Definition: DtOsgAttributeGroupWidget.h:168
float myFontSize
Definition: DtOsgAttributeGroupWidget.h:179
DtAttributeLayout myLayout
Definition: DtOsgAttributeGroupWidget.h:166
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
float myR
Definition: DtOsgAttributeGroupWidget.h:173
unsigned int myOrderGroup
Definition: DtOsgAttributeGroupWidget.h:170
The osg implementation of an attribute group.
Definition: DtOsgAttributeGroupWidget.h:24
std::string myFontFile
Definition: DtOsgAttributeGroupWidget.h:178
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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)