FACT++  1.0
void BasicGlCamera::drawHexagon ( int  index,
bool  solid 
)
protected

Definition at line 856 of file BasicGlCamera.cc.

References verticesIndices, and verticesList.

Referenced by QCameraWidget::drawCamera(), drawCamera(), QCameraWidget::paintGL(), and RawDataViewer::paintGL().

857  {
858 /* float minX, maxX, minY, maxY;
859  minX = minY = 1e10;
860  maxX = maxY = -1e10;
861  for (int i=0;i<1438;i++)
862  {
863  for (int j=0;j<6;j++)
864  {
865  if (verticesList[verticesIndices[i][j]][0] > maxX)
866  maxX = verticesList[verticesIndices[i][j]][0];
867  if (verticesList[verticesIndices[i][j]][0] < minX)
868  minX = verticesList[verticesIndices[i][j]][0];
869  if (verticesList[verticesIndices[i][j]][1] > maxY)
870  maxY = verticesList[verticesIndices[i][j]][1];
871  if (verticesList[verticesIndices[i][j]][1] < minY)
872  minY = verticesList[verticesIndices[i][j]][1];
873  }
874  }
875  cout << "Min, Max X: " << minX << " " << maxX << endl;
876  cout << "Min, Max Y: " << minY << " " << maxY << endl;
877  exit(0);*/
878  if (solid)
879  glBegin(GL_POLYGON);
880  else
881  glBegin(GL_LINE_LOOP);
882 
883  glVertex2fv(verticesList[verticesIndices[index][0]]);
884  glVertex2fv(verticesList[verticesIndices[index][1]]);
885  glVertex2fv(verticesList[verticesIndices[index][2]]);
886  glVertex2fv(verticesList[verticesIndices[index][3]]);
887  glVertex2fv(verticesList[verticesIndices[index][4]]);
888  glVertex2fv(verticesList[verticesIndices[index][5]]);
889  if (solid)
890  glVertex2fv(verticesList[verticesIndices[index][0]]);
891 
892  glEnd();
893  }
static GLfloat verticesList[NPIX *6][2]
static int verticesIndices[NPIX][6]

+ Here is the caller graph for this function: