[vtkusers] Java and GetScalarPointer methods
Charles Law
charles.law at kitware.com
Mon Jun 26 14:42:01 EDT 2000
There is always the slow method InsertScalar
image->GetPointData()->GetScalars()->InsertScalar(id, val);
You will have to compute the id from (i,j,k) yourself.
Charles
At 04:29 PM 6/26/00 +0100, Daniel ALEXANDER wrote:
>I am using vtk with java and I am trying to generate a simple image of a
>2D function in a similar way to the vtkImageSinusoidSource class.
>
>In C++ it is straightforward to do this by creating a vtkImageData
>object and using the GetScalarPointer member function to set the value
>at each pixel.
>However, this function returns a pointer to an element of the image
>array, which doesn't make sense in Java and so the function is not
>accessible. Is there another way to set the value of image pixels that
>works in Java?
>
>d
>
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>vtkusers mailing list
>vtkusers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list