VR-Forces 4.10 Class Documentation
 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) 2011 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 
25  {
26  public:
27 
28  enum FillType
29  {
30  Fill_Solid = 0,
32  Fill_Texture
33  };
34 
35  public:
36 
38  DtQuad( DtQuadRenderer& renderer );
39 
41  DtQuad( DtOverlayRenderer& renderer );
42 
44  ~DtQuad();
45 
47  void setPosition( float x, float y, float z, float w );
48 
50  void getPosition( float& x, float& y, float& z, float& w ) const;
51 
53  void setRotation( float angle );
54 
56  void getRotation( float& angle ) const;
57 
60  void setGroup( float order );
61 
63  float group() const;
64 
66  void setColor( float r, float g, float b, float a );
67 
69  void getColor( float& r, float& g, float& b, float& a ) const;
70 
72  void setBounds( const DtBoundingBox& bounds );
73 
75  void getBounds( DtBoundingBox& bounds ) const;
76 
79  void setPoints( const float points[8] );
80 
83  void getPoints( float points[8] );
84 
88  void setFillType( FillType type );
89 
91  FillType fillType() const;
92 
97  void setFillParameter( unsigned int param, unsigned int fullStipplePattern[32] = 0 );
98 
100  void setTextureParameter( DtOverlayResourceProvider::NativeResourceHandle texture,
101  float left = 0.0f, float right = 1.0f, float bottom = 0.0f, float top = 1.0f );
102 
104  DtOverlayResourceProvider::NativeResourceHandle textureParameter() const;
105 
106  protected:
107 
109 
110  };
111 
112 }
void * NativeResourceHandle
Definition: DtOverlayResourceProvider.h:33
A class which allocates and draws quads.
Definition: DtQuadRenderer.h:27
Definition: DtQuad.h:31
DtQuadProxy * myProxy
Definition: DtQuad.h:108
#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:28
A flyweight class for controlling a single quad owned by the DtQuadRenderer.
Definition: DtQuadRenderer.h:97
A single 2D quadrilateral.
Definition: DtQuad.h:24
A simple bounding box.
Definition: DtBoundingBox.h:101
The DtOverlayRenderer implements the overlay concept.
Definition: DtOverlayRenderer.h:23

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)