| 65 | |
| 66 | |
| 67 | AlgorithmIncrements::AlgorithmIncrements(EquiSolnAlgo *theEquiAlgo, |
| 68 | const char *windowTitle, |
| 69 | int xLoc, int yLoc, int width, int height, |
| 70 | bool displayOnRecord, const char *theFileName) |
| 71 | :Recorder(RECORDER_TAGS_AlgorithmIncrements), |
| 72 | theMap(0), theRenderer(0), numRecord(0), displayRecord(displayOnRecord), fileName(0) |
| 73 | { |
| 74 | |
| 75 | theAlgo = theEquiAlgo; |
| 76 | |
| 77 | // create the window in which we plot on the screen |
| 78 | theMap = new PlainMap(); |
| 79 | #ifdef _WGL |
| 80 | theRenderer = new OpenGLRenderer(windowTitle, xLoc, yLoc, width, height, *theMap); |
| 81 | #elif _GLX |
| 82 | theRenderer = new OpenGLRenderer(windowTitle, xLoc, yLoc, width, height, *theMap); |
| 83 | #elif _AGL |
| 84 | theRenderer = new OpenGLRenderer(windowTitle, xLoc, yLoc, width, height, *theMap); |
| 85 | #else |
| 86 | theRenderer = new X11Renderer(windowTitle, xLoc, yLoc, width, height, *theMap); |
| 87 | #endif |
| 88 | // set up for standard xy-plot - rendering in the xy plane at z =0 |
| 89 | theRenderer->setVRP(0.0, 0.0, 0.0); |
| 90 | theRenderer->setVPN(0.0, 0.0, 1.0); |
| 91 | theRenderer->setVUP(0.0, 1.0, 0.0); |
| 92 | theRenderer->setFillMode("wire"); // wire mode |
| 93 | theRenderer->setPlaneDist(1.0, 100.0); |
| 94 | theRenderer->setPRP(0.0, 0.0, 10.0); |
| 95 | |
| 96 | if (theFileName != 0) { |
| 97 | fileName = new char[strlen(theFileName) + 1]; |
| 98 | strcpy(fileName, theFileName); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | AlgorithmIncrements::~AlgorithmIncrements() |
| 103 | { |
nothing calls this directly
no test coverage detected