def _get_bcond_mngr(self): bc_list = [self.fixed_left_x, self.fixed_top_y, self.control_bc, ] + self.link_right_x return BCondMngr(bcond_list=bc_list)
def _get_bcond_mngr(self): bc_list = [ self.fixed_left_bc, self.fixed_right_bc, # self.fixed_middle_bc, self.control_bc ] return BCondMngr(bcond_list=bc_list)
def _get_bcond_mngr(self): bc_list = [ self.fixed_left_x, self.fixed_top_y, # self.link_right_cs, self.uniform_control_bc, ] # + self.link_right_x return BCondMngr(bcond_list=bc_list)
def _get_bcond_mngr(self): bc_list = [self.fixed_bc, self.control_bc] return BCondMngr(bcond_list=bc_list)
def _get_bcond_mngr(self): return BCondMngr(bcond_list=self.bc)
def _bcond_mngr_default(self): return BCondMngr()
handler=BMCSTreeViewHandler(), key_bindings=key_bindings, toolbar=ToolBar(*toolbar_actions, image_size=(32, 32), show_tool_names=False, show_divider=True, name='view_toolbar'), menubar=MenuBar( Menu(menu_exit, Separator(), menu_save, menu_open, name='File'), Menu(menu_tools_report_tex, menu_tools_report_pdf, name='Tools'), )) if __name__ == '__main__': from view.examples.response_tracer import ResponseTracer from simulator.api import Simulator from ibvpy.core.bcond_mngr import BCondMngr from ibvpy.bcond import BCDof, BCSlice bc_mngr = BCondMngr() bc_mngr.bcond_list = [BCDof(), BCSlice()] rt = ResponseTracer() bm = Simulator(node_name='sim', tree_node_list=[ BMCSTreeNode(node_name='subnode 1'), BMCSTreeNode(node_name='subnode 2'), rt, bc_mngr ]) bm.tree_node_list += [bm.tline] tv = BMCSWindow(model=bm) rt.add_viz2d('time_profile', 'time profile') tv.configure_traits()