| 1779 | } |
| 1780 | |
| 1781 | int |
| 1782 | Node::displaySelf(Renderer &theRenderer, int theEleMode, int theNodeMode, float fact) |
| 1783 | { |
| 1784 | |
| 1785 | if (theNodeMode == 0) |
| 1786 | return 0; |
| 1787 | |
| 1788 | // const Vector &theDisp = this->getDisp(); |
| 1789 | static Vector position(3); |
| 1790 | |
| 1791 | // display coordinates should be based on eleMode, not on nodeMode - ambaker1 |
| 1792 | this->getDisplayCrds(position, fact, theEleMode); |
| 1793 | |
| 1794 | if (theNodeMode == -1) { |
| 1795 | // draw a text string containing tag |
| 1796 | static char theText[20]; |
| 1797 | sprintf(theText,"%d",this->getTag()); |
| 1798 | return theRenderer.drawText(position, theText, (int) strlen(theText)); |
| 1799 | |
| 1800 | } else if (theNodeMode > 0) { |
| 1801 | // draw a point - pixel size equals displayMode tag |
| 1802 | return theRenderer.drawPoint(position, 0.0, this->getTag(), 0, theNodeMode); |
| 1803 | } |
| 1804 | |
| 1805 | |
| 1806 | return 0; |
| 1807 | } |
| 1808 | |
| 1809 | |
| 1810 | // createDisp(), createVel() and createAccel(): |
nothing calls this directly
no test coverage detected