VR-Forces 5.0.1 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) 2022 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <vrvOsg/DtAttribute.h>
14 
15 #include <vrvCore/DtWidget.h>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtBaseQuadAttribute;
22  class DtBaseOutlineAttribute;
23 
26 
29 
31  template <>
32  inline const char* creatorTypeName<DtValueBarAttribute>(void) { return "DtValueBarAttributeCreator"; }
33 
37  {
39 
40  public:
41 
43  virtual ~DtValueBarAttribute();
44 
46  DtValueBarAttribute() = delete;
47 
50  const DtValueBarAttribute &other) = delete;
51 
53  DtValueBarAttribute &operator=(
54  const DtValueBarAttribute &other) = delete;
55 
56  public:
57 
59  virtual void setOffset( double x, double y );
60 
63  virtual void setPosition( float x, float y, float z, float w );
64 
66  virtual void getMinSize( double& xOut, double& yOut );
67 
69  virtual void setSize( double x, double y );
70 
72  virtual void setValue( float val );
73 
75  virtual void setColor( float r, float g, float b, float a );
76 
78  virtual void setShadowText( bool enabled );
79 
81  virtual void setVisible( bool visible );
82 
84  virtual bool visible() const;
85 
87  virtual void setLodOutAltitude(double lodOutAltitude) override;
88 
90  virtual double lodOutAltitude() const override;
91 
93  virtual void setIsLodOutAltitudeEnabled(bool isEnabled) override;
94 
96  virtual bool isLodOutAltitudeEnabled() const override;
97 
100  virtual void setOverlay( unsigned int overlayId );
101 
104  virtual void setGroup( unsigned int group );
105 
106  protected:
110 
111  protected:
112 
115 
117 
118  double mySizeX;
119  double mySizeY;
120 
121  double myValue;
122 
125  };
126 
127 }
friend DtValueBarAttributeCreator
Definition: DtValueBarAttribute.h:38
DtVirtualBaseClassCreator< DtValueBarAttribute > DtValueBarAttributeCreator
creator
Definition: DtValueBarAttribute.h:25
DtBaseOutlineAttribute * myOutlineAttribute
Definition: DtValueBarAttribute.h:114
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
The attribute layout tells DtAttributes where to draw.
Definition: DtValueBarAttribute.h:36
double mySizeX
Definition: DtValueBarAttribute.h:118
The attribute layout tells DtAttributes where to draw.
Definition: DtBaseOutlineAttribute.h:37
The attribute layout tells DtAttributes where to draw.
Definition: DtAttribute.h:21
Attribute that generates a colored quad.
Definition: DtBaseQuadAttribute.h:37
bool myIsLodOutAltitudeEnabled
Definition: DtValueBarAttribute.h:124
Contains makVrv::DtWidget class.
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
double myLodOutAltitude
Definition: DtValueBarAttribute.h:123
DtDe & myDe
Definition: DtValueBarAttribute.h:116
DtBaseQuadAttribute * myQuadAttribute
Definition: DtValueBarAttribute.h:113
Contains DLL export macros.
double mySizeY
Definition: DtValueBarAttribute.h:119
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:70
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:32
double myValue
Definition: DtValueBarAttribute.h:121

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)