| 1859 | } |
| 1860 | |
| 1861 | int |
| 1862 | ASDShellT3::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 | } |
nothing calls this directly
no test coverage detected