[vtkusers] Easy SetInput Question

Darshan Pai vtk_darshan at yahoo.com
Mon Jan 9 13:00:50 EST 2006


vtkDataSet is the superclass for all the DataStructures which deal with Volume data. The typecast is because GetOutput usually gives a vtkPolyData while the SetInput wants a vtkDataSet parameter, so it has to be typecast. In our case it works becoz vtkDataSet is a superclass of vtkPolyData.
   
  HTH
   
  Darshan .
   
  PS- Get familiar with OOPS and C++ b4 u touch VTK, or u gonna have a hard time

Willy <willy_thumber at verizon.net> wrote:
  Ok, here's an easy one from a supernoob. In the two examples of VTK C++ code, 
what does the "(vtkDataSet *) mean?

vtkExtractVOI *evoi = vtkExtractVOI::New();
evoi->SetInput((vtkDataSet *) PR->GetOutput());

vtkImageGaussianSmooth *gauss = vtkImageGaussianSmooth::New();
gauss->SetInput((vtkDataSet *) evoi->GetOutput());

Anybody want to walk me through these code snippets? I'm trying to learn C++, 
VTK, ITK, and OOP concepts, all at the same time. It gets a little 
overwealming at times. Thanks for your help.
Willy

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
  


		
---------------------------------
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060109/356815db/attachment.htm>


More information about the vtkusers mailing list