<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<DIV><FONT size=2>Hello.</FONT></DIV>
<DIV><FONT size=2>I'm beginner of VTK and have a little knowledge about volume
rendering.</FONT></DIV>
<DIV><FONT size=2>I've some questions and I will pick them in those following
with red characters. </FONT></DIV>
<DIV><FONT size=2>(I'm going to explane based on the old version- maybe Ver 3.1,
the book 'VTK 2nd Ed."</FONT></DIV>
<DIV><FONT size=2>and I'm working on Windows platform.) </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> vtkRenderer *ren1 =
vtkRenderer::New();<BR> vtkRenderWindow *renWin =
vtkRenderWindow::New();</FONT></DIV>
<DIV><FONT size=2> renWin->AddRenderer(ren1);</FONT></DIV>
<DIV><FONT size=2> vtkRenderWindowInteractor *iren =
vtkRenderWindowInteractor::New();</FONT></DIV>
<DIV><FONT size=2> iren->SetRenderWindow(renWin);</FONT></DIV>
<DIV><FONT size=2> vtkStructuredPointsReader *reader =
vtkStructuredPointsReader::New();<BR> reader->SetFileName("../vtkdata/ironProt.vtk");<BR> reader->Update();<BR> vtkPiecewiseFunction
*oTFun =
vtkPiecewiseFunction::New();<BR> oTFun->AddSegment(80,0.0,255,1.0);<BR><FONT
color=#ff0000> vtkPiecewiseFunction *gTFun =
vtkPiecewiseFunction::New();<BR> gTFun->AddSegment(0,1.0,255,1.0);</FONT></FONT></DIV>
<DIV><FONT size=2> vtkVolumeProperty *volProperty =
vtkVolumeProperty::New();<BR> volProperty->SetColor(gTFun);<BR><FONT
color=#ff0000> volProperty->SetGradientOpacity(oTFun);</FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#ff0000>(is old version function SetOpacity
changed into SetGradientOpacity?)</FONT></FONT></DIV>
<DIV><FONT size=2><FONT
color=#ff0000><BR></FONT> volProperty->SetInterpolationTypeToLinear();<BR> volProperty->ShadeOn();</FONT></DIV>
<DIV><FONT size=2> vtkVolumeRayCastCompositeFunction *compositeFunction =
<BR> vtkVolumeRayCastCompositeFunction::New();</FONT></DIV>
<DIV><FONT size=2> vtkVolumeRayCastMapper *volMapper =
<BR> vtkVolumeRayCastMapper::New();<BR><FONT
color=#ff0000> volMapper->SetScalarInput(reader->GetOutput());</FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#ff0000>(In ver 4.0 there is no
SetScalarInput function.... </FONT></FONT></DIV>
<DIV><FONT color=#ff0000 size=2>Which function can we displace with this
function ??</FONT></DIV>
<DIV><FONT color=#ff0000 size=2>Please mail me SOON....)</FONT></DIV>
<DIV><FONT color=#ff0000 size=2>If possible, please give some complete volume
rendering source code </FONT></DIV>
<DIV><FONT color=#ff0000 size=2>using VTK.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV> vtkVolume *vol = vtkVolume::New();<BR> //SetVolumeMapper
-> SetMapper<BR> //SetVolumeProperty ->
SetProperty<BR> vol->SetMapper(volMapper);<BR> vol->SetProperty(volProperty);</DIV>
<DIV> </DIV>
<DIV> ren1->AddVolume(vol);<BR> ren1->GetActiveCamera()->Azimuth(20);<BR> ren1->GetActiveCamera()->Dolly(1.65);</DIV>
<DIV> </DIV>
<DIV><FONT color=#ff0000> //iren->SetDesiredUpdateRate(3.0); This
function does not
exists also. <BR></FONT> iren->Start();</DIV>
<DIV> return 0;</DIV>
<DIV> </DIV>
<DIV>Regards.</DIV>
<DIV><BR> </DIV></FONT></DIV></BODY></HTML>