MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / displaySelf

Method displaySelf

DEVELOPER/core/Node.cpp:1826–1851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1824}
1825
1826int
1827Node::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():

Callers

nothing calls this directly

Calls 4

getDisplayCrdsMethod · 0.95
getTagMethod · 0.45
drawTextMethod · 0.45
drawPointMethod · 0.45

Tested by

no test coverage detected