diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-28 03:01:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-28 03:01:00 +0000 |
commit | ecdf859b6ce481abfd530425dcf6f0f764bd0001 (patch) | |
tree | 13bc161dc046876ac6c92fce5f9f5034ba9aa573 /graphics/asymptote/picture.h | |
parent | 790995b7e79697514364450bf9c04f1b8d500838 (diff) |
CTAN sync 202112280300
Diffstat (limited to 'graphics/asymptote/picture.h')
-rw-r--r-- | graphics/asymptote/picture.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/graphics/asymptote/picture.h b/graphics/asymptote/picture.h index 91ef54260b..61b3bd8c4f 100644 --- a/graphics/asymptote/picture.h +++ b/graphics/asymptote/picture.h @@ -28,14 +28,16 @@ private: bboxlist bboxstack; groupsmap groups; unsigned billboard; + bool deconstruct; public: bbox3 b3; // 3D bounding box typedef mem::list<drawElement*> nodelist; nodelist nodes; - picture() : labels(false), lastnumber(0), lastnumber3(0), T(identity), - billboard(0) {} + picture(bool deconstruct=false) : + labels(false), lastnumber(0), lastnumber3(0), T(identity), billboard(0), + deconstruct(deconstruct) {} // Destroy all of the owned picture objects. ~picture(); @@ -56,7 +58,8 @@ public: bool havelabels(); bool have3D(); bool havepng(); - bool havenewpage(); + + unsigned int pagecount(); bbox bounds(); bbox3 bounds3(); @@ -64,9 +67,8 @@ public: // Compute bounds on ratio (x,y)/z for 3d picture (not cached). pair ratio(double (*m)(double, double)); - int epstosvg(const string& epsname, const string& outname); - int pdftosvg(const string& pdfname, const string& outname); - + int epstosvg(const string& epsname, const string& outname, + unsigned int pages); int epstopdf(const string& epsname, const string& pdfname); int pdftoeps(const string& pdfname, const string& epsname, bool eps=true); |