source: orange/orange/OrangeWidgets/Visualize Qt/OWNxExplorer3D.py @ 9064:1a92b789f448

Revision 9064:1a92b789f448, 1.5 KB checked in by matejd <matejd@…>, 3 years ago (diff)

Proper layout for netexplorer3ds plot child; added set_2D_mode convenience method (plot3d)

Line 
1"""
2<name>Net Explorer 3D</name>
3<description>Orange widget for network exploration in 3D.</description>
4<icon>icons/Network.png</icon>
5<contact>Miha Stajdohar (miha.stajdohar(@at@)gmail.com)</contact> 
6<priority>411</priority>
7"""
8
9from OWNxExplorerQt import OWNxExplorerQt
10from OWNxCanvas3D import OWNxCanvas3D
11import Orange
12
13from OWNxCanvasQt import Default, AttributeList
14
15class OWNxExplorer3D(OWNxExplorerQt):
16    def __init__(self, parent=None, signalManager=None, name='Net Explorer 3D', network_canvas=OWNxCanvas3D):
17        OWNxExplorerQt.__init__(self, parent, signalManager, name, network_canvas)
18
19        self.inputs = [("Nx View", Orange.network.NxView, self.set_network_view),
20                       ("Network", Orange.network.Graph, self.set_graph, Default),
21                       ("Items", Orange.data.Table, self.setItems),
22                       ("Items to Mark", Orange.data.Table, self.markItems), 
23                       ("Items Subset", Orange.data.Table, self.setExampleSubset), 
24                       ("Items Distance Matrix", Orange.core.SymMatrix, self.set_items_distance_matrix)]
25
26        self.outputs = [("Selected Network", Orange.network.Graph),
27                        ("Selected Items Distance Matrix", Orange.core.SymMatrix),
28                        ("Selected Items", Orange.data.Table), 
29                        ("Unselected Items", Orange.data.Table), 
30                        ("Marked Items", Orange.data.Table),
31                        ("Attribute Selection List", AttributeList)]
32
33
Note: See TracBrowser for help on using the repository browser.