<HTML>
<HEAD>
<STYLE>
BODY{FONT-FAMILY: Gulim;FONT-SIZE: 9pt;}
P {margin-top:2px;margin-bottom:2px;}
</STYLE>
</HEAD>

<BODY><P>hi all,</P>
<P>I'm studying the vtk&nbsp;.</P>
<P>This is simple c++&nbsp;source of volume rendering from the book&nbsp;.</P>
<P>&nbsp;</P>
<P>&nbsp;&nbsp; &nbsp;this-&gt;opacityTransferFunction-&gt;AddPoint(2.0,0.0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;this-&gt;opacityTransferFunction-&gt;AddPoint(255,0.2);</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;this-&gt;colorTransferFunction-&gt;AddRGBPoint(0.0, 0.0, 0.0, 0.0);<BR>&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(64.0,1.0,0.0,0.0);<BR>&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(128.0,0.0,0.0,1.0);<BR>&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(192.0,0.0,1.0,0.0);<BR>&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(255.0,0.0,0.2,0.0);</P>
<P>&nbsp;&nbsp;&nbsp; this-&gt;volumeProperty-&gt;SetColor(colorTransferFunction);<BR>&nbsp;&nbsp;&nbsp; this-&gt;volumeProperty-&gt;SetScalarOpacity(opacityTransferFunction);</P>
<P>&nbsp;&nbsp;&nbsp; this-&gt;volumeMapper -&gt; SetVolumeRayCastFunction(compositeFunction);<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; </P>
<P>&nbsp;&nbsp;&nbsp;<STRONG> <FONT color=#cd3f00>this-&gt;volumeMapper -&gt; SetInput(this-&gt;Reader-&gt;GetOutput());</FONT></STRONG></P>
<P>&nbsp;&nbsp;&nbsp; this-&gt;volume-&gt;SetMapper(volumeMapper);<BR>&nbsp;&nbsp;&nbsp; this-&gt;volume-&gt;SetProperty(volumeProperty);</P>
<P>&nbsp;</P>
<P>C:\Documents and Settings\All Users\¹ÙÅÁ È­¸é\vtkSDI\vtkSDIDoc.cpp(209) : error C2664: 'void __thiscall vtkVolumeMapper::SetInput(class vtkImageData *)' : cannot convert parameter 1 from 'class vtkStructuredPoints *' to 'class vtkImageData *'</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>I got this problem!!</P>
<P>What's the problem? Can you help me?<BR></P>
<img src="http://webmail.pusan.ac.kr/cgi-bin/setconfirm.cgi?k=1182825228253208296208&u=madness78&d=pusan.ac.kr" width=1 height=1>
</BODY>
</HTML>