[vtkusers] Standard Views

Julien Bailly mlist at wgs.ch
Mon Jan 21 15:42:16 EST 2002


Hi,
I'm almost a new user of VTK, and I'm trying to learn using it by doing some
not to complicated things.
But I've got a little problem:

I'm trying to display only a part oh a 2D image, using vtkImageClip.
The image is well clipped, but it still has its original dimension
(everithing that is clipped is black).
I'm using tcl/tk and the interersting part of my function is:

imageClip SetOutputWholeExtent  xmin xmax ymin ymax 0 0
viewer SetInput [ $Draw(imageClip) GetOutput ]

imageclip is my vtkImageClip object, and viewer is my vtkImageViewer.
what I would like, is that if the size of my viewer is (xmax - xmin) and
(ymax-ymin), it shows the whole imageclip.
Instead, if for example xmin equal 10, the viewer shows black background for
x 0->10 and then my image correctly, but from xmax-10 to xmax, it is not
displayed (outside of the viewer).

I hope I'm enough clear so that you can understand what I'm trying to
explain.
And if yes, do you have any suggestions ?

Thany you very much

JUL





More information about the vtkusers mailing list