[vtkusers] How can get the errors while use the java interface class??

iii-lin iii-lin at 163.com
Fri Dec 15 22:49:33 EST 2006


hello everyone,
    I use java to develop the vtk applications,vtk supplies some java interface class,I have a problem:How can I get the errors when error occur?
 
Use the following code as a example,when the parameter of method is not correct,errors will occur,how can I get it?
 
///////////////////////////////////////////////////////////
  vtkVolume16Reader  Reader=new vtkVolume16Reader();
  Reader.SetDataDimensions(64, 64);
  Reader.SetDataByteOrderToLittleEndian();
  Reader.SetFilePrefix(dir);
  Reader.SetDataSpacing(3.2,3.2,1.5);
//Reader.SetDataSpacing(1.0,1.0,2); //parameters is not correct
  Reader.SetImageRange(1, 93);
////////////////////////////////////////////////////////////
 
can try...catch get anything?
 
thanks for your view of the message.
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061216/e981d01f/attachment.htm>


More information about the vtkusers mailing list