| 1824 | } |
| 1825 | |
| 1826 | int |
| 1827 | Node::displaySelf(Renderer &theRenderer, int displayMode, float fact) |
| 1828 | { |
| 1829 | |
| 1830 | if (displayMode == 0) |
| 1831 | return 0; |
| 1832 | |
| 1833 | // const Vector &theDisp = this->getDisp(); |
| 1834 | static Vector position(3); |
| 1835 | |
| 1836 | this->getDisplayCrds(position, fact, displayMode); |
| 1837 | |
| 1838 | if (displayMode == -1) { |
| 1839 | // draw a text string containing tag |
| 1840 | static char theText[20]; |
| 1841 | sprintf(theText,"%d",this->getTag()); |
| 1842 | return theRenderer.drawText(position, theText, (int) strlen(theText)); |
| 1843 | |
| 1844 | } else if (displayMode > 0) { |
| 1845 | // draw a point - pixel size equals displayMode tag |
| 1846 | return theRenderer.drawPoint(position, 0.0, this->getTag(), 0, displayMode); |
| 1847 | } |
| 1848 | |
| 1849 | |
| 1850 | return 0; |
| 1851 | } |
| 1852 | |
| 1853 | |
| 1854 | // createDisp(), createVel() and createAccel(): |
nothing calls this directly
no test coverage detected