[vtkusers] VTK 6 migration
Matteo
sendtomatteo at yahoo.it
Mon Jun 9 10:19:59 EDT 2014
Solution for who needs it:
m_Mapper->SetInputDataObject(m_MultiBlockDataSet);
Matteo
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
Hi
I am updating my program to VTK 6, I have a problem with
vtkMultiBlockDataSet.
I am following this guide
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput
Before the code was correctly compiling this line:
m_Mapper->SetInputConnection(m_MultiBlockDataSet->GetProducerPort());
where:
m_Mapper is vtkCompositePolyDataMapper2 (vtkSmartPointer)
MultiBlockDataSet is vtkMultiBlockDataSet (vtkSmartPointer)
I was trying to update it to
m_Mapper->SetInputData(m_MultiBlockDataSet);
but I get this error:
error C2664: 'vtkPolyDataMapper::SetInputData' : cannot convert
parameter 1 from 'vtkSmartPointer<T>' to 'vtkPolyData *'
so I also tried
m_Mapper->SetInputConnection(m_MultiBlockDataSet->GetOutputPort());
But GetOutputPort() is not a member function of vtkMultiBlockDataSet
Any help?
Thanks
Matteo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140609/75f65fcb/attachment.html>
More information about the vtkusers
mailing list