|
|
@ -543,9 +543,9 @@ void GraphWidget::drawEdge(const TQString& sCaller, const TQString& sCallee,
|
|
|
|
// Draw the edge
|
|
|
|
// Draw the edge
|
|
|
|
pEdge->show();
|
|
|
|
pEdge->show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef M_PI
|
|
|
|
#define PI 3.14159265
|
|
|
|
#define M_PI 3.14159265
|
|
|
|
|
|
|
|
#endif
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Sets and computes values used for drawing arrows.
|
|
|
|
* Sets and computes values used for drawing arrows.
|
|
|
|
* Initialises the static ArroInfo structure, which is passed in drawEdge().
|
|
|
|
* Initialises the static ArroInfo structure, which is passed in drawEdge().
|
|
|
@ -558,7 +558,7 @@ void GraphWidget::setArrowInfo(int nLength, int nDegrees)
|
|
|
|
double dRad;
|
|
|
|
double dRad;
|
|
|
|
|
|
|
|
|
|
|
|
// Turn degrees into radians
|
|
|
|
// Turn degrees into radians
|
|
|
|
dRad = ((double)nDegrees) * PI / 180.0;
|
|
|
|
dRad = ((double)nDegrees) * M_PI / 180.0;
|
|
|
|
|
|
|
|
|
|
|
|
s_ai.m_dLength = (double)nLength;
|
|
|
|
s_ai.m_dLength = (double)nLength;
|
|
|
|
s_ai.m_dTan = tan(dRad);
|
|
|
|
s_ai.m_dTan = tan(dRad);
|
|
|
|