<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=宋体 size=2>Hello Lisa,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=宋体 size=2> Thank you for your
help.</FONT></DIV>
<DIV><FONT face=宋体 size=2> I don't use the abstract superclass
Mapper directly, I use the </FONT></DIV>
<DIV><FONT face=宋体 size=2>vtkVolumeTextureMapper2D and vtkVolumeProMapper
instead. Today I debug </FONT></DIV>
<DIV><FONT face=宋体 size=2>my application again and found the following
reason.</FONT></DIV>
<DIV><FONT face=宋体 size=2> Following is my sample
code:</FONT></DIV>
<DIV><FONT face=宋体
size=2>======================================================</FONT></DIV>
<DIV><FONT face=宋体 size=2> vtkStructurePoints pStructuredPointsData =
vtkStructurePoints::New();</FONT></DIV>
<DIV><FONT face=宋体
size=2>////////////////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT face=宋体 size=2> Read the volume data</FONT></DIV>
<DIV><FONT face=宋体
size=2>////////////////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT face=宋体 size=2> vtkTransform *pTransform =
NULL;<BR> pTransform = vtkTransform::New();</FONT></DIV>
<DIV><FONT face=宋体 size=2>// the next red color sentence is
important<BR><FONT
color=#ff0000> pTransform->RotateX(90);</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=宋体 size=2> // reslice the volume data to rotate
it.</FONT></DIV>
<DIV><FONT face=宋体 size=2><FONT face=宋体 size=2> vtkImageReslice
*pImageReslice</FONT> = vtkImageReslice::New();</FONT></DIV>
<DIV><FONT face=宋体
size=2> pImageReslice->SetInput(pStructuredPointsData);<BR> pImageReslice->SetResliceTransform(pTransform);<BR></FONT></DIV>
<DIV><FONT face=宋体 size=2>// Get the volume data after reslice</DIV></FONT>
<DIV><FONT face=宋体 size=2> vtkImageData *pImageData =
m_pImageReslice->GetOutput();</FONT></DIV>
<DIV><FONT face=宋体
size=2>////////////////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT face=宋体 size=2> Then set the pImageData as the Volume
Mapper(vtkVolumeProMapper, </FONT></DIV>
<DIV><FONT face=宋体 size=2>vtkVolumeTextureMapper2D, etc.) input to render
it.</FONT></DIV>
<DIV><FONT face=宋体
size=2>////////////////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT face=宋体
size=2>==================================================================</FONT></DIV>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV><FONT face=宋体 size=2> But strange phenomena appear. With
the above <FONT color=#ff0000>red color</FONT> sentence, </FONT></DIV>
<DIV><FONT face=宋体 size=2>then the render will display nothing what I mentioned
in the last mail; </FONT></DIV>
<DIV><FONT face=宋体 size=2>without the <FONT color=#ff0000>red color</FONT>
sentence then everything is OK.</FONT></DIV>
<DIV><FONT face=宋体 size=2> I don't know whether the
vtkTransform has problem or the </FONT></DIV>
<DIV><FONT face=宋体 size=2>vtkImageReslice has problem or my rendering methos has
problem. </FONT></DIV>
<DIV><FONT face=宋体 size=2> Can you give me some advice? Thank
you.</FONT></DIV>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV><FONT face=宋体 size=2>Yours,</FONT></DIV>
<DIV><FONT face=宋体 size=2>Shade</FONT></DIV>
<DIV><FONT face=宋体 size=2> </DIV></FONT>
<DIV><FONT face=宋体 size=2>----- Original Message ----- </FONT></DIV>
<DIV>
<DIV><FONT face=宋体 size=2>From: "Lisa S. Avila" <</FONT><A
href="mailto:lisa.avila@kitware.com"><FONT face=宋体
size=2>lisa.avila@kitware.com</FONT></A><FONT face=宋体 size=2>></FONT></DIV>
<DIV><FONT face=宋体 size=2>To: "Shade" <</FONT><A
href="mailto:shade_cn@yahoo.com"><FONT face=宋体
size=2>shade_cn@yahoo.com</FONT></A><FONT face=宋体 size=2>>; <</FONT><A
href="mailto:vtkusers@public.kitware.com"><FONT face=宋体
size=2>vtkusers@public.kitware.com</FONT></A><FONT face=宋体
size=2>></FONT></DIV>
<DIV><FONT face=宋体 size=2>Sent: Monday, October 29, 2001 2:06 PM</FONT></DIV>
<DIV><FONT face=宋体 size=2>Subject: Re: [vtkusers] About Volume Rendering in
vtkNightly</FONT></DIV></DIV>
<DIV><BR></DIV><FONT face=宋体 size=2>> Hello Shade,<BR>> <BR>> What
mapper are you using? You indicate vtkVolumeMapper in your email, but<BR>> it
is not valid (hopefully not possible!) to use a vtkVolumeMapper for<BR>>
rendering - it is an abstract superclass.<BR>> <BR>> Lisa<BR>> <BR>>
----- Original Message -----<BR>> From: "Shade" <</FONT><A
href="mailto:shade_cn@yahoo.com"><FONT face=宋体
size=2>shade_cn@yahoo.com</FONT></A><FONT face=宋体 size=2>><BR>> To:
<</FONT><A href="mailto:vtkusers@public.kitware.com"><FONT face=宋体
size=2>vtkusers@public.kitware.com</FONT></A><FONT face=宋体 size=2>><BR>>
Sent: Friday, October 26, 2001 10:58 PM<BR>> Subject: [vtkusers] About Volume
Rendering in vtkNightly<BR>> <BR>> <BR>> > Dear VTK Users,<BR>>
><BR>> > I download the vtk nightly version of
2001/10/25 and<BR>> > 2001/10/26, but I can't render anything with Volume
Mapper,it<BR>> > seems the lookup table has no effect to the volume, all
the<BR>> > volume cell color is the background color, so in the
render<BR>> > window, it seems there is nothing. If I use the
VTK3.2<BR>> > Official Release, it is no problem. I can't find the
reason,<BR>> > who can give me some hints, thanks a lot.<BR>>
><BR>> > Best Regards,<BR>> > Shade<BR>> ><BR>>
><BR>> > _______________________________________________<BR>> >
This is the private VTK discussion list.<BR>> > Please keep messages
on-topic. Check the FAQ at:<BR>> <</FONT><A
href="http://public.kitware.com/cgi-bin/vtkfaq"><FONT face=宋体
size=2>http://public.kitware.com/cgi-bin/vtkfaq</FONT></A><FONT face=宋体
size=2>><BR>> > Follow this link to subscribe/unsubscribe:<BR>> >
</FONT><A href="http://public.kitware.com/mailman/listinfo/vtkusers"><FONT
face=宋体
size=2>http://public.kitware.com/mailman/listinfo/vtkusers</FONT></A><BR><FONT
face=宋体 size=2>> </FONT></BODY></HTML>