Last change
on this file since 876 was
869,
checked in by MatthewWhiting, 13 years ago
|
New code to handle annotations in an OO manner. TODO - expand to other annotation types.
|
File size:
824 bytes
|
Line | |
---|
1 | |
---|
2 | void AnnotationKarma::line(float x1, float x2, float y1, float y2) |
---|
3 | { |
---|
4 | itsFile << "LINE " << x1 << " " << y1 << " " << x2 << " " << y2 << "\n"; |
---|
5 | } |
---|
6 | |
---|
7 | void AnnotationKarma::circle(float x, float y, float r) |
---|
8 | { |
---|
9 | itsFile << "CIRCLE " << x << " " << y << " " << r << "\n"; |
---|
10 | } |
---|
11 | |
---|
12 | void AnnotationKarma::ellipse(float x, float y, float maj, float min, float pa) |
---|
13 | { |
---|
14 | itsFile << "ELLIPSE " << x << " " << y << " " << maj << " " << min << " " << pa << "\n"; |
---|
15 | } |
---|
16 | |
---|
17 | void AnnotationKarma::text(float x, float y, std::string content) |
---|
18 | { |
---|
19 | itsFile << "TEXT " << x << " " << y << " " << content << "\n"; |
---|
20 | } |
---|
21 | |
---|
22 | void AnnotationKarma::comment(std::string content) |
---|
23 | { |
---|
24 | itsFile << "# " << content << "\n"; |
---|
25 | } |
---|
26 | |
---|
27 | void AnnotationKarma::fileHeader(Param &par) |
---|
28 | { |
---|
29 | stream << "COLOR RED \n"; |
---|
30 | stream << "COORD W \n"; |
---|
31 | stream << "#FONT lucidasans-12 \n"; |
---|
32 | |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.