[vtkusers] Update/Whole Extent errors
    Nico Vermaas 
    vermaas at astron.nl
       
    Wed Apr 23 03:03:57 EDT 2003
    
    
  
Hi,
- I have a datacube (vtkImageData) of which I want to show rectangular slices. 
- I use vtkExtractVOI and renderer the result
This is my clipping function:
-----------------------------------------------------------------------------------------
void Inspect3d::ClipImageData(vtkImageData *ImageData,
			     vtkExtractVOI *ClippedImageData,
			     int x1,int x2, int y1, int y2, int z1, int z2) {
	/*** clip the data ***/
	ClippedImageData->SetInput(ImageData);
	ClippedImageData->SetVOI(x1,x2,y1,y2,z1,z2);
}
--------------------------------------------------------------------------------------------
And this is how I call it:
--------------------------------------------------------------------------------------------
/*** Make the SlicedImageData ***/
ClipImageData(this->ImageData,this->SlicedImageData,
		config->slice[X1],config->slice[X2],
		config->slice[Y1],config->slice[Y2],
		config->slice[Z1],config->slice[Z2]);
--------------------------------------------------------------------------------------------
This seems to work, I see the slices that I want, but I do get these errors:
-----------------------------------------------------------------------------------------------
ERROR: In /wop14_0/vermaas/cosmo312GTK/vtk_nightly_4.x/VTK/Common/vtkDataObject.cxx, line 555
vtkImageData (0x80957c8): Update extent is: 0, 63, 0, 90, 10, 10
ERROR: In /wop14_0/vermaas/cosmo312GTK/vtk_nightly_4.x/VTK/Common/vtkDataObject.cxx, line 562
vtkImageData (0x80957c8): Whole extent is: 0, 63, 10, 10, 0, 144
------------------------------------------------------------------------------------------------
Q: How harmfull are these errors?
Q: Can I prevent them?
Q: Is there a better way to get slices of a datacube of vtkImageData?
 Greetings,
Nico Vermaas
    
    
More information about the vtkusers
mailing list