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

Method FilePlotter

SRC/recorder/FilePlotter.cpp:64–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62#include "FilePlotter.h"
63
64FilePlotter::FilePlotter(const char *_fileName1,
65 const char *windowTitle,
66 int xLoc, int yLoc, int width, int height, double dT, double rTolDt)
67 :Recorder(RECORDER_TAGS_FilePlotter),
68 theMap(0), theRenderer(0), cols(0), deltaT(dT), relDeltaTTol(rTolDt), nextTimeStampToRecord(0.0),
69 data1a(0), data1b(0), data2a(0), data2b(0)
70{
71
72 // create the window in which we plot on the screen
73 theMap = new PlainMap();
74#ifdef _WGL
75 theRenderer = new OpenGLRenderer(windowTitle, xLoc, yLoc, width, height, *theMap);
76#elif _GLX
77 theRenderer = new OpenGLRenderer(windowTitle, xLoc, yLoc, width, height, *theMap);
78#elif _AGL
79 theRenderer = new OpenGLRenderer(windowTitle, xLoc, yLoc, width, height, *theMap);
80#else
81 theRenderer = new X11Renderer(windowTitle, xLoc, yLoc, width, height, *theMap);
82#endif
83 // set up for standard xy-plot - rendering in the xy plane at z =0
84 theRenderer->setVRP(0.0, 0.0, 0.0);
85 theRenderer->setVPN(0.0, 0.0, 1.0);
86 theRenderer->setVUP(0.0, 1.0, 0.0);
87 theRenderer->setFillMode("wire"); // wire mode
88 theRenderer->setProjectionMode("parallel"); // wire mode
89 theRenderer->setPlaneDist(1.0, -1.0);
90 theRenderer->setPRP(0.0, 0.0, 10.0);
91 theRenderer->setPortWindow(-1.0, 1.0, -1.0, 1.0); // use the whole window
92
93 // copy the file name
94 fileName1 = new char[strlen(_fileName1)+1];
95 if (fileName1 == 0) {
96 opserr << "FilePlotter::FilePlotter -- out of memory copying fileName1 " << endln;
97 }
98 strcpy(fileName1, _fileName1);
99
100 fileName2 = 0;
101}
102
103
104

Callers

nothing calls this directly

Calls 8

setVRPMethod · 0.45
setVPNMethod · 0.45
setVUPMethod · 0.45
setFillModeMethod · 0.45
setProjectionModeMethod · 0.45
setPlaneDistMethod · 0.45
setPRPMethod · 0.45
setPortWindowMethod · 0.45

Tested by

no test coverage detected