12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- class common_output : public output
- {
- public:
-
- virtual void start_picture (double sc, const position &ll, const position &ur) = 0;
- virtual void finish_picture () = 0;
-
- virtual void arc (const position &start, const position ¢,
- const position &end, const line_type <) = 0;
- virtual void circle (const position ¢, double rad,
- const line_type <, double fill) = 0;
- virtual void ellipse (const position ¢, const distance &dim,
- const line_type <, double fill) = 0;
- virtual void line (const position &start, const position *v, int n,
- const line_type <) = 0;
- virtual void polygon (const position *v, int n,
- const line_type <, double fill) = 0;
- virtual void spline (const position &start, const position *v, int n,
- const line_type <) = 0;
- virtual void text (const position ¢er, text_piece *v, int n,
- double angle) = 0;
-
- virtual void rounded_box (const position ¢, const distance &dim,
- double rad, const line_type <, double fill);
- protected:
-
- virtual void dot (const position ¢, const line_type <) = 0;
-
- virtual void solid_arc (const position ¢, double rad, double start_angle,
- double end_angle, const line_type <);
-
- void dashed_circle (const position ¢, double rad, const line_type <);
- void dotted_circle (const position ¢, double rad, const line_type <);
- void dashed_arc (const position &start, const position ¢,
- const position &end, const line_type <);
- void dotted_arc (const position &start, const position ¢,
- const position &end, const line_type <);
- void dashed_rounded_box (const position ¢, const distance &dim,
- double rad, const line_type <);
- void dotted_rounded_box (const position ¢, const distance &dim,
- double rad, const line_type <);
- void solid_rounded_box (const position ¢, const distance &dim,
- double rad, const line_type <);
- void filled_rounded_box (const position ¢, const distance &dim,
- double rad, double fill);
- private:
- void dash_line (const position &start, const position &end,
- const line_type <, double dash_width, double gap_width,
- double *offsetp);
- void dash_arc (const position ¢, double rad,
- double start_angle, double end_angle, const line_type <,
- double dash_width, double gap_width, double *offsetp);
- void dot_line (const position &start, const position &end,
- const line_type <, double gap_width, double *offsetp);
- void dot_arc (const position ¢, double rad,
- double start_angle, double end_angle, const line_type <,
- double gap_width, double *offsetp);
- };
- int compute_arc_center (const position &start, const position ¢, const position &end, position *result);
|