[vtkusers] Java and GetScalarPointer methods

Daniel ALEXANDER Daniel.Alexander at cs.ucl.ac.uk
Mon Jun 26 11:29:11 EDT 2000


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






More information about the vtkusers mailing list