[Kst] extragear/graphics/kst/kst/datasources/planck
George Staikos
staikos at kde.org
Mon Nov 14 05:44:18 CET 2005
SVN commit 480264 by staikos:
switch to double + ms
M +4 -4 planckobj.cpp
M +2 -2 planckobj.h
--- trunk/extragear/graphics/kst/kst/datasources/planck/planckobj.cpp #480263:480264
@@ -331,7 +331,7 @@
}
-int Object::sampleForTimeRelative(int search, bool *ok) {
+int Object::sampleForTimeRelative(double ms, bool *ok) {
if (_tt == Undetermined) {
_tt = typeOfTime();
}
@@ -350,11 +350,11 @@
}
return -1;
}
- return sampleForTime(int(floor(left + 0.5)) + search, ok);
+ return sampleForTime(floor(left + 0.5) + ms, ok);
}
-int Object::sampleForTime(int search, bool *ok) {
+int Object::sampleForTime(double ms, bool *ok) {
PIOLONG location = -1;
bool found = false;
@@ -374,7 +374,7 @@
PIOLONG LastIndex = *g->lastIndex;
double left = fetchTimePoint(FirstIndex);
double right = fetchTimePoint(LastIndex);
- double sch = search;
+ double sch = ms;
if (sch >= left && sch <= right) {
if (sch == left) {
--- trunk/extragear/graphics/kst/kst/datasources/planck/planckobj.h #480263:480264
@@ -49,8 +49,8 @@
TimeType typeOfTime();
double fetchTimePoint(PIOLONG);
- int sampleForTime(int seconds, bool *ok);
- int sampleForTimeRelative(int seconds, bool *ok);
+ int sampleForTime(double ms, bool *ok);
+ int sampleForTimeRelative(double ms, bool *ok);
double timeForSample(int sample);
private:
More information about the Kst
mailing list