VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtValueBarAttribute.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 <vrvOsg/vrvOsg.h>
13 
14 #include <vrvCore/DtAttribute.h>
15 #include <vrvCore/DtWidget.h>
16 
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtBaseQuadAttribute;
23  class DtBaseOutlineAttribute;
24 
27 
30 
32  template <>
33  inline const char* creatorTypeName<DtValueBarAttribute>(void) { return "DtValueBarAttributeCreator"; }
34 
38  {
40 
41  public:
42 
44  virtual ~DtValueBarAttribute();
45 
47  DtValueBarAttribute() = delete;
48 
51  const DtValueBarAttribute &other) = delete;
52 
54  DtValueBarAttribute &operator=(
55  const DtValueBarAttribute &other) = delete;
56 
57  public:
58 
60  virtual void setOffset( double x, double y );
61 
64  virtual void setPosition( float x, float y, float z, float w );
65 
67  virtual void getMinSize( double& xOut, double& yOut );
68 
70  virtual void setSize( double x, double y );
71 
73  virtual void setValue( float val );
74 
76  virtual void setColor( float r, float g, float b, float a );
77 
79  virtual void setShadowText( bool enabled );
80 
82  virtual void setVisible( bool visible );
83 
85  virtual bool visible() const;
86 
88  virtual void setLodOutAltitude(double lodOutAltitude) override;
89 
91  virtual double lodOutAltitude() const override;
92 
94  virtual void setIsLodOutAltitudeEnabled(bool isEnabled) override;
95 
97  virtual bool isLodOutAltitudeEnabled() const override;
98 
101  virtual void setOverlay( unsigned int overlayId );
102 
105  virtual void setGroup( unsigned int group );
106 
107  protected:
111 
112  protected:
113 
116 
118 
119  double mySizeX;
120  double mySizeY;
121 
122  double myValue;
123 
126  };
127 
128 }
friend DtValueBarAttributeCreator
Definition: DtValueBarAttribute.h:39
DtVirtualBaseClassCreator< DtValueBarAttribute > DtValueBarAttributeCreator
creator
Definition: DtValueBarAttribute.h:26
DtBaseOutlineAttribute * myOutlineAttribute
Definition: DtValueBarAttribute.h:115
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
The attribute layout tells DtAttributes where to draw.
Definition: DtValueBarAttribute.h:37
double mySizeX
Definition: DtValueBarAttribute.h:119
The attribute layout tells DtAttributes where to draw.
Definition: DtBaseOutlineAttribute.h:36
The attribute layout tells DtAttributes where to draw.
Definition: DtAttribute.h:21
Attribute that generates a colored quad.
Definition: DtBaseQuadAttribute.h:38
bool myIsLodOutAltitudeEnabled
Definition: DtValueBarAttribute.h:125
Contains makVrv::DtWidget class.
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
double myLodOutAltitude
Definition: DtValueBarAttribute.h:124
DtDe & myDe
Definition: DtValueBarAttribute.h:117
DtBaseQuadAttribute * myQuadAttribute
Definition: DtValueBarAttribute.h:114
Contains DLL export macros.
double mySizeY
Definition: DtValueBarAttribute.h:120
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:76
Contains the DtAttribute class declaration.
const char * creatorTypeName< DtValueBarAttribute >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtValueBarAttribute.h:33
double myValue
Definition: DtValueBarAttribute.h:122

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)