VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSprite.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 
13 
15 
16 namespace makVrv
17 {
18 
19  class DtQuadProxy;
20  class DtPickableQuad;
21  class DtWidgetPicker;
22  class DtOverlayRenderer;
23 
27  {
28  public:
29 
31  DtSprite( DtOverlayRenderer& renderer, DtWidgetPicker& picker );
32 
34  DtSprite* clone( DtOverlayRenderer& renderer, DtWidgetPicker& picker ) const;
35 
37  virtual ~DtSprite();
38 
40  DtSprite(const DtSprite &other) = delete;
41 
43  DtSprite &operator=(const DtSprite &other) = delete;
44 
45  public:
46 
51  virtual void setEventsEnabled( bool enabled, unsigned long long userData = 0 );
52 
54  virtual bool eventsEnabled() const;
55 
57  virtual void setPosition( float x, float y, float z, float w = 0 );
58 
60  virtual void setPoints( const float points[8] );
61 
64  virtual void setPointsByMinimumAltitude( const float points[8], double minimumAltitude );
65 
71  virtual void setIsForcedPointsByAltitudeEnabled(bool isEnabled);
72 
75  virtual void setAltitudeForForcedPoints(double altitude);
76 
78  virtual void clearAltitudeSpecificConfigurations();
79 
81  virtual void setRotation( float angle );
82 
88  void setIsRotationInScreenSpace(bool isRotationInScreenSpace);
89 
93  virtual void setLodOutAltitude(double lodOutAltitude);
94 
97  virtual void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled);
98 
103  virtual void setMaximumWorldHeight(double worldHeightInMeters);
104 
109  virtual void setMaximumWorldWidth(double worldWidthInMeters);
110 
112  virtual void setFillType( DtQuadProxyInterface::FillType type );
113 
115  virtual void setTextureParameter(
116  DtTextureInterface* textureHandle,
117  float left = 0.0f, float right = 1.0f, float bottom = 0.0f,
118  float top = 1.0f );
119 
121  DtTextureInterface* textureParameter() const;
122 
124  virtual void setColor( float r, float g, float b, float a );
125 
127  virtual void setGroup( unsigned int group );
128 
130  virtual unsigned int group() const;
131 
133  virtual const DtQuadProxy& quad() const;
134 
136  virtual DtPickableQuad* findWidget();
137  virtual const DtPickableQuad* findWidget() const;
138 
139  protected:
140 
144 
145  };
146 
147 }
A synchronized Quad and Widget for a interactive visible 2D graphic.
Definition: DtSprite.h:26
The DtPickableQuad is a pickable widget that matches the Quad interface.
Definition: DtPickableWidget.h:125
DtWidgetPicker & myPicker
Definition: DtSprite.h:141
Interface for a texture. Used to pass in a texture to vrvGraphics.
Definition: DtTextureInterface.h:24
DtPickableQuad * myWidget
Definition: DtSprite.h:143
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
DtQuadProxy * myQuad
Definition: DtSprite.h:142
Contains the makVrv::DtQuadProxyInterface class declaration.
A flyweight class for controlling a single quad owned by the DtQuadRenderer.
Definition: DtQuadProxy.h:26
FillType
Definition: DtQuadProxyInterface.h:25
The picker class which allocates and does picking operations on widgets.
Definition: DtWidgetPicker.h:53
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:67

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)