CreateVolumneRenderer.py 文件源码

python
阅读 13 收藏 0 点赞 0 评论 0

项目:BrainModulyzer 作者: sugeerth 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号