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] = 0,
45  const double positionMatrix[16] = 0, int offset = 0 );
46 
47 
50 
52  virtual void set3DVertexPosition( unsigned int index, unsigned int vertex,
53  float x, float y, float z, float w );
54 
56  virtual void get3DVertexPosition( unsigned int index, unsigned int vertex,
57  float& x, float& y, float& z, float& w ) const;
58 
60  virtual void set2DVertexPosition( unsigned int index, unsigned int vertex,
61  float x, float y );
62 
64  virtual void get2DVertexPosition( unsigned int index, unsigned int vertex,
65  float& x, float& y ) const;
66 
68  virtual void set2DOffsetRotation( unsigned int index,
69  unsigned int vertIndex, float angle );
70 
72  virtual void get2DOffsetRotation( unsigned int index,
73  unsigned int vertIndex, float& angle ) const;
74 
76  virtual void setColor( unsigned int index, unsigned int vertex,
77  float r, float g, float b, float a );
78 
80  virtual void getColor( unsigned int index, unsigned int vertex,
81  float& r, float& g, float& b, float& a ) const;
82 
84  virtual void setUVCoordinates( unsigned int index,
85  unsigned int vertIndex, float u, float v );
86 
88  virtual void getUVCoordinates( unsigned int index,
89  unsigned int vertIndex, float& u, float& v ) const;
90 
92 
93 
96 
99  virtual void setFillParameters( unsigned int index, void* fill,
100  unsigned int fullStipplePattern[32] = 0 );
101 
104  virtual void getFillParameters( unsigned int index, void*& fill,
105  unsigned int fullStipplePattern[32] ) const;
106 
109  virtual void setGroup( unsigned int index, float zFactor );
110 
113  virtual float group( unsigned int index ) const;
114 
116 
117  protected:
118 
120  virtual float* vertexData() const;
121 
123  virtual unsigned int vertexDataSize() const;
124 
126  void addIndexedTextureCache( unsigned int index, void* textureHandle );
127 
129  void removeIndexedTextureCache( unsigned int index, void* textureHandle );
130 
131  protected:
132 
134  {
135  unsigned int* indexPtr;
137  };
138 
139  typedef std::vector<DtOffsetColoredTexturedVertex> TexturedQuadVertexList;
140  typedef std::vector<TexturedQuadInfo> TexturedQuadInfoList;
141  typedef boost::unordered_map<void*,std::vector<unsigned int> > TextureIndexMap;
142 
149  };
150 
151 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)