Changeset 2895 for trunk/src/Plotter2.cpp
- Timestamp:
- 02/19/14 20:41:19 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Plotter2.cpp
r2861 r2895 294 294 hasDefaultViewport = true; 295 295 currentViewportId = 0; 296 297 width = 8.82796; // default viewsurface width seems to be this value. 298 aspect = 0.75; // default viewsurface aspect 296 299 } 297 300 … … 320 323 cpgopen((filename + "/" + device).c_str()); 321 324 hasDevice = true; 325 } 326 327 float Plotter2::getViewSurfaceWidth() { 328 return width; 329 } 330 331 float Plotter2::getViewSurfaceAspect() { 332 return aspect; 333 } 334 335 void Plotter2::setViewSurface(const float inWidth, const float inAspect) { 336 width = inWidth; 337 aspect = inAspect; 322 338 } 323 339 … … 1127 1143 open(); 1128 1144 1145 if ((width > 0.0) && (aspect > 0.0)) { 1146 cpgpap(width, aspect); 1147 } 1148 1129 1149 cpgscr(0, 1.0, 1.0, 1.0); // set background color white 1130 1150 cpgscr(1, 0.0, 0.0, 0.0); // set foreground color black
Note: See TracChangeset
for help on using the changeset viewer.