VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTexturedPrimitiveStyle.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <boost/unordered_map.hpp>
15 #include <vector>
16 
17 namespace makVrv
18 {
19 
20  class DtOverlayResourceProvider;
21  class DtProjected2DTexturedEffect;
22 
26  {
27  public:
28 
31  unsigned int vertexCount, bool repeating = false );
32 
34  virtual ~DtTexturedPrimitiveStyle();
35 
37  virtual void add( unsigned int* indexPtr );
38 
40  virtual void remove( unsigned int index );
41 
43  virtual void render( int mode, unsigned int groupCount, bool geocentric,
44  float geocentricAlpha, const double cameraLocation[3],
45  const double positionMatrix[16],
46  const double projectionMatrix[16],
47  int offset);
48 
49 
52 
54  virtual void set3DVertexPosition( unsigned int index, unsigned int vertex,
55  float x, float y, float z, float w );
56 
58  virtual void get3DVertexPosition( unsigned int index, unsigned int vertex,
59  float& x, float& y, float& z, float& w ) const;
60 
62  virtual void set2DVertexPosition( unsigned int index, unsigned int vertex,
63  float x, float y );
64 
66  virtual void get2DVertexPosition( unsigned int index, unsigned int vertex,
67  float& x, float& y ) const;
68 
70  virtual void set2DOffsetRotation( unsigned int index,
71  unsigned int vertIndex, float angle );
72 
74  virtual void get2DOffsetRotation( unsigned int index,
75  unsigned int vertIndex, float& angle ) const;
76 
78  virtual void setColor( unsigned int index, unsigned int vertex,
79  float r, float g, float b, float a );
80 
82  virtual void getColor( unsigned int index, unsigned int vertex,
83  float& r, float& g, float& b, float& a ) const;
84 
86  virtual void setUVCoordinates( unsigned int index,
87  unsigned int vertIndex, float u, float v );
88 
90  virtual void getUVCoordinates( unsigned int index,
91  unsigned int vertIndex, float& u, float& v ) const;
92 
94 
95 
98 
101  virtual void setFillParameters( unsigned int index, void* fill,
102  unsigned int fullStipplePattern[32] = 0 );
103 
106  virtual void getFillParameters( unsigned int index, void*& fill,
107  unsigned int fullStipplePattern[32] ) const;
108 
111  virtual void setGroup( unsigned int index, float zFactor );
112 
115  virtual float group( unsigned int index ) const;
116 
118 
119  protected:
120 
122  virtual float* vertexData() const;
123 
125  virtual unsigned int vertexDataSize() const;
126 
128  void addIndexedTextureCache( unsigned int index, void* textureHandle );
129 
131  void removeIndexedTextureCache( unsigned int index, void* textureHandle );
132 
133  protected:
134 
136  {
137  unsigned int* indexPtr;
139  };
140 
141  typedef std::vector<DtOffsetColoredTexturedVertex> TexturedQuadVertexList;
142  typedef std::vector<TexturedQuadInfo> TexturedQuadInfoList;
143  typedef boost::unordered_map<void*,std::vector<unsigned int> > TextureIndexMap;
144 
151  };
152 
153 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)