1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
void Calcul::resultats()
{
scene->addItem(new Edge(nodeO,node1));
if(tmparete.sens== true)
scene->addItem(new Edge(node1,nodeO));
double RadangleH = (( dblAngleH + g0)* Pi/2 )/100;
double x = (originePt.getX() + dblDistHoriz * sin(RadangleH));
double y = (originePt.getY() + dblDistHoriz * cos(RadangleH));
if (Utils::hasCoordinates(tmparete.destination->getNumero()))
{
query.exec("SELECT x,y FROM caltopoPoint WHERE numeroStation= "+tmparete.destination->getNumero());
while(query.next())
{
x= query.value(0).toDouble();
y =query.value(1).toDouble();
qDebug () <<"reférence:"<<tmparete.destination->getNumero()<<"x"<< y <<"y: "<<x;
FenPrincipale::tex->append("reférence: "+mparete.destination->getNumero()+ "x "+y+ "y: "+x;
} |
Partager