summaryrefslogtreecommitdiff
path: root/graphics/asymptote/picture.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/picture.h')
-rw-r--r--graphics/asymptote/picture.h43
1 files changed, 21 insertions, 22 deletions
diff --git a/graphics/asymptote/picture.h b/graphics/asymptote/picture.h
index 01d47008ab..91ef54260b 100644
--- a/graphics/asymptote/picture.h
+++ b/graphics/asymptote/picture.h
@@ -26,34 +26,33 @@ private:
bbox b_cached; // Cached bounding box
boxvector labelbounds;
bboxlist bboxstack;
- bool transparency;
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),
- transparency(false), billboard(0) {}
-
+ 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();
@@ -64,27 +63,27 @@ 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 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& 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,
@@ -93,19 +92,19 @@ public:
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)
@@ -122,7 +121,7 @@ void texinit();
int opentex(const string& texname, const string& prefix, bool dvi=false);
const char *texpathmessage();
-
+
} //namespace camp
#endif