def __init__(self,parcelation_filename, template_filename,correlationTable,selectedColor,colorTable,SliceX,SliceY,SliceZ):
super(VolumneRendererWindow,self).__init__()
self.correlationTable = correlationTable
self.nRegions = len(self.correlationTable.header)
self.selectedColor = selectedColor
self.widget = None
self.SliceX = SliceX
self.SliceY = SliceY
self.SliceZ = SliceZ
self.colorTable = colorTable
self.region_data = nib.load(parcelation_filename).get_data().astype(np.uint32)
self.Centroid = dict()
self.regionPlotId = -1
self.centroidPlotId = -1
self.activePlotId = -1
self.activePlotId = self.regionPlotId
self.parcelation_filename = parcelation_filename
self.template_filename = template_filename
self.setCentreFilename()
self.frame = QtGui.QFrame()
self.BoxLayoutView = QtGui.QVBoxLayout()
self.BoxLayoutView.setContentsMargins(0, 0, 0, 0)
self.setLayout(self.BoxLayoutView)
self.setSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
self.setDataset()
self.setFlags()
self.RenderData()
# Create source
source = vtk.vtkSphereSource()
source.SetCenter(0, 0, 0)
source.SetRadius(5.0)
self.FinalRenderView()
self.show()
评论列表
文章目录