VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtQuad.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 
13 
14 namespace makVrv
15 {
16 
17  class DtQuadProxy;
18  class DtBoundingBox;
19  class DtQuadRenderer;
20  class DtOverlayRenderer;
21 
29  {
30  public:
31 
32  enum FillType
33  {
34  Fill_Solid = 0,
36  Fill_Texture
37  };
38 
39  public:
40 
42  DtQuad( DtQuadRenderer& renderer );
43 
45  DtQuad( DtOverlayRenderer& renderer );
46 
48  ~DtQuad();
49 
51  void setPosition( float x, float y, float z, float w );
52 
54  void getPosition( float& x, float& y, float& z, float& w ) const;
55 
57  void setRotation( float angle );
58 
60  void getRotation( float& angle ) const;
61 
64  void setGroup( float order );
65 
67  float group() const;
68 
70  void setColor( float r, float g, float b, float a );
71 
73  void getColor( float& r, float& g, float& b, float& a ) const;
74 
76  void setBounds( const DtBoundingBox& bounds );
77 
79  void getBounds( DtBoundingBox& bounds ) const;
80 
83  void setPoints( const float points[8] );
84 
87  void getPoints(float points[8]);
88 
91  void setPointsByMinimumAltitude( const float points[8], double cameraAltitude );
92 
98  void setIsForcedPointsByAltitudeEnabled(bool isEnabled);
99 
102  void setAltitudeForForcedPoints(double minimumAltitudeForUse);
103 
105  void clearAltitudeSpecificConfigurations();
106 
110  void setFillType( FillType type );
111 
113  FillType fillType() const;
114 
119  void setFillParameter( unsigned int param, unsigned int fullStipplePattern[32] = 0 );
120 
122  void setTextureParameter( DtOverlayResourceProvider::NativeResourceHandle texture,
123  float left = 0.0f, float right = 1.0f, float bottom = 0.0f, float top = 1.0f );
124 
126  DtOverlayResourceProvider::NativeResourceHandle textureParameter() const;
127 
130  void setLodOutAltitude(double lodOutAltitude);
131 
133  void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled);
134 
135  protected:
136 
138 
139  };
140 
141 }
Contains makVrv::DtOverlayResourceProvider class.
void * NativeResourceHandle
Definition: DtOverlayResourceProvider.h:33
A class which allocates and draws quads.
Definition: DtQuadRenderer.h:40
Definition: DtQuad.h:35
DtQuadProxy * myProxy
Definition: DtQuad.h:137
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
FillType
Definition: DtQuad.h:32
A flyweight class for controlling a single quad owned by the DtQuadRenderer. None of this class's mem...
Definition: DtQuadRenderer.h:111
A single 2D quadrilateral. None of this class's member functions are virtual because: ...
Definition: DtQuad.h:28
A simple bounding box.
Definition: DtBoundingBox.h:101
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:41

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)