[vtkusers] lookupTable/Scalars - Possible bug?

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Jul 14 10:16:02 EDT 2004


Timothy,

	Use dataSet->GetPointData()->GetScalars() == NULL

HTH,
Mathieu

jarv0075 wrote:
>>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
> ---------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list