Commit 19a968dc1a945a21ff8416f01159de28e0efdadc

Authored by Thiago Franco de Moraes
1 parent f8d25f59
Exists in vtk6

Showing raycasting with vtk6

Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
invesalius/data/volume.py
... ... @@ -224,7 +224,7 @@ class Volume():
224 224 # Update convolution filter
225 225 original_imagedata = self.imagedata.GetOutput()
226 226 imagedata = self.ApplyConvolution(original_imagedata)
227   - self.volume_mapper.SetInput(imagedata)
  227 + self.volume_mapper.SetInputData(imagedata)
228 228  
229 229 # Update other information
230 230 self.SetShading()
... ... @@ -484,7 +484,7 @@ class Volume():
484 484 update_progress = vtk_utils.ShowProgress(number_filters)
485 485 for filter in self.config['convolutionFilters']:
486 486 convolve = vtk.vtkImageConvolve()
487   - convolve.SetInput(imagedata)
  487 + convolve.SetInputData(imagedata)
488 488 convolve.SetKernel5x5([i/60.0 for i in Kernels[filter]])
489 489 convolve.ReleaseDataFlagOn()
490 490  
... ... @@ -530,7 +530,7 @@ class Volume():
530 530 update_progress= vtk_utils.ShowProgress(2 + number_filters)
531 531 # Flip original vtkImageData
532 532 flip = vtk.vtkImageFlip()
533   - flip.SetInput(image)
  533 + flip.SetInputData(image)
534 534 flip.SetFilteredAxis(1)
535 535 flip.FlipAboutOriginOn()
536 536 flip.ReleaseDataFlagOn()
... ... @@ -545,7 +545,7 @@ class Volume():
545 545 self.scale = scale
546 546  
547 547 cast = vtk.vtkImageShiftScale()
548   - cast.SetInput(image)
  548 + cast.SetInputData(image)
549 549 cast.SetShift(abs(scale[0]))
550 550 cast.SetOutputScalarTypeToUnsignedShort()
551 551 cast.ReleaseDataFlagOn()
... ... @@ -589,7 +589,7 @@ class Volume():
589 589 self.volume_mapper = volume_mapper
590 590  
591 591 self.SetTypeRaycasting()
592   - volume_mapper.SetInput(image2)
  592 + volume_mapper.SetInputData(image2)
593 593  
594 594 # TODO: Look to this
595 595 #volume_mapper_hw = vtk.vtkVolumeTextureMapper3D()
... ... @@ -657,7 +657,7 @@ class Volume():
657 657 image = self.image
658 658 r = int(image.GetScalarRange()[1] - image.GetScalarRange()[0])
659 659 accumulate = vtk.vtkImageAccumulate()
660   - accumulate.SetInput(image)
  660 + accumulate.SetInputData(image)
661 661 accumulate.SetComponentExtent(0, r -1, 0, 0, 0, 0)
662 662 accumulate.SetComponentOrigin(image.GetScalarRange()[0], 0, 0)
663 663 accumulate.ReleaseDataFlagOn()
... ...