source: orange/Orange/OrangeWidgets/Visualize Qt/OWNxExplorer3D.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 1.4 KB checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

RevLine 
[9045]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
[9047]11import Orange
12
13from OWNxCanvasQt import Default, AttributeList
[9045]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
[9047]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),
[9549]22                       ("Marked Items", Orange.data.Table, self.markItems), 
[9546]23                       ("Item Subset", Orange.data.Table, self.setExampleSubset), 
24                       ("Distances", Orange.core.SymMatrix, self.set_items_distance_matrix)]
[9064]25
[9047]26        self.outputs = [("Selected Network", Orange.network.Graph),
[9546]27                        ("Distance Matrix", Orange.core.SymMatrix),
[9047]28                        ("Selected Items", Orange.data.Table), 
[9546]29                        ("Other Items", Orange.data.Table), 
[9047]30                        ("Marked Items", Orange.data.Table),
[9546]31                        ("Features", AttributeList)]
[9047]32
33
Note: See TracBrowser for help on using the repository browser.