<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
yes, I have write in that way, but there still comes errors.<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>code:<BR>&nbsp;vtkPLOT3DReader *pl3d = vtkPLOT3DReader::New();<BR>&nbsp;&nbsp;&nbsp; pl3d-&gt;SetXYZFileName("combxyz.bin");<BR>&nbsp;&nbsp;&nbsp; pl3d-&gt;SetQFileName("combq.bin");<BR>&nbsp;&nbsp;&nbsp; pl3d-&gt;SetScalarFunctionNumber(100);<BR>&nbsp;&nbsp;&nbsp; pl3d-&gt;SetVectorFunctionNumber(202);<BR>&nbsp;&nbsp;&nbsp; pl3d-&gt;Update();<BR>&nbsp;vtkPlane *plane = vtkPlane::New();<BR>&nbsp;&nbsp;&nbsp; plane-&gt;SetOrigin(pl3d-&gt;GetOutput()-&gt;GetCenter());<BR><BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>error at the last line of the code:<BR>error C2027: use of undefined type 'vtkStructuredGrid'<BR>error C2227: left of '-&gt;GetCenter' must point to class/struct/union<BR><BR>
<BLOCKQUOTE>
<HR>
Subject: RE: [vtkusers] How to make "eval plane SetOrigin [[pl3d GetOutput] GetCenter]" work in C++?<BR>Date: Thu, 10 Apr 2008 08:45:27 -0500<BR>From: Blezek.Daniel@mayo.edu<BR>To: treestone0@hotmail.com<BR><BR>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding-right:0px;padding-left:0px;padding-bottom:0px;padding-top:0px;}
.ExternalClass BODY.EC_hmmessage
{font-size:9pt;font-family:Tahoma;}
</STYLE>

<DIV dir=ltr align=left><SPAN class=EC_EC_483584313-10042008><FONT face=Arial color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_483584313-10042008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_483584313-10042008><FONT face=Arial color=#0000ff size=2>&nbsp; In C++ it would be:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_483584313-10042008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_483584313-10042008><FONT face=Arial color=#0000ff size=2>plane-&gt;SetOrigin ( pl3d-&gt;GetOutput()-&gt;GetCenter() );</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_483584313-10042008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_483584313-10042008><FONT face=Arial color=#0000ff size=2>eval in TCL breaks the list returned by [[pl3d GetOutput] GetCenter] into 3 distinct components required by plane SetOrigin. </FONT></SPAN></DIV>
<DIV><SPAN class=EC_EC_483584313-10042008><FONT face=Arial color=#0000ff size=2>-dan</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR>&nbsp;</DIV>
<DIV class=EC_EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <B>On Behalf Of </B>liushuyan<BR><B>Sent:</B> Thursday, April 10, 2008 8:41 AM<BR><B>To:</B> vtkusers@vtk.org<BR><B>Subject:</B> [vtkusers] How to make "eval plane SetOrigin [[pl3d GetOutput] GetCenter]" work in C++?<BR></FONT><BR></DIV>
<DIV></DIV>Hi, everyone,<BR>&nbsp;&nbsp;&nbsp; I am learning to translate vtk into c++ style, and hit some problems.<BR>&nbsp;&nbsp;&nbsp; Can someone explain how to translate "eval plane SetOrigin [[pl3d GetOutput] GetCenter]"?<BR>&nbsp;&nbsp;&nbsp; What&nbsp;does the "eval" mean?<BR>&nbsp;<BR>piece of the source code:<BR>&nbsp;<BR>vtkPLOT3DReader pl3d<BR>&nbsp;&nbsp;&nbsp; pl3d SetXYZFileName "$VTK_DATA/combxyz.bin"<BR>&nbsp;&nbsp;&nbsp; pl3d SetQFileName "$VTK_DATA/combq.bin"<BR>&nbsp;&nbsp;&nbsp; pl3d SetScalarFunctionNumber 100<BR>&nbsp;&nbsp;&nbsp; pl3d SetVectorFunctionNumber 202<BR>&nbsp;&nbsp;&nbsp; pl3d Update<BR>vtkPlane plane<BR>&nbsp;&nbsp;&nbsp; eval plane SetOrigin [[pl3d GetOutput] GetCenter]<BR>&nbsp;&nbsp;&nbsp; plane SetNormal -0.287 0 0.9579<BR></BLOCKQUOTE><br /><hr />“七件武器,七种完美” <a href='http://get.live.cn' target='_new'>立刻体验!</a></body>
</html>