VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAttribute.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 #include <vrvCore/DtWidget.h>
13 
14 #include <vrvUtil/signalslib.h>
15 
16 namespace makVrv
17 {
18 
22  {
23  public:
24 
26  DtAttribute();
27 
29  virtual ~DtAttribute();
30 
33  const DtAttribute &other) = delete;
34 
36  DtAttribute &operator=(
37  const DtAttribute &other) = delete;
38 
39  public:
40 
43  virtual void setPosition( float x, float y, float z, float w ) = 0;
44 
46  virtual void setOffset( double x, double y );
47 
49  virtual void getMinSize( double& xOut, double& yOut ) = 0;
50 
52  virtual void setColor( float r, float g, float b, float a ) = 0;
53 
55  virtual void setSize( double x, double y ) = 0;
56 
58  virtual void setShadowText( bool enabled ) = 0;
59 
61  virtual void setVisible( bool visible ) = 0;
62 
64  virtual bool visible() const = 0;
65 
68  virtual void setLodOutAltitude(double lodOutAltitude) = 0;
69 
71  virtual double lodOutAltitude() const = 0;
72 
74  virtual void setIsLodOutAltitudeEnabled(bool isEnabled) = 0;
75 
77  virtual bool isLodOutAltitudeEnabled() const = 0;
78 
81  virtual void setOverlay( unsigned int overlayId ) = 0;
82 
85  virtual void setGroup( unsigned int group ) = 0;
86 
90  virtual void setForegroundGroup( unsigned int group );
91 
95  virtual void setBackgroundGroup( unsigned int group );
96 
101  boost::signalslib::signal<void (DtAttribute*,double,double)> signal_sizeChanged;
102 
103  };
104 
105 }
boost::signalslib::signal< void(DtAttribute *, double, double)> signal_sizeChanged
Emitted when the attribute&#39;s size changes.
Definition: DtAttribute.h:101
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
The attribute layout tells DtAttributes where to draw.
Definition: DtAttribute.h:21
Contains makVrv::DtWidget class.
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)