#NEWLINE# def addImage( self , name ) : #NEWLINE# #INDENT# if ( name in self . images ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# image = vtk . vtkImageData ( ) #NEWLINE# tex = vtk . vtkTexture ( ) #NEWLINE# tex . SetInput ( image ) #NEWLINE# tex . EdgeClampOn ( ) #NEWLINE# tex . RepeatOff ( ) #NEWLINE# self . imageUtimes [ name ] = 0 #NEWLINE# self . images [ name ] = image #NEWLINE# self . textures [ name ] = tex #NEWLINE# self . imageRotations180 [ image ] = False