forked from coolwanglu/pdf2htmlEX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraw.cc
More file actions
65 lines (54 loc) · 1.03 KB
/
Copy pathdraw.cc
File metadata and controls
65 lines (54 loc) · 1.03 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* Draw.cc
*
* Handling path drawing
*
* by WangLu
* 2012.10.01
*/
#include <algorithm>
#include <cmath>
#include <sstream>
#include <vector>
#include <iostream>
#include "HTMLRenderer.h"
#include "util/misc.h"
#include "util/math.h"
#include "util/namespace.h"
namespace pdf2htmlEX {
using std::swap;
using std::min;
using std::max;
using std::acos;
using std::asin;
using std::ostringstream;
using std::sqrt;
using std::vector;
using std::ostream;
void HTMLRenderer::restoreState(GfxState * state)
{
updateAll(state);
tracer.restore();
}
void HTMLRenderer::saveState(GfxState *state)
{
tracer.save();
}
void HTMLRenderer::stroke(GfxState * state)
{
tracer.stroke(state);
}
void HTMLRenderer::fill(GfxState * state)
{
tracer.fill(state);
}
void HTMLRenderer::eoFill(GfxState * state)
{
tracer.fill(state, true);
}
GBool HTMLRenderer::axialShadedFill(GfxState *state, GfxAxialShading *shading, double tMin, double tMax)
{
tracer.fill(state); //TODO correct?
return true;
}
} // namespace pdf2htmlEX