def reset_dataviews(self): #in principle it might be useful to do some more cleanup here self.display_mode = 'normal' self.dv_3d = DVMayavi(self) self.dv_mat = DVMatrix(self) self.dv_circ = DVCircle(self) self.chg_scalar_colorbar()
def __init__(self, name, lab_pos, labnam, srf, labv, gui=None, adj=None, soft_max_edges=20000, **kwargs): super(Dataset, self).__init__(**kwargs) self.gui = gui self.name = name self.opts = DisplayOptions(self) self.scalar_display_settings = ScalarDisplaySettings(self) #this is effectively load_parc self.lab_pos = lab_pos self.labnam = labnam self.srf = srf self.labv = labv self.nr_labels = len(labnam) #load_parc redundantly sets the current display but oh well. #self.load_parc(lab_pos,labnam,srf,labv, # init_display.subject_name,init_display.parc_name) #if adj is None, it means it will be guaranteed to be supplied later #by the user #this is load adj, except without initializing nonexistent dataviews if adj is not None: self.adj = adj self.soft_max_edges = soft_max_edges self.pos_helper_gen() #flip adj ord should already be done to the preprocessed adj self.adj_helper_gen() self.color_legend = ColorLegend() self.node_colors_gen() self.dv_3d = DVMayavi(self) self.dv_mat = DVMatrix(self) self.dv_circ = DVCircle(self) self.chg_scalar_colorbar()