VR-Forces 4.1.1 Class Documentation
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 
15 #include <boost/unordered_map.hpp>
16 #include <vector>
17 
18 namespace makVrv
19 {
20 
21  class DtOverlayResourceProvider;
22  class DtProjected2DTexturedEffect;
23 
27  {
28  public:
29 
32  unsigned int vertexCount, bool repeating = false );
33 
35  virtual ~DtTexturedPrimitiveStyle();
36 
38  virtual void add( unsigned int* indexPtr );
39 
41  virtual void remove( unsigned int index );
42 
44  virtual void render( int mode, unsigned int groupCount, bool geocentric,
45  float geocentricAlpha, const double cameraLocation[3] = 0,
46  const double positionMatrix[16] = 0, int offset = 0 );
47 
48 
51 
53  virtual void set3DVertexPosition( unsigned int index, unsigned int vertex,
54  float x, float y, float z, float w );
55 
57  virtual void get3DVertexPosition( unsigned int index, unsigned int vertex,
58  float& x, float& y, float& z, float& w ) const;
59 
61  virtual void set2DVertexPosition( unsigned int index, unsigned int vertex,
62  float x, float y );
63 
65  virtual void get2DVertexPosition( unsigned int index, unsigned int vertex,
66  float& x, float& y ) const;
67 
69  virtual void set2DOffsetRotation( unsigned int index,
70  unsigned int vertIndex, float angle );
71 
73  virtual void get2DOffsetRotation( unsigned int index,
74  unsigned int vertIndex, float& angle ) const;
75 
77  virtual void setColor( unsigned int index, unsigned int vertex,
78  float r, float g, float b, float a );
79 
81  virtual void getColor( unsigned int index, unsigned int vertex,
82  float& r, float& g, float& b, float& a ) const;
83 
85  virtual void setUVCoordinates( unsigned int index,
86  unsigned int vertIndex, float u, float v );
87 
89  virtual void getUVCoordinates( unsigned int index,
90  unsigned int vertIndex, float& u, float& v ) const;
91 
93 
94 
97 
100  virtual void setFillParameters( unsigned int index, void* fill,
101  unsigned int fullStipplePattern[32] = 0 );
102 
105  virtual void getFillParameters( unsigned int index, void*& fill,
106  unsigned int fullStipplePattern[32] ) const;
107 
110  virtual void setGroup( unsigned int index, float zFactor );
111 
114  virtual float group( unsigned int index ) const;
115 
117 
118  protected:
119 
121  virtual float* vertexData() const;
122 
124  virtual unsigned int vertexDataSize() const;
125 
127  void addIndexedTextureCache( unsigned int index, void* textureHandle );
128 
130  void removeIndexedTextureCache( unsigned int index, void* textureHandle );
131 
132  protected:
133 
135  {
136  unsigned int* indexPtr;
138  };
139 
140  typedef std::vector<DtOffsetColoredTexturedVertex> TexturedQuadVertexList;
141  typedef std::vector<TexturedQuadInfo> TexturedQuadInfoList;
142  typedef boost::unordered_map<void*,std::vector<unsigned int> > TextureIndexMap;
143 
150  };
151 
152 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)