VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtImageAttribute.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 
22  class DtDe;
23  class DtQuad;
24  class DtBaseQuadAttribute;
25  class DtBaseOutlineAttribute;
26  class DtOsgTextureWrapper;
29 
32 
34  template <>
35  inline const char* creatorTypeName<DtImageAttribute>(void) { return "DtImageAttributeCreator"; }
36 
40  {
42 
43  public:
44 
46  virtual ~DtImageAttribute();
47 
49  DtImageAttribute() = delete;
50 
53  const DtImageAttribute &other) = delete;
54 
56  DtImageAttribute &operator=(
57  const DtImageAttribute &other) = delete;
58 
59  public:
60 
62  virtual void setImageFilePath( const std::string& imageFilePath );
63 
66  virtual void setPosition( float x, float y, float z, float w );
67 
69  virtual void setOffset( double x, double y );
70 
72  virtual void getMinSize( double& xOut, double& yOut );
73 
75  virtual void setColor( float r, float g, float b, float a );
76 
78  virtual void setSize( double x, double y );
79 
82  virtual void setShadowText( bool enabled );
83 
85  virtual void setVisible( bool visible );
86 
88  virtual bool visible() const;
89 
91  virtual void setLodOutAltitude(double lodOutAltitude) override;
92 
94  virtual double lodOutAltitude() const override;
95 
97  virtual void setIsLodOutAltitudeEnabled(bool isEnabled) override;
98 
100  virtual bool isLodOutAltitudeEnabled() const override;
101 
104  virtual void setOverlay( unsigned int overlayId );
105 
108  virtual void setGroup( unsigned int group );
109 
110  protected:
111 
114  DtImageAttribute(DtDe& de);
115 
118  void updateImageBox();
119 
120  protected:
121 
125  std::string myImageFilePath;
127  double mySizeX;
128  double mySizeY;
131  };
132 
133 }
double myLodOutAltitude
Definition: DtImageAttribute.h:129
double mySizeY
Definition: DtImageAttribute.h:128
DtBaseQuadAttribute * myQuadAttribute
Definition: DtImageAttribute.h:122
const char * creatorTypeName< DtImageAttribute >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtImageAttribute.h:35
friend DtImageAttributeCreator
Definition: DtImageAttribute.h:41
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::string myImageFilePath
Definition: DtImageAttribute.h:125
DtOsgTextureWrapper * myQuadTexture
Definition: DtImageAttribute.h:126
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
Contains makVrv::DtWidget class.
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
The attribute layout tells DtAttributes where to draw.
Definition: DtImageAttribute.h:39
bool myIsLodOutAltitudeEnabled
Definition: DtImageAttribute.h:130
Interface for a texture. Used to pass in a texture to vrvGraphics.
Definition: DtOsgTextureWrapper.h:24
DtVirtualBaseClassCreator< DtImageAttribute > DtImageAttributeCreator
creator
Definition: DtImageAttribute.h:28
Contains DLL export macros.
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.
DtBaseOutlineAttribute * myOutlineAttribute
Definition: DtImageAttribute.h:123
double mySizeX
Definition: DtImageAttribute.h:127
DtDe & myDe
Definition: DtImageAttribute.h:124

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)