VR-Vantage
Loading...
Searching...
No Matches
DtSprite.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright (c) 2026 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5
9
10#pragma once
11
13
15
16namespace makVrv
17{
18
19 class DtQuadProxy;
20 class DtPickableQuad;
21 class DtWidgetPicker;
23
27 {
28 public:
29
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
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
113
116 DtTextureInterface* textureHandle,
117 float left = 0.0f, float right = 1.0f, float bottom = 0.0f,
118 float top = 1.0f );
119
122
124 virtual void setColor( float r, float g, float b, float a );
125
131 virtual void setFadingEnabled( float flags );
132
134 virtual void setGroup( unsigned int group );
135
137 virtual unsigned int group() const;
138
140 virtual const DtQuadProxy& quad() const;
141
144 virtual const DtPickableQuad* findWidget() const;
145
146 protected:
147
151
152 };
153
154}
Contains the makVrv::DtQuadProxyInterface class declaration.
Definition DtOverlayRenderer.h:68
Definition DtPickableWidget.h:126
Definition DtQuadProxy.h:27
FillType
Definition DtQuadProxyInterface.h:26
virtual void setEventsEnabled(bool enabled, unsigned long long userData=0)
DtTextureInterface * textureParameter() const
Get the quad texture parameter.
virtual void setGroup(unsigned int group)
Set the group of the sprite.
virtual void setPointsByMinimumAltitude(const float points[8], double minimumAltitude)
DtWidgetPicker & myPicker
Definition DtSprite.h:148
virtual void setAltitudeForForcedPoints(double altitude)
virtual void setPosition(float x, float y, float z, float w=0)
Set the quad position.
virtual ~DtSprite()
DTOR.
DtPickableQuad * myWidget
Definition DtSprite.h:150
virtual void setColor(float r, float g, float b, float a)
Set the quad color.
virtual const DtQuadProxy & quad() const
get the quad
virtual bool eventsEnabled() const
Get whether events are already enabled.
virtual void setFillType(DtQuadProxyInterface::FillType type)
Set the fill type.
virtual void setMaximumWorldHeight(double worldHeightInMeters)
virtual void setMaximumWorldWidth(double worldWidthInMeters)
virtual unsigned int group() const
Get the group of the sprite.
DtSprite(const DtSprite &other)=delete
Copy Constructor not implemented - Copy not allowed.
virtual void setLodOutAltitude(double lodOutAltitude)
virtual void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled)
virtual void setTextureParameter(DtTextureInterface *textureHandle, float left=0.0f, float right=1.0f, float bottom=0.0f, float top=1.0f)
Set the quads texture parameters.
DtQuadProxy * myQuad
Definition DtSprite.h:149
virtual void setFadingEnabled(float flags)
virtual void setIsForcedPointsByAltitudeEnabled(bool isEnabled)
virtual void setRotation(float angle)
Set the quad rotation.
virtual void setPoints(const float points[8])
Set the quad corners.
DtSprite & operator=(const DtSprite &other)=delete
Assignment Operator not implemented - Assignment not allowed.
virtual DtPickableQuad * findWidget()
Attempt to find the widget. If events are disabled there is no widget.
void setIsRotationInScreenSpace(bool isRotationInScreenSpace)
virtual void clearAltitudeSpecificConfigurations()
Clear all altitude-specific configurations.
DtSprite * clone(DtOverlayRenderer &renderer, DtWidgetPicker &picker) const
Create a clone, of the sprite, potentially on a new layer.
DtSprite(DtOverlayRenderer &renderer, DtWidgetPicker &picker)
CTOR.
virtual const DtPickableQuad * findWidget() const
Interface for a texture. Used to pass in a texture to vrvGraphics.
Definition DtTextureInterface.h:27
Definition DtWidgetPicker.h:54
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition vrvGraphics.h:19
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16