diff options
author | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
---|---|---|
committer | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
commit | c6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch) | |
tree | 1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/utils/asymptote/picture.h | |
parent | 07ee7222e389b0777456b427a55c22d0e6ffd267 (diff) |
French translation for tlmgr updated
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/picture.h')
-rw-r--r-- | Build/source/utils/asymptote/picture.h | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/Build/source/utils/asymptote/picture.h b/Build/source/utils/asymptote/picture.h deleted file mode 100644 index 91ef54260bd..00000000000 --- a/Build/source/utils/asymptote/picture.h +++ /dev/null @@ -1,127 +0,0 @@ -/***** - * picture.h - * Andy Hamerlindl 2002/06/06 - * - * Stores a picture as a list of drawElements and handles its output to - * PostScript. - *****/ - -#ifndef PICTURE_H -#define PICTURE_H - -#include <sstream> -#include <iostream> - -#include "drawelement.h" - -namespace camp { - -class picture : public gc { -private: - bool labels; - size_t lastnumber; - size_t lastnumber3; - transform T; // Keep track of accumulative picture transform - bbox b; - bbox b_cached; // Cached bounding box - boxvector labelbounds; - bboxlist bboxstack; - groupsmap groups; - unsigned billboard; -public: - bbox3 b3; // 3D bounding box - - typedef mem::list<drawElement*> nodelist; - nodelist nodes; - - picture() : labels(false), lastnumber(0), lastnumber3(0), T(identity), - billboard(0) {} - - // Destroy all of the owned picture objects. - ~picture(); - - // Prepend an object to the picture. - void prepend(drawElement *p); - - // Append an object to the picture. - void append(drawElement *p); - - // Enclose each layer with begin and end. - void enclose(drawElement *begin, drawElement *end); - - // Add the content of another picture. - void add(picture &pic); - void prepend(picture &pic); - - bool havelabels(); - bool have3D(); - bool havepng(); - bool havenewpage(); - - bbox bounds(); - bbox3 bounds3(); - - // 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 epstopdf(const string& epsname, const string& pdfname); - int pdftoeps(const string& pdfname, const string& epsname, bool eps=true); - - bool texprocess(const string& texname, const string& tempname, - const string& prefix, const pair& bboxshift, bool svgformat); - - bool postprocess(const string& prename, const string& outname, - const string& outputformat, bool wait, bool view, - bool pdftex, bool epsformat, bool svg); - - bool display(const string& outname, const string& outputformat, - bool wait, bool view, bool epsformat); - - // Ship the picture out to PostScript & TeX files. - bool shipout(picture* preamble, const string& prefix, - const string& format, bool wait=false, bool view=true); - - void render(double size2, const triple &Min, const triple& Max, - double perspective, bool remesh) const; - bool shipout3(const string& prefix, const string& format, - double width, double height, double angle, double zoom, - const triple& m, const triple& M, const pair& shift, - const pair& margin, double *t, - double *background, size_t nlights, triple *lights, - double *diffuse, double *specular, bool view); - - // 3D output - bool shipout3(const string& prefix, const string format); - - bool reloadPDF(const string& Viewer, const string& outname) const; - - picture *transformed(const transform& t); - picture *transformed(const vm::array& t); - - bool null() { - return nodes.empty(); - } - -}; - -inline picture *transformed(const transform& t, picture *p) -{ - return p->transformed(t); -} - -inline picture *transformed(const vm::array& t, picture *p) -{ - return p->transformed(t); -} - -void texinit(); -int opentex(const string& texname, const string& prefix, bool dvi=false); - -const char *texpathmessage(); - -} //namespace camp - -#endif |