summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawelement.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/drawelement.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/drawelement.h')
-rw-r--r--Build/source/utils/asymptote/drawelement.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/drawelement.h b/Build/source/utils/asymptote/drawelement.h
index e171dc9b18f..cf77fef722b 100644
--- a/Build/source/utils/asymptote/drawelement.h
+++ b/Build/source/utils/asymptote/drawelement.h
@@ -121,6 +121,11 @@ typedef mem::vector<groupmap> groupsmap;
class drawElement : public gc
{
public:
+ string KEY;
+
+ drawElement(const string& key="") : KEY(key == "" ? processData().KEY : key)
+ {}
+
virtual ~drawElement() {}
static pen lastpen;
@@ -159,6 +164,8 @@ public:
virtual bool islabel() {return false;}
+ virtual bool isnewpage() {return false;}
+
virtual bool islayer() {return false;}
virtual bool is3D() {return false;}
@@ -232,7 +239,8 @@ public:
copyArray4x4C(T,&t);
}
- drawElementLC(const double* t, const drawElementLC *s) : T(NULL) {
+ drawElementLC(const double* t, const drawElementLC *s) :
+ drawElement(s->KEY), T(NULL) {
multiplyTransform3(T,t,s->T);
}