Changeset 2827 for branches/plotter2
- Timestamp:
- 07/27/13 01:23:26 (11 years ago)
- Location:
- branches/plotter2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plotter2/python/plotter2.py
r2825 r2827 215 215 216 216 def save(self, filename): 217 prev_filename = self._plotter.get_filename() 218 prev_dev = self._plotter.get_device() 219 217 220 self.set_output(filename) 218 221 self.plot() 222 223 self.set_output(prev_filename, prev_dev) 219 224 220 225 def get_vinfo(self): -
branches/plotter2/src/Plotter2.cpp
r2825 r2827 270 270 } 271 271 272 std::string Plotter2::getFileName() { 273 return filename; 274 } 275 272 276 void Plotter2::setFileName(const std::string& inFilename) { 273 277 filename = inFilename; 278 } 279 280 std::string Plotter2::getDevice() { 281 return device; 274 282 } 275 283 -
branches/plotter2/src/Plotter2.h
r2825 r2827 158 158 ~Plotter2(); 159 159 160 std::string getFileName(); 160 161 void setFileName(const std::string& inFilename); 162 std::string getDevice(); 161 163 void setDevice(const std::string& inDevice); 162 164 -
branches/plotter2/src/python_Plotter2.cpp
r2825 r2827 40 40 class_<Plotter2>("Plotter2") 41 41 .def( init <> () ) 42 .def("get_filename",&Plotter2::getFileName) 42 43 .def("set_filename",&Plotter2::setFileName) 44 .def("get_device",&Plotter2::getDevice) 43 45 .def("set_device",&Plotter2::setDevice) 44 46 .def("add_viewport",&Plotter2::addViewport)
Note:
See TracChangeset
for help on using the changeset viewer.