summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawpath.h
blob: fe519a7258d5d2fddcd3b2f4724680ec8aebb2ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*****
 * 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) : 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