PDA

View Full Version : display the number of every node in 3d surfaceplot



panagiotisss
8th October 2012, 12:31
hi! i want to display the number of every node in a 3d surfaceplot i add the data with loadFromData(Qwt3D::TripleField,Qwt3D::CellField ); but i only get the lines(edges) in 3dspace how can i display also a number for every node?? the code that i use is




alpha::alpha(QWidget* parent)
:SurfacePlot(parent)
{
setPlotStyle(Qwt3D::WIREFRAME);
setRotation(30,0,15);
setScale(1,1,1);
setZoom(0.9);
setShift(0.15,0,0);



//const QModelIndex mi;


//m->getdata1() returns Qwt3D::TripleField and m->GetData2() returns Qwt3D::CellField
loadFromData(m->GetData1(), m->GetData2());

for (unsigned i=0; i!=coordinates()->axes.size(); ++i)
{
coordinates()->axes[i].setMajors(7);
coordinates()->axes[i].setMinors(4);
}

coordinates()->axes[Qwt3D::X1].setLabelString("x-axis");
coordinates()->axes[Qwt3D::Y1].setLabelString("y-axis");
coordinates()->axes[Qwt3D::Z1].setLabelString("z-axis");

setCoordinateStyle(Qwt3D::FRAME);
setMeshLineWidth(2);
updateData();
updateGL();
}