vtkSmartPointer header is needed when using it in code with vtk 7 or 8. This was added for VTK8, I just added for vtk 7.