Esempio n. 1
0
 ParaviewCoprocessor()
         :       m_data_descriptor(vtkSmartPointer<vtkCPDataDescription>::New()),
         m_processor(vtkSmartPointer<vtkCPProcessor>::New()),
         m_timestep(0)
 {
     m_processor->Initialize();
     m_data_descriptor->AddInput(app().name().c_str());
 }
Esempio n. 2
0
 static void AddInputData(vtkSmartPointer<Filter> filter, vtkPolyData *polydata)
 {
 #if VTK_MAJOR_VERSION <= 5
     filter->AddInput(polydata);
 #else
     filter->AddInputData(polydata);
 #endif
 }