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

Method displaySelf

SRC/element/shell/ASDShellT3.cpp:1861–1887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1859}
1860
1861int
1862ASDShellT3::displaySelf(Renderer& theViewer, int displayMode, float fact, const char** modes, int numMode)
1863{
1864 // get the end point display coords
1865 static Vector v1(3);
1866 static Vector v2(3);
1867 static Vector v3(3);
1868 nodePointers[0]->getDisplayCrds(v1, fact, displayMode);
1869 nodePointers[1]->getDisplayCrds(v2, fact, displayMode);
1870 nodePointers[2]->getDisplayCrds(v3, fact, displayMode);
1871
1872 // place values in coords matrix
1873 static Matrix coords(3, 3);
1874 for (int i = 0; i < 3; i++) {
1875 coords(0, i) = v1(i);
1876 coords(1, i) = v2(i);
1877 coords(2, i) = v3(i);
1878 }
1879
1880 // set the quantity to be displayed at the nodes;
1881 static Vector values(3);
1882 for (int i = 0; i < 3; i++)
1883 values(i) = 0.0;
1884
1885 // draw the polygon
1886 return theViewer.drawPolygon(coords, values, this->getTag());
1887}

Callers

nothing calls this directly

Calls 3

getDisplayCrdsMethod · 0.45
drawPolygonMethod · 0.45
getTagMethod · 0.45

Tested by

no test coverage detected