FACT++  1.0
void QCameraWidget::drawPatches ( )
virtual

Reimplemented from BasicGlCamera.

Definition at line 190 of file QCameraWidget.cc.

References first, BasicGlCamera::fWhitePatch, highlightedPatches, BasicGlCamera::highlightedPatchesCoulour, i, NTMARK, BasicGlCamera::patchesCoulour, BasicGlCamera::patchesIndices, second, and BasicGlCamera::verticesList.

Referenced by paintGL().

191  {
192  glLineWidth(3.0f);
193  glColor3fv(patchesCoulour);
194  glBegin(GL_LINES);
195  for (int i=0;i<NTMARK;i++)
196  {
197  for (unsigned int j=0;j<patchesIndices[i].size();j++)
198  {
199  glVertex2fv(verticesList[patchesIndices[i][j].first]);
200  glVertex2fv(verticesList[patchesIndices[i][j].second]);
201  }
202  }
203  glEnd();
204  glTranslatef(0,0,0.1f);
205 
206  glColor3fv(highlightedPatchesCoulour);
207  glBegin(GL_LINES);
208  for (vector<int>::iterator it=highlightedPatches.begin(); it!= highlightedPatches.end(); it++)
209  {
210  for (unsigned int j=0;j<patchesIndices[*it].size();j++)
211  {
212  glVertex2fv(verticesList[patchesIndices[*it][j].first]);
213  glVertex2fv(verticesList[patchesIndices[*it][j].second]);
214  }
215  }
216  glEnd();
217  if (fWhitePatch != -1)
218  {
219  glTranslatef(0,0,0.01);
220  glColor3f(1.f, 0.6f, 0.f);//patchColour);//[0],patchColour[1],patchColour[2]);//0.5f, 0.5f, 0.3f);
221  glBegin(GL_LINES);
222  for (unsigned int j=0;j<patchesIndices[fWhitePatch].size();j++)
223  {
224  glVertex2fv(verticesList[patchesIndices[fWhitePatch][j].first]);
225  glVertex2fv(verticesList[patchesIndices[fWhitePatch][j].second]);
226  }
227  glEnd();
228  }
229 
230  }
GLfloat highlightedPatchesCoulour[3]
Definition: BasicGlCamera.h:68
int i
Definition: db_dim_client.c:21
int64_t second
offset of this column in the tile, from the start of the heap area
Definition: zofits.h:27
static GLfloat verticesList[NPIX *6][2]
GLfloat patchesCoulour[3]
Definition: BasicGlCamera.h:67
int64_t first
Size of this column in the tile.
Definition: zofits.h:26
static std::vector< edge > patchesIndices[160]
#define NTMARK
Definition: BasicGlCamera.h:6
std::vector< int > highlightedPatches
Definition: QCameraWidget.h:21

+ Here is the caller graph for this function: