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

Method displaySelf

SRC/domain/node/Node.cpp:1781–1807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1779}
1780
1781int
1782Node::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():

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