[Paraview] error: 'class vtkFloatArray' has no member named 'setName'

Moreland, Kenneth kmorel at sandia.gov
Sat Sep 14 02:14:51 EDT 2013


The method is SetName with a capitol 'S'. You have setName with a lowercase 's'. The C language is case sensitive.

-Ken

From: 庞庆源 <pangqingyuan1991 at gmail.com<mailto:pangqingyuan1991 at gmail.com>>
Date: Friday, September 13, 2013 6:54 PM
To: paraview <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] [Paraview] error: 'class vtkFloatArray' has no member named 'setName'

Why do I get such a strange error?I can find setName() function at http://www.vtk.org/doc/nightly/html/classvtkFloatArray-members.html
My paraview version is 4.0.1.
the master code is as below:
******************************************
vtkFloatArray *pointScalars = vtkFloatArray::New();
pointScalars->setName("Velocity");

******************************************
I also find similar code in GMVReader plugin source,which is part of paraview source,but without compile error.

--
庞庆源<mailto:pangqingyuan1991 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130914/75b529e9/attachment.htm>


More information about the ParaView mailing list