[vtkusers] How to make "eval plane SetOrigin [[pl3d GetOutput] GetCenter]" work in C++?

Frederic DANESI frederic.danesi at dinccs.com
Thu Apr 10 09:47:41 EDT 2008


plane->SetOrigin(pl3d->GetOutput()->GetCenter()) ;

 

 

De : vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] De la part de liushuyan
Envoyé : jeudi 10 avril 2008 15:41
À : vtkusers at vtk.org
Objet : [vtkusers] How to make "eval plane SetOrigin [[pl3d GetOutput] GetCenter]" work in C++?

 

Hi, everyone,
    I am learning to translate vtk into c++ style, and hit some problems.
    Can someone explain how to translate "eval plane SetOrigin [[pl3d GetOutput] GetCenter]"?
    What does the "eval" mean?
 
piece of the source code:
 
vtkPLOT3DReader pl3d
    pl3d SetXYZFileName "$VTK_DATA/combxyz.bin"
    pl3d SetQFileName "$VTK_DATA/combq.bin"
    pl3d SetScalarFunctionNumber 100
    pl3d SetVectorFunctionNumber 202
    pl3d Update
vtkPlane plane
    eval plane SetOrigin [[pl3d GetOutput] GetCenter]
    plane SetNormal -0.287 0 0.9579

  _____  

使用新一代 Windows Live Messenger 轻松交流和共享!  <http://messenger.live.cn/> 立即体验!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080410/844b5f26/attachment.htm>


More information about the vtkusers mailing list