VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtFlatPrimitiveStyle.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 
14 
15 #include <vector>
16 
17 namespace makVrv
18 {
19 
20  class DtOverlayResourceProvider;
21 
25  {
26  public:
27 
30  unsigned int vertexCountPerPrimitve );
31 
33  virtual ~DtFlatPrimitiveStyle();
34 
36  virtual void add( unsigned int* index );
37 
39  virtual void remove( unsigned int index );
40 
42  virtual void render( int mode, unsigned int groupCount, bool geocentric,
43  float geocentricAlpha, const double cameraLocation[3],
44  const double positionMatrix[16],
45  const double projectionMatrix[16],
46  int offset);
47 
48 
51 
53  virtual void set3DVertexPosition( unsigned int index, unsigned int vertex,
54  float x, float y, float z, float w = 0 );
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 vertIndex,
78  float r, float g, float b, float a );
79 
81  virtual void getColor( unsigned int index, unsigned int vertIndex,
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] = 0 ) 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 
126  protected:
127 
128  typedef std::vector<DtOffsetColoredVertex> QuadVertexList;
132 
133  };
134 
135 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)