<DIV>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.</DIV> <DIV> </DIV> <DIV>HTH</DIV> <DIV> </DIV> <DIV>Darshan .</DIV> <DIV> </DIV> <DIV>PS- Get familiar with OOPS and C++ b4 u touch VTK, or u gonna have a hard time<BR><BR><B><I>Willy <willy_thumber@verizon.net></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Ok, here's an easy one from a supernoob. In the two examples of VTK C++ code, <BR>what does the "(vtkDataSet *) mean?<BR><BR>vtkExtractVOI *evoi = vtkExtractVOI::New();<BR>evoi->SetInput((vtkDataSet *) PR->GetOutput());<BR><BR>vtkImageGaussianSmooth *gauss = vtkImageGaussianSmooth::New();<BR>gauss->SetInput((vtkDataSet *)
evoi->GetOutput());<BR><BR>Anybody want to walk me through these code snippets? I'm trying to learn C++, <BR>VTK, ITK, and OOP concepts, all at the same time. It gets a little <BR>overwealming at times. Thanks for your help.<BR>Willy<BR><BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE> <DIV><BR></DIV><p>
                <hr size=1>Yahoo! Photos<br>
Ring in the New Year with <a href="http://us.rd.yahoo.com/mail_us/taglines/photos/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38087/*http://pg.photos.yahoo.com/ph//page?.file=calendar_splash.html&.dir=">Photo Calendars</a>. Add photos, events, holidays, whatever.