summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawpath.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/drawpath.h')
-rw-r--r--Build/source/utils/asymptote/drawpath.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/drawpath.h b/Build/source/utils/asymptote/drawpath.h
new file mode 100644
index 00000000000..2903bdcc3b8
--- /dev/null
+++ b/Build/source/utils/asymptote/drawpath.h
@@ -0,0 +1,37 @@
+/*****
+ * drawpath.h
+ * Andy Hammerlindl 2002/06/06
+ *
+ * Stores a path that has been added to a picture.
+ *****/
+
+#ifndef DRAWPATH_H
+#define DRAWPATH_H
+
+#include "drawelement.h"
+#include "path.h"
+
+namespace camp {
+
+class drawPath : public drawPathPenBase {
+public:
+ drawPath(path src, pen pentype, const string& key="") :
+ drawElement(key), drawPathPenBase(src,pentype) {}
+
+ virtual ~drawPath() {}
+
+ void bounds(bbox& b, iopipestream&, boxvector&, bboxlist&) {
+ strokebounds(b,p);
+ }
+
+ bool svg() {return true;}
+
+ bool draw(psfile *out);
+
+ drawElement *transformed(const transform& t);
+};
+
+pen adjustdash(pen& p, double arclength, bool cyclic);
+}
+
+#endif