diff --git a/src/visualization/CellPopulationPyChasteActorGenerator.cpp b/src/visualization/CellPopulationPyChasteActorGenerator.cpp index 43b166e6..72ee6815 100644 --- a/src/visualization/CellPopulationPyChasteActorGenerator.cpp +++ b/src/visualization/CellPopulationPyChasteActorGenerator.cpp @@ -160,11 +160,7 @@ void CellPopulationPyChasteActorGenerator::AddCaBasedCellPopulationActor(vt p_ca_image->SetOrigin(bounds[0], bounds[2], bounds[4]); p_ca_image->SetSpacing(spacing, spacing, spacing); - #if VTK_MAJOR_VERSION <= 5 - p_geom_filter->SetInput(p_ca_image); - #else - p_geom_filter->SetInputData(p_ca_image); - #endif + p_geom_filter->SetInputData(p_ca_image); vtkSmartPointer p_mapper = vtkSmartPointer::New(); p_mapper->SetInputConnection(p_geom_filter->GetOutputPort()); @@ -386,23 +382,14 @@ void CellPopulationPyChasteActorGenerator::AddPottsBasedCellPopulationActor p_features->Update(); vtkSmartPointer p_append = vtkSmartPointer::New(); - #if VTK_MAJOR_VERSION <= 5 - p_append->AddInput(p_bounds); - p_append->AddInput(p_features->GetOutput()); - #else - p_append->AddInputData(p_bounds); - p_append->AddInputData(p_features->GetOutput()); - #endif + p_append->AddInputData(p_bounds); + p_append->AddInputData(p_features->GetOutput()); p_append->Update(); p_bounds = p_append->GetOutput(); } vtkSmartPointer p_mapper2 = vtkSmartPointer::New(); - #if VTK_MAJOR_VERSION <= 5 - p_mapper2->SetInput(p_bounds); - #else - p_mapper2->SetInputData(p_bounds); - #endif + p_mapper2->SetInputData(p_bounds); vtkSmartPointer p_volume_actor2 = vtkSmartPointer::New(); p_volume_actor2->SetMapper(p_mapper2); @@ -524,24 +511,15 @@ void CellPopulationPyChasteActorGenerator::AddActor(vtkSmartPointerSetThetaResolution(16); vtkSmartPointer p_glyph = vtkSmartPointer::New(); - #if VTK_MAJOR_VERSION <= 5 - p_glyph->SetInput(p_polydata); - p_glyph->SetSource(p_spheres->GetOutput()); - #else - p_glyph->SetInputData(p_polydata); - p_glyph->SetSourceConnection(p_spheres->GetOutputPort()); - #endif + p_glyph->SetInputData(p_polydata); + p_glyph->SetSourceConnection(p_spheres->GetOutputPort()); p_glyph->ClampingOff(); p_glyph->SetScaleModeToScaleByScalar(); p_glyph->SetScaleFactor(1.0); p_glyph->Update(); vtkSmartPointer p_mapper = vtkSmartPointer::New(); - #if VTK_MAJOR_VERSION <= 5 - p_mapper->SetInput(p_glyph->GetOutput()); - #else - p_mapper->SetInputData(p_glyph->GetOutput()); - #endif + p_mapper->SetInputData(p_glyph->GetOutput()); p_mapper->SetLookupTable(p_scaled_ctf); p_mapper->ScalarVisibilityOn(); p_mapper->SelectColorArray("CellColors"); @@ -720,11 +698,7 @@ void CellPopulationPyChasteActorGenerator::AddVertexBasedCellPopulationActo p_scaled_ctf->Build(); vtkSmartPointer p_geom_filter = vtkSmartPointer::New(); - #if VTK_MAJOR_VERSION <= 5 - p_geom_filter->SetInput(p_voronoi_grid); - #else - p_geom_filter->SetInputData(p_voronoi_grid); - #endif + p_geom_filter->SetInputData(p_voronoi_grid); vtkSmartPointer p_mapper = vtkSmartPointer::New(); p_mapper->SetInputConnection(p_geom_filter->GetOutputPort()); @@ -906,11 +880,7 @@ void CellPopulationPyChasteActorGenerator::AddImmersedBoundaryCellPopulatio p_scaled_ctf->Build(); vtkSmartPointer p_geom_filter = vtkSmartPointer::New(); - #if VTK_MAJOR_VERSION <= 5 - p_geom_filter->SetInput(p_voronoi_grid); - #else - p_geom_filter->SetInputData(p_voronoi_grid); - #endif + p_geom_filter->SetInputData(p_voronoi_grid); vtkSmartPointer p_mapper = vtkSmartPointer::New(); p_mapper->SetInputConnection(p_geom_filter->GetOutputPort()); @@ -1229,11 +1199,7 @@ void CellPopulationPyChasteActorGenerator::AddMeshBasedCellPopulationActor( } vtkSmartPointer p_mutable_geom_filter = vtkSmartPointer::New(); - #if VTK_MAJOR_VERSION <= 5 - p_mutable_geom_filter->SetInput(p_mutable_grid); - #else p_mutable_geom_filter->SetInputData(p_mutable_grid); - #endif vtkSmartPointer p_extract_edges = vtkSmartPointer::New(); p_extract_edges->SetInputConnection(p_mutable_geom_filter->GetOutputPort());