void DiMap::setDblRange(double d1, double d2, bool lg) { if (lg) { d_log = true; if (d1 < LogMin) d1 = LogMin; else if (d1 > LogMax) d1 = LogMax; if (d2 < LogMin) d2 = LogMin; else if (d2 > LogMax) d2 = LogMax; d_x1 = log(d1); d_x2 = log(d2); } else { d_log = false; d_x1 = d1; d_x2 = d2; } newFactor(); }
/*! \brief Specify the borders of the paint device interval \param p1 first border \param p2 second border */ void QwtScaleMap::setPaintXInterval(double p1, double p2) { d_p1 = p1; d_p2 = p2; if ( d_transformation->type() != QwtScaleTransformation::Other ) newFactor(); }
/*! \brief Specify the borders of the scale interval \param s1 first border \param s2 second border \warning logarithmic scales might be aligned to [LogMin, LogMax] */ void QwtScaleMap::setScaleInterval(double s1, double s2) { if (d_transformation->type() == QwtScaleTransformation::Log10 ) { if (s1 < LogMin) s1 = LogMin; else if (s1 > LogMax) s1 = LogMax; if (s2 < LogMin) s2 = LogMin; else if (s2 > LogMax) s2 = LogMax; } d_s1 = s1; d_s2 = s2; if ( d_transformation->type() != QwtScaleTransformation::Other ) newFactor(); }
void DiMap::setIntRange(int i1, int i2) { d_y1 = i1; d_y2 = i2; newFactor(); }