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()); }
static void AddInputData(vtkSmartPointer<Filter> filter, vtkPolyData *polydata) { #if VTK_MAJOR_VERSION <= 5 filter->AddInput(polydata); #else filter->AddInputData(polydata); #endif }