FACT++  1.0
void Q3DCameraWidget::paintGL ( )
protectedvirtual

Reimplemented from BasicGlCamera.

Definition at line 78 of file Q3DCameraWidget.cc.

References _colorB, _colorG, _colorR, _x, _y, _z, i, rotation, rotationy, and transZ.

79  {
80  makeCurrent();
81  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
82  glLoadIdentity();
83 
84  glTranslatef(-0.0,-0.0, -5);
85  glTranslatef(0,0,(float)(transZ));
86  glRotatef((float)rotationy,1.0,0.0,0.0);
87  glRotatef((float)rotation, 0.0, 1.0, 0.0);
88 
89  glColor3f(1.0,0.0,0.0);
90 
91  glBegin(GL_TRIANGLES);
92  for (int i=0;i<1439;i++)
93  {
94  for (int j=6;j<250;j++)
95  {
96  //get the 4 vertices that we need for drawing this patch
97  glColor3f(_colorR[i*300+j],_colorG[i*300+j],_colorB[i*300+j]);
98  glVertex3f(_x[i*300+j], _y[i*300+j], _z[i*300+j]);
99  glColor3f(_colorR[i*300+j+1],_colorG[i*300+j+1],_colorB[i*300+j+1]);
100  glVertex3f(_x[i*300+j+1], _y[i*300+j+1], _z[i*300+j+1]);
101  glColor3f(_colorR[(i+1)*300+j],_colorG[(i+1)*300+j],_colorB[(i+1)*300+j]);
102  glVertex3f(_x[(i+1)*300+j], _y[(i+1)*300+j], _z[(i+1)*300+j]);
103 
104  glColor3f(_colorR[i*300+j+1],_colorG[i*300+j+1],_colorB[i*300+j+1]);
105  glVertex3f(_x[i*300+j+1], _y[i*300+j+1], _z[i*300+j+1]);
106  glColor3f(_colorR[(i+1)*300+j+1],_colorG[(i+1)*300+j+1],_colorB[(i+1)*300+j+1]);
107  glVertex3f(_x[(i+1)*300+j+1], _y[(i+1)*300+j+1], _z[(i+1)*300+j+1]);
108  glColor3f(_colorR[(i+1)*300+j],_colorG[(i+1)*300+j],_colorB[(i+1)*300+j]);
109  glVertex3f(_x[(i+1)*300+j], _y[(i+1)*300+j], _z[(i+1)*300+j]);
110 
111  }
112  }
113  glEnd();
114 
115  }
vector< float > _y
int rotation
int i
Definition: db_dim_client.c:21
vector< float > _colorG
vector< float > _colorB
vector< float > _x
vector< float > _z
int rotationy
float transZ
vector< float > _colorR