00001
00002
00003
00004
00005
00006 #ifndef __XYPOLARAXIS_H
00007 #define __XYPOLARAXIS_H
00008
00009 #include "xyax.h"
00010
00011
00012
00013 class XYPolarAxis: public XYAxis
00014 {
00015 public:
00016
00017
00018
00019 XYPolarAxis (
00020 double radius,
00021 XYCoordinate x,
00022 XYCoordinate y,
00023 long color,
00024 double size,
00025 double rot,
00026 double step,
00027 XYScaleDecorator* decor,
00028 XYText* title,
00029 xybool arrow = xytrue,
00030 xybool visible = xytrue);
00031
00032
00033 XYPolarAxis (
00034 double radius,
00035 XYCoordinate x,
00036 XYCoordinate y,
00037 long color,
00038 double size,
00039 double rot,
00040 xybool arrow = xytrue,
00041 xybool visible = xytrue);
00042
00043
00044 virtual ~XYPolarAxis (void) {};
00045
00046
00047
00048 virtual void polar2cart (double radius, double alpha, double& x, double & y)
00049 const;
00050
00051
00052
00053 virtual void draw (void);
00054
00055 virtual void draw (int xmin, int ymin, int xmax, int ymax) const;
00056
00057
00058
00059 virtual void boundingBox (int& bxmin, int& bymin, int& bxmax, int& bymax)
00060 const;
00061
00062
00063
00064 virtual void firstTick (double& tx1, double& ty1, double& tx2, double& ty2) const;
00065
00066 };
00067
00068 #endif
00069