@@ -11,33 +11,33 @@ namespace Qwt3D
1111// ! A coordinate system with different styles (BOX, FRAME)
1212class QWT3D_EXPORT CoordinateSystem : public Drawable
1313{
14-
1514public:
1615 explicit CoordinateSystem (Qwt3D::Triple blb = Qwt3D::Triple(0 ,0 ,0 ), Qwt3D::Triple ftr = Qwt3D::Triple(0 ,0 ,0 ), Qwt3D::COORDSTYLE = Qwt3D::BOX);
17- ~CoordinateSystem ();
16+ ~CoordinateSystem ();
1817
1918 void init (Qwt3D::Triple beg = Qwt3D::Triple(0 ,0 ,0 ), Qwt3D::Triple end = Qwt3D::Triple(0 ,0 ,0 ));
2019 // ! Set style for the coordinate system (NOCOORD, FRAME or BOX)
21- void setStyle (Qwt3D::COORDSTYLE s, Qwt3D::AXIS frame_1 = Qwt3D::X1,
22- Qwt3D::AXIS frame_2 = Qwt3D::Y1,
23- Qwt3D::AXIS frame_3 = Qwt3D::Z1);
24- Qwt3D::COORDSTYLE style () const { return style_;} // !< Return style oft the coordinate system
20+ void setStyle (Qwt3D::COORDSTYLE s,
21+ Qwt3D::AXIS frame_1 = Qwt3D::X1,
22+ Qwt3D::AXIS frame_2 = Qwt3D::Y1,
23+ Qwt3D::AXIS frame_3 = Qwt3D::Z1);
24+ Qwt3D::COORDSTYLE style () const { return style_;} // !< Return style oft the coordinate system
2525 void setPosition (Qwt3D::Triple first, Qwt3D::Triple second); // !< first == front_left_bottom, second == back_right_top
2626
2727 void setAxesColor (Qwt3D::RGBA val); // !< Set common color for all axes
2828 // ! Set common font for all axis numberings
29- void setNumberFont (QString const & family, int pointSize, int weight = QFont::Normal, bool italic = false );
29+ void setNumberFont (QString const & family, int pointSize, int weight = QFont::Normal, bool italic = false );
3030 // ! Set common font for all axis numberings
3131 void setNumberFont (QFont const & font);
3232 // ! Set common color for all axis numberings
3333 void setNumberColor (Qwt3D::RGBA val);
34- void setStandardScale (); // !< Sets an linear axis with real number items
34+ void setStandardScale (); // !< Sets an linear axis with real number items
3535
3636 void adjustNumbers (int val); // !< Fine tunes distance between axis numbering and axis body
3737 void adjustLabels (int val); // !< Fine tunes distance between axis label and axis body
3838
3939 // ! Sets color for the grid lines
40- void setGridLinesColor (Qwt3D::RGBA val) {gridlinecolor_ = val;}
40+ void setGridLinesColor (Qwt3D::RGBA val) {gridlinecolor_ = val;}
4141
4242 // ! Set common font for all axis labels
4343 void setLabelFont (QString const & family, int pointSize, int weight = QFont::Normal, bool italic = false );
@@ -52,7 +52,7 @@ class QWT3D_EXPORT CoordinateSystem : public Drawable
5252 void setTicLength (double major, double minor);
5353
5454 // ! Switch autoscaling of axes
55- void setAutoScale (bool val = true );
55+ void setAutoScale (bool val = true );
5656
5757 Qwt3D::Triple first () const { return first_;}
5858 Qwt3D::Triple second () const { return second_;}
@@ -66,12 +66,11 @@ class QWT3D_EXPORT CoordinateSystem : public Drawable
6666 void draw ();
6767
6868 // ! Defines whether a grid between the major and/or minor tics should be drawn
69- void setGridLines (bool majors, bool minors, int sides = Qwt3D::NOSIDEGRID);
70- int grids () const {return sides_;} // !< Returns grids switched on
69+ void setGridLines (bool majors, bool minors, int sides = Qwt3D::NOSIDEGRID);
70+ int grids () const {return sides_;} // !< Returns grids switched on
7171
7272 // ! The vector of all12 axes - use them to set axis properties individually.
73- std::vector<Axis> axes;
74-
73+ std::vector<Axis> axes;
7574
7675private:
7776 void destroy ();
@@ -85,15 +84,15 @@ class QWT3D_EXPORT CoordinateSystem : public Drawable
8584
8685 void chooseAxes ();
8786 void autoDecorateExposedAxis (Axis& ax, bool left);
88- void drawMajorGridLines (); // !< Draws a grid between the major tics on the site
87+ void drawMajorGridLines (); // !< Draws a grid between the major tics on the site
8988 void drawMinorGridLines (); // !< Draws a grid between the minor tics on the site
90- void drawMajorGridLines (Qwt3D::Axis&, Qwt3D::Axis&); // ! Helper
91- void drawMinorGridLines (Qwt3D::Axis&, Qwt3D::Axis&); // ! Helper
92- void recalculateAxesTics ();
89+ void drawMajorGridLines (Qwt3D::Axis&, Qwt3D::Axis&); // ! Helper
90+ void drawMinorGridLines (Qwt3D::Axis&, Qwt3D::Axis&); // ! Helper
91+ void recalculateAxesTics ();
9392
9493 bool autodecoration_;
9594 bool majorgridlines_, minorgridlines_;
96- int sides_;
95+ int sides_;
9796};
9897
9998} // ns
0 commit comments