VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAttributeGroupWidget.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc.
3  * All rights reserved.
4  **************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtWidget.h>
13 #include <vrvUtil/DtUnicode.h>
14 
15 namespace makVrv
16 {
17 
21  {
22  public:
25  {
26  TopRight,
27  TopLeft,
28  BottomLeft,
30  Center,
31  TopCenter,
32  MiddleLeft
33  };
34 
35  public:
36 
39 
41  virtual ~DtAttributeGroupWidget();
42 
44  virtual void setOriginPlacementPolicy(DtOriginPlacementPolicy originPolicy) = 0;
45 
47  virtual void setBackgroundEnabled(bool enabled) = 0;
48 
50  virtual void setBackgroundColor( float r, float g,
51  float b, float a = 1.0f ) = 0;
52 
54  virtual void setOutlineColor( float r, float g,
55  float b, float a = 1.0f ) = 0;
56 
58  virtual void setOutlineWidth(float width) = 0;
59 
61  virtual void setOutlineEnabled(bool enabled) = 0;
62 
64  virtual void setTypeText(unsigned int index,
65  const DtUnicode& attributeName) = 0;
66 
68  virtual void setTypeNumeric(unsigned int index,
69  const DtUnicode& attributeName) = 0;
70 
72  virtual void setTypeValueBar(unsigned int index,
73  const DtUnicode& attributeName) = 0;
74 
81  virtual void setTypeGraph(unsigned int index,
82  const DtUnicode& attributeName, int maxValues) = 0;
83 
85  virtual void setTypeImage(unsigned int index,
86  const DtUnicode& attributeName) = 0;
87 
89  virtual void setTypeValueText(unsigned int index,
90  const DtUnicode& attributeName) = 0;
91 
93  virtual void setTypeNull(unsigned int index) = 0;
94 
96  virtual void setValueImage(unsigned int index,
97  const std::string& imageFilepath) = 0;
98 
100  virtual void setValueGraphPoint(unsigned int index,
101  unsigned int n, float x, float y) = 0;
102 
104  virtual void setValueBarValue(unsigned int index, float val) = 0;
105 
107  virtual void setValueNumeric(unsigned int index, float val) = 0;
108 
110  virtual void setValueTextValue(unsigned int index,
111  const DtUnicode& val) = 0;
112 
114  virtual void setAttributeVisible(unsigned int index,
115  bool visible) = 0;
116 
119  virtual void setHorizontalCenter(bool center) = 0;
120 
123  virtual void setVerticalCenter(bool center) = 0;
124 
126  virtual void setFontSize(float points) = 0;
127 
129  virtual void setFontFile(const std::string&) = 0;
130 
132  virtual void setShadowText( bool enabled ) = 0;
133 
135  virtual void setBackgroundOrderGroup( unsigned int groupId ) = 0;
136 
137  };
138 
139 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
Contains makVrv::DtWidget class.
Class for a widget that displays remote graphics attribute groups.
Definition: DtAttributeGroupWidget.h:20
DtOriginPlacementPolicy
Policy that determines where the origin of the widget is.
Definition: DtAttributeGroupWidget.h:24
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The abstract base class for widgets.
Definition: DtWidget.h:28
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)