COMP: fix VTK 6 compilation errors

Change SetInput to SetInputData in Logic class.
Kept backward compatibility for VTK5 through version check.