[vtkusers] design suggestions

Dean Inglis dean.inglis at on.aibn.com
Wed Jun 12 16:02:34 EDT 2002

Hi all,

I am working on a voxel/pixel profiler widget that takes as
input the vtkPoints from the vtkPolyData of a 3D spline
widget (not available but could be...).

The widget incorporates 3 vtkCardinalSplines (one for x,y,z)
and spherical widget handles become the 'n' control points.
The widget represents the 3D spline as vtkPolyData with 'N' vtkPoints
interpolated  along the splines, and a vtkCellArray for the
(rendered) line segments.

(For lack of a better name,) the 'vtkVoxelProfiler' takes the
spline points, and a vtkImageData* as input, scans along the line
and inserts unique points that map into the image data into a standard
template library vector<float> object.  The vector<float> object is
then sorted and analyzed for min, max, mean, median, variance, std dev.

The design issue is this:  vtkVoxelProfiler inherits from vtkObject and
uses STL vector<float> to store/sort the scalar image data on a point by
basis.  Any suggestions on a native vtk class that could do this faster?


More information about the vtkusers mailing list