void PlotSurface::createData()
{
Qwt3D::SurfacePlot::createData();
if(!ptrIsNul(_myData))
{
Qwt3D::setDeviceLineWidth( 2 );
glColor3d(0., 1., 1.);
glPushMatrix();
glScaled(_scaleX,_scaleY,_scaleZ);
glTranslated(_offsetX,_offsetY, _offsetZ);
glRotated(_angleZ,0.0,0.0,1.0);
glBegin( GL_LINES );
for(unsigned int i = 0; i < _myData->getNbLines(); i ++)
{
for(unsigned int j =0; j < _myData->getLine(i)->getNbPoints()-1; j++ )
{
Point<float,3> p1 = _myData->getLine(i)->getPoint(j);
Point<float,3> p2 = _myData->getLine(i)->getPoint(j+1);
glVertex3d(p1[0], p1[1], p1[2]);
glVertex3d(p2[0], p2[1], p2[2]);
}
}
glEnd();
glPopMatrix();
}
}
void PlotSurface::createData()
{
Qwt3D::SurfacePlot::createData();
if(!ptrIsNul(_myData))
{
Qwt3D::setDeviceLineWidth( 2 );
glColor3d(0., 1., 1.);
glPushMatrix();
glScaled(_scaleX,_scaleY,_scaleZ);
glTranslated(_offsetX,_offsetY, _offsetZ);
glRotated(_angleZ,0.0,0.0,1.0);
glBegin( GL_LINES );
for(unsigned int i = 0; i < _myData->getNbLines(); i ++)
{
for(unsigned int j =0; j < _myData->getLine(i)->getNbPoints()-1; j++ )
{
Point<float,3> p1 = _myData->getLine(i)->getPoint(j);
Point<float,3> p2 = _myData->getLine(i)->getPoint(j+1);
glVertex3d(p1[0], p1[1], p1[2]);
glVertex3d(p2[0], p2[1], p2[2]);
}
}
glEnd();
glPopMatrix();
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks