![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /***************************************************************************** 00002 * Copyright (c) 2011 MAK Technologies, Inc. 00003 * All rights reserved. 00004 *****************************************************************************/ 00005 00009 00010 #pragma once 00011 00012 #include <vrvGraphics/vrvGraphics.h> 00013 #include <vrvGraphics/DtOverlayResourceProvider.h> 00014 00015 namespace makVrv 00016 { 00017 00018 class DtQuadProxy; 00019 class DtBoundingBox; 00020 class DtQuadRenderer; 00021 class DtOverlayRenderer; 00022 00025 class DT_DLL_VRVGRAPHICS DtQuad 00026 { 00027 public: 00028 00029 enum FillType 00030 { 00031 Fill_Solid = 0, 00032 Fill_Stipple, 00033 Fill_Texture 00034 }; 00035 00036 public: 00037 00039 DtQuad( DtQuadRenderer& renderer ); 00040 00042 DtQuad( DtOverlayRenderer& renderer ); 00043 00045 ~DtQuad(); 00046 00048 void setPosition( float x, float y, float z, float w ); 00049 00051 void getPosition( float& x, float& y, float& z, float& w ) const; 00052 00054 void setRotation( float angle ); 00055 00057 void getRotation( float& angle ) const; 00058 00061 void setGroup( float order ); 00062 00064 float group() const; 00065 00067 void setColor( float r, float g, float b, float a ); 00068 00070 void getColor( float& r, float& g, float& b, float& a ) const; 00071 00074 void getBounds(DtBoundingBox& bounds) const; 00075 00078 void setPoints(const float points[8]); 00079 00082 void getPoints(float points[8]); 00083 00087 void setFillType( FillType type ); 00088 00090 FillType fillType() const; 00091 00096 void setFillParameter( unsigned int param, unsigned int fullStipplePattern[32] = 0 ); 00097 00099 void setTextureParameter( DtOverlayResourceProvider::NativeResourceHandle texture, 00100 float left = 0.0f, float right = 1.0f, float bottom = 0.0f, float top = 1.0f ); 00101 00103 DtOverlayResourceProvider::NativeResourceHandle textureParameter() const; 00104 00105 protected: 00106 00107 DtQuadProxy* myProxy; 00108 00109 }; 00110 00111 }