1
//=========================================================
4
// $Id: drange.h,v 1.2 2001/11/20 15:19:34 muse Exp $
6
// Copyright (C) 1997 Josef Wilgen
7
// This program is free software; you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License, version 2,
9
// as published by the Free Software Foundation.
11
// (C) Copyright 2000 Werner Schweer (ws@seh.de)
12
//=========================================================
14
#ifndef __DOUBLE_RANGE_H__
15
#define __DOUBLE_RANGE_H__
21
static const double MinRelStep;
22
static const double DefaultRelStep;
23
static const double MinEps;
31
double d_exactPrevValue;
35
void setNewValue(double x, bool align = false);
38
double exactValue() const { return d_exactValue; }
39
double exactPrevValue() const { return d_exactPrevValue; }
40
double prevValue() const { return d_prevValue; }
41
virtual void valueChange() {}
42
virtual void stepChange() {}
43
virtual void rangeChange() {}
47
virtual void fitValue(double);
48
virtual void incValue(int);
49
virtual void incPages(int);
50
void setPeriodic(bool tf);
51
void setRange(double vmin, double vmax, double vstep = 0.0,
54
virtual void setValue(double);
56
double maxValue() const { return d_maxValue; }
57
double minValue() const { return d_minValue; }
58
bool periodic() const { return d_periodic; }
59
int pageSize() const { return d_pageSize; }
60
double value() const { return d_value; }