[vtkusers] vtkStreamingDemandDrivenPipeline Error!!!

Nelson gnjoseph at gmail.com
Fri Dec 23 05:44:23 EST 2011


Hi Alex:

My code is:

// FLUENTReader
vtkSmartPointer<vtkFLUENTReader> reader =
vtkSmartPointer<vtkFLUENTReader>::New();
reader->SetFileName( path );
reader->Update();

// Mapper
m_polyDataMapper = m_parent->GetPolyDataMapper();
m_polyDataMapper->SetInputConnection( reader->GetOutputPort() );

// Actor
m_pActor = m_parent->GetActor();
m_pActor->SetMapper( m_polyDataMapper );

// Renderer
vtkSmartPointer<vtkRenderer> renderer = m_parent->GetRenderer();
renderer->AddActor( m_pActor );
//renderer->ResetCamera();

// Render window
vtkSmartPointer<vtkRenderWindow> renderWindow = m_parent->GetRenderWindow();
renderWindow->AddRenderer( renderer );

// Create an interactor and associate it to the render window
wxVTKRenderWindowInteractor* wxVTKRenWinInteractor =
m_parent->GetRenderWindowInteractor();
wxVTKRenWinInteractor->SetRenderWindow( renderWindow );

// Interactor style
vtkSmartPointer<vtkInteractorStyleTrackballCamera> style =
m_parent->GetInteractorStyleTrackballCamera();
wxVTKRenWinInteractor->SetInteractorStyle( style );
wxVTKRenWinInteractor->Initialize();

-----
Regards,
Nelson
--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkStreamingDemandDrivenPipeline-Error-tp5094520p5096856.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list