60 return (end_ - beg_).length();
64 void setTicLength(
double majorl,
double minorl);
66 void ticLength(
double& majorl,
double& minorl)
const
72 void setTicOrientation(
double tx,
double ty,
double tz);
81 void setSymmetricTics(
bool b)
87 void setLabelFont(QString
const& family,
int pointSize,
int weight = QFont::Normal,
bool italic =
false);
89 void setLabelFont(QFont
const& font);
91 QFont
const& labelFont()
const
97 void setLabelString(QString
const& name);
98 void setLabelPosition(
const Qwt3D::Triple& pos, Qwt3D::ANCHOR);
101 void setLabel(
bool d)
106 void adjustLabel(
int val)
112 void setScaling(
bool d)
121 void setScale(Qwt3D::SCALETYPE);
122 void setScale(
Scale* item);
124 void setNumbers(
bool d)
141 void setNumberFont(QString
const& family,
int pointSize,
int weight = QFont::Normal,
bool italic =
false);
143 void setNumberFont(QFont
const&);
145 QFont
const& numberFont()
const
150 void setNumberAnchor(Qwt3D::ANCHOR a)
152 scaleNumberAnchor_ = a;
155 void adjustNumbers(
int val)
161 void setAutoScale(
bool val =
true)
166 bool autoScale()
const
172 void setMajors(
int val);
174 void setMinors(
int val);
178 return majorintervals_;
183 return minorintervals_;
186 Qwt3D::TripleField
const& majorPositions()
const
191 Qwt3D::TripleField
const& minorPositions()
const
197 void setLineWidth(
double val,
double majfac = 0.9,
double minfac = 0.5);
199 double lineWidth()
const
204 double majLineWidth()
const
206 return majLineWidth_;
209 double minLineWidth()
const
211 return minLineWidth_;
215 void setLimits(
double start,
double stop)
221 void limits(
double& start,
double& stop)
const
227 void recalculateTics();
236 bool prepTicCalculation(
Triple& startpoint);
240 Qwt3D::ANCHOR scaleNumberAnchor_;
242 std::vector< Qwt3D::Label > markerLabel_;
245 Qwt3D::TripleField majorpos_, minorpos_;
249 double start_, stop_, autostart_, autostop_;
253 int majorintervals_, minorintervals_;
255 double lineWidth_, majLineWidth_, minLineWidth_;
257 bool drawNumbers_, drawTics_, drawLabel_;
259 QFont numberfont_, labelfont_;
262 int numbergap_, labelgap_;