source: tags/release-1.2.2/src/Cubes/AnnotationKarma.cc

Last change on this file was 961, checked in by MatthewWhiting, 12 years ago

Getting rid of the FONT definition in the karma annotation files. If this font is not present it becomes very annoying...

File size: 784 bytes
Line 
1
2void AnnotationKarma::line(float x1, float x2, float y1, float y2)
3{
4  itsFile << "LINE " << x1 << " " << y1 << " " << x2 << " " << y2 << "\n";
5}
6
7void AnnotationKarma::circle(float x, float y, float r)
8{
9  itsFile << "CIRCLE " << x << " " << y << " " << r << "\n";
10}
11
12void AnnotationKarma::ellipse(float x, float y, float maj, float min, float pa)
13{
14  itsFile << "ELLIPSE " << x << " " << y << " " << maj << " " << min << " " << pa << "\n";
15}
16
17void AnnotationKarma::text(float x, float y, std::string content)
18{
19  itsFile << "TEXT " << x << " " << y << " " << content << "\n";
20}
21
22void AnnotationKarma::comment(std::string content)
23{
24  itsFile << "# " << content << "\n";
25}
26
27void AnnotationKarma::fileHeader(Param &par)
28{
29    stream << "COLOR RED \n";
30    stream << "COORD W \n";
31
32}
Note: See TracBrowser for help on using the repository browser.