summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawpath3.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-10 18:49:48 +0000
committerKarl Berry <karl@freefriends.org>2019-01-10 18:49:48 +0000
commit8d656f7b22badc7a1e4e48811521048ef3df7101 (patch)
tree207c9332ac340eef8b84e90d67a0f0c6a734e547 /Build/source/utils/asymptote/drawpath3.h
parentc75ad7aa4d5821b7c4034c949a5ed2401e589bea (diff)
asy 2.47 sources
git-svn-id: svn://tug.org/texlive/trunk@49658 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawpath3.h')
-rw-r--r--Build/source/utils/asymptote/drawpath3.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/drawpath3.h b/Build/source/utils/asymptote/drawpath3.h
index 0c5672aa9da..dc5b1273967 100644
--- a/Build/source/utils/asymptote/drawpath3.h
+++ b/Build/source/utils/asymptote/drawpath3.h
@@ -26,13 +26,14 @@ protected:
Interaction interaction;
triple Min,Max;
public:
- drawPath3(path3 g, triple center, const pen& p, Interaction interaction) :
- g(g), center(center), straight(g.piecewisestraight()), color(rgba(p)),
- invisible(p.invisible()), interaction(interaction),
+ drawPath3(path3 g, triple center, const pen& p, Interaction interaction,
+ const string& key="") :
+ drawElement(key), g(g), center(center), straight(g.piecewisestraight()),
+ color(rgba(p)), invisible(p.invisible()), interaction(interaction),
Min(g.min()), Max(g.max()) {}
drawPath3(const double* t, const drawPath3 *s) :
- g(camp::transformed(t,s->g)), straight(s->straight),
+ drawElement(s->KEY), g(camp::transformed(t,s->g)), straight(s->straight),
color(s->color), invisible(s->invisible), interaction(s->interaction),
Min(g.min()), Max(g.max()) {
center=t*s->center;
@@ -93,8 +94,8 @@ protected:
public:
drawNurbsPath3(const vm::array& g, const vm::array* knot,
- const vm::array* weight, const pen& p) :
- color(rgba(p)), invisible(p.invisible()) {
+ const vm::array* weight, const pen& p, const string& key="") :
+ drawElement(key), color(rgba(p)), invisible(p.invisible()) {
size_t weightsize=checkArray(weight);
string wrongsize="Inconsistent NURBS data";
@@ -131,8 +132,8 @@ public:
}
drawNurbsPath3(const double* t, const drawNurbsPath3 *s) :
- degree(s->degree), n(s->n), weights(s->weights), knots(s->knots),
- color(s->color), invisible(s->invisible) {
+ drawElement(s->KEY), degree(s->degree), n(s->n), weights(s->weights),
+ knots(s->knots), color(s->color), invisible(s->invisible) {
controls=new(UseGC) triple[n];
for(unsigned int i=0; i < n; ++i)
controls[i]=t*s->controls[i];