00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef OST_GUI_SCENE_SELECTION_HH
00020 #define OST_GUI_SCENE_SELECTION_HH
00021
00022
00023 #include <ost/mol/query_view_wrapper.hh>
00024
00025 #include <ost/gfx/entity_fw.hh>
00026 #include <ost/gfx/gfx_node_fw.hh>
00027 #include <ost/gui/module_config.hh>
00028
00029 #include <QObject>
00030 #include <QMenu>
00031 #include <QPoint>
00032 namespace ost { namespace gui {
00033
00034 class DLLEXPORT_OST_GUI SceneSelection : public QObject {
00035 Q_OBJECT
00036 public:
00037 static SceneSelection* Instance();
00038 int GetActiveNodeCount() const;
00039 gfx::GfxNodeP GetActiveNode(unsigned int pos) const;
00040 int GetActiveViewCount() const;
00041 mol::EntityView GetActiveView(unsigned int pos) const;
00042 gfx::EntityP GetViewEntity() const;
00043
00044 public slots:
00045 void CenterOnObjects();
00046 void Delete();
00047 #if OST_IMG_ENABLED
00048 void ViewDensitySlices();
00049 void ShowDownsampledMap();
00050 void ShowOriginalMap();
00051 #endif // OST_IMG_ENABLED
00052 void Deselect();
00053 void Show();
00054 void Hide();
00055 void SelectAllViews();
00056 void DeselectAllViews();
00057 void MakeVisible();
00058 void MakeHidden();
00059 void ShowExclusive();
00060 void HideExclusive();
00061 mol::EntityView GetViewUnion();
00062
00063
00064 private slots:
00065 void SetActiveNodes(gfx::NodePtrList nodes, gfx::EntityP entity, mol::QueryViewWrapperList views);
00066
00067 private:
00068 SceneSelection();
00069 gfx::NodePtrList nodes_;
00070 gfx::EntityP view_entity_;
00071 mol::QueryViewWrapperList views_;
00072 static SceneSelection* scene_selection_;
00073 QMenu* menu_;
00074 };
00075
00076 }}
00077
00078 #endif