Mercurial > hg > svgui
comparison view/View.h @ 1202:6828735468c9 svg
Implement "Export SVG file..."
author | Chris Cannam |
---|---|
date | Mon, 19 Dec 2016 16:32:34 +0000 |
parents | 179ea8a2f650 |
children | c603aba61702 |
comparison
equal
deleted
inserted
replaced
1201:a68c25ba1153 | 1202:6828735468c9 |
---|---|
306 // The 0th property container is the view's own; the rest are the | 306 // The 0th property container is the view's own; the rest are the |
307 // layers in fixed-order series | 307 // layers in fixed-order series |
308 virtual const PropertyContainer *getPropertyContainer(int i) const; | 308 virtual const PropertyContainer *getPropertyContainer(int i) const; |
309 virtual PropertyContainer *getPropertyContainer(int i); | 309 virtual PropertyContainer *getPropertyContainer(int i); |
310 | 310 |
311 // Render the contents on a wide canvas | 311 /** |
312 virtual QImage *toNewImage(sv_frame_t f0, sv_frame_t f1); | 312 * Render the view contents to a new QImage (which may be wider |
313 virtual QImage *toNewImage(); | 313 * than the visible View). |
314 virtual QSize getImageSize(sv_frame_t f0, sv_frame_t f1); | 314 */ |
315 virtual QSize getImageSize(); | 315 virtual QImage *renderToNewImage(); |
316 | 316 |
317 /** | |
318 * Render the view contents between the given frame extents to a | |
319 * new QImage (which may be wider than the visible View). | |
320 */ | |
321 virtual QImage *renderPartToNewImage(sv_frame_t f0, sv_frame_t f1); | |
322 | |
323 /** | |
324 * Calculate and return the size of image that will be generated | |
325 * by renderToNewImage(). | |
326 */ | |
327 virtual QSize getRenderedImageSize(); | |
328 | |
329 /** | |
330 * Calculate and return the size of image that will be generated | |
331 * by renderPartToNewImage(f0, f1). | |
332 */ | |
333 virtual QSize getRenderedPartImageSize(sv_frame_t f0, sv_frame_t f1); | |
334 | |
335 /** | |
336 * Render the view contents to a new SVG file. | |
337 */ | |
338 virtual bool renderToSvgFile(QString filename); | |
339 | |
340 /** | |
341 * Render the view contents between the given frame extents to a | |
342 * new SVG file. | |
343 */ | |
344 virtual bool renderPartToSvgFile(QString filename, | |
345 sv_frame_t f0, sv_frame_t f1); | |
346 | |
317 virtual int getTextLabelHeight(const Layer *layer, QPainter &) const; | 347 virtual int getTextLabelHeight(const Layer *layer, QPainter &) const; |
318 | 348 |
319 virtual bool getValueExtents(QString unit, double &min, double &max, | 349 virtual bool getValueExtents(QString unit, double &min, double &max, |
320 bool &log) const; | 350 bool &log) const; |
321 | 351 |