[vtkusers] vtkPolyDataAlgorithm Input setting problem?

Ambar C ambarc at gmail.com
Mon Dec 6 22:13:54 EST 2010


Hi, I'm just looking for a method to encapsulate some vtkPolyData so
that I can satisfy someone else's function prototype. I didn't realise
vtkPolyDataAlgorithm was abstract. What would be the best envelope for
this?

Best,
Ambar

On Mon, Dec 6, 2010 at 7:07 PM, David Doria <daviddoria at gmail.com> wrote:
> On Mon, Dec 6, 2010 at 9:09 PM, Ambar C <ambarc at gmail.com> wrote:
>> Hello,
>>
>> I have the code:
>>
>> vtkSmartPointer<vtkPolyDataAlgorithm> algo =
>> vtkSmartPointer<vtkPolyDataAlgorithm>::New();
>> algo->SetInput(baseMesh);
>>
>> where baseMesh is the output of a transform filter (which has been checked).
>>
>> This line causes me to get the output
>>
>> vtkPolyDataAlgorithm (02EA1DC8): Definition of Execute() method should
>> be in subclass and you should really use the
>> ExecuteData(vtkInformation *request,...) signature instead
>>
>> I'm not quite sure what to do with this, and think that the problem
>> lies with the way I'm setting my input. Any suggestions?
>
> You cannot instantiate vtkPolyDataAlgorithm, it is abstract. What is
> it you are trying to do? You need to use an appropriate subclass. You
> can see all of the subclasses here:
> http://www.vtk.org/doc/nightly/html/hierarchy.html (search for
> vtkPolyDataAlgorithm on the page)
>
> David
>



More information about the vtkusers mailing list