Changeset 9045:7ab1b1a54af4 in orange


Ignore:
Timestamp:
09/29/11 23:03:00 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
e114d55edb9b49759e8806bf660567ade1c8ade3
Message:

Started work on NetExplorer3D

Location:
orange/OrangeWidgets
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Visualize Qt/OWLinProj3DPlot.py

    r9015 r9045  
    157157            proj_data[3] = self.no_jittering_scaled_data[self.attribute_name_index[self.data_domain.classVar.name]] 
    158158        self.set_plot_data(proj_data, None) 
     159        self.proj_data = proj_data 
    159160        self.symbol_scale = self.point_width*self._point_width_to_symbol_scale 
    160161        self.hide_outside = False 
  • orange/OrangeWidgets/Visualize Qt/OWLinProjQt.py

    r8959 r9045  
    9292            self.settingsList.append("graph.mouse_sensitivity") 
    9393            self.settingsList.append("dark_theme") 
     94            if "sphereviz" in name_lower: 
     95                self.settingsList.append("graph.show_anchor_grid") 
    9496 
    9597        #load settings 
     
    208210 
    209211        if "3d" in name_lower: 
    210             OWGUI.checkBox(box, self, 'dark_theme', 'Dark theme', callback=self.on_theme_change) 
     212            OWGUI.checkBox(box, self, 'dark_theme', 'Dark theme', callback = self.on_theme_change) 
    211213            OWGUI.checkBox(box, self, 'graph.use_2d_symbols', '2D symbols', callback = self.updateGraph, tooltip = "Use 2D symbols") 
    212214            self.on_theme_change() 
    213215            if "sphereviz" in name_lower: 
     216                OWGUI.checkBox(box, self, 'graph.show_anchor_grid', 'Anchor grid', callback = self.on_theme_change) 
    214217                box = OWGUI.widgetBox(self.SettingsTab, 'Camery type', orientation = "horizontal") 
    215218                c = OWGUI.comboBox(box, self, 'graph.camera_type', callback=self.graph.update_camera_type, sendSelectedValue=0) 
  • orange/OrangeWidgets/Visualize Qt/OWSphereviz3D.py

    r9015 r9045  
    2525        self.camera_angle = 90 
    2626        self.camera_type = 0 # Default, center, attribute 
     27        self.show_anchor_grid = False 
    2728 
    2829    def _build_anchor_grid(self): 
     
    215216 
    216217            # Draw grid between anchors 
    217             self._grid_shader.bind() 
    218             self._grid_shader.setUniformValue('projection', self.projection) 
    219             self._grid_shader.setUniformValue('modelview', self.view * self.model) 
    220             self._grid_shader.setUniformValue('color', self._theme.axis_color) 
    221             self._grid_buffer.draw(GL_LINES) 
    222             self._grid_shader.release() 
     218            if self.show_anchor_grid: 
     219                self._grid_shader.bind() 
     220                self._grid_shader.setUniformValue('projection', self.projection) 
     221                self._grid_shader.setUniformValue('modelview', self.view * self.model) 
     222                self._grid_shader.setUniformValue('color', self._theme.axis_color) 
     223                self._grid_buffer.draw(GL_LINES) 
     224                self._grid_shader.release() 
    223225 
    224226        self._draw_value_lines() 
  • orange/OrangeWidgets/plot/owplot3d.py

    r9015 r9045  
    757757        ''' 
    758758        if self.data == None: 
    759             print('set_plot_data has not been called yet!') 
     759            print('Error: set_plot_data has not been called yet!') 
    760760            return 
    761761        start = time.time() 
Note: See TracChangeset for help on using the changeset viewer.