[vtkusers] lookupTable/Scalars - Possible bug?
jarv0075
jarv0075 at umn.edu
Fri Jul 9 14:28:07 EDT 2004
>From vtkDataSet documentation:
***************************************************************************
*****
virtual void vtkDataSet::GetScalarRange ( double range[2] )
[virtual]
Convenience method to get the range of the scalar data (if there is any
scalar data). Returns the (min/max) range of combined point and cell data.
If there are no point or cell scalars the method will return (0,1). Note:
Update needs to be called to create the scalars. THIS METHOD IS THREAD SAFE
IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED
***************************************************************************
*****
The issue I'm having with this is, returning 0,1 to indicate data range
works great in all cases except when your data range actually -IS- 0,1.
How then do you determine if there are no scalars?
Maybe a range of 0,0 would be better?
---------------------------------------
Timothy R. Jarvis
---------------------------------------
Graduate Research Assistant
International Neuroimaging Consortium
VA Medical Center
612-467-2619
http://www.neurovia.umn.edu
---------------------------------------
More information about the vtkusers
mailing list