def __init__(self, data=None,application=None): EMGUIModule.__init__(self,ensure_gl_context=True) self.parent = None try: self.parent.setAcceptDrops(True) except: pass self.rotor = EMGLRotorWidget(self,0,-70,-15,EMGLRotorWidget.TOP_ROTARY,100) self.rotor.set_angle_range(40.0) self.rotor.set_mouse_mode("mxrotor") self.widget = EM3DGLWindowOverride(self,self.rotor) self.widget.set_draw_frame(False) self.z_near = 0 self.z_far = 0 self.inspector = None
def __init__(self, data=None,application=None): self.rotor = EMGLRotorWidget(self,15,10,45,EMGLRotorWidget.LEFT_ROTARY) EMGUIModule.__init__(self,ensure_gl_context=True) self.data=None self.initsizeflag = True if data: self.set_data(data) self.widget = EM3DGLWindow(self,self.rotor) self.widget.set_draw_frame(False) self.z_near = 0 self.z_far = 0 self.hud_data = [] # a list of strings to be rendered to the heads up display (hud) self.load_font_renderer()
def __init__(self, data=None,application=None): self.widget = None self.data=None self.rotor = EMGLRotorWidget(self,-15,70,-15,EMGLRotorWidget.BOTTOM_ROTARY,200) #self.rotor.set_angle_range(110.0) #self.rotor.set_child_mouse_events(False) self.rotor.set_mouse_mode("mxrotor") self.image_file_name = None # keeps track of the image file name (if any) - book keeping purposes only self.emdata_list_cache = None # all import emdata list cache, the object that stores emdata objects efficiently. Must be initialized via set_data or set_image_file_name self.default_mxs = 3 self.visible_mxs = self.default_mxs # the number of visible imagemxs in the rotor self.mx_rows = 4 # the number of rows in any given imagemx self.mx_cols = 4 # the number of columns in any given imagemx self.start_mx = 0 # the starting index for the currently visible set of imagemxs EMGUIModule.__init__(self,ensure_gl_context=True) self.inspector = None self.minden=0 self.maxden=1.0 self.mindeng=0 self.maxdeng=1.0 self.hist = None self.gamma=1.0 self.mmode = 'app' self.rot_mode = 'app' self.vals_to_display = ["Img #"] self.z_near = 0 self.z_far = 0 self.init_flag = True self.__init_font_renderer() if data: self.set_data(data)