1 // File : SUPERVGraph_ViewFrame.h
2 // Created : Wed Mar 20 14:22:27 2002
3 // Author : Nicolas REJNERI
5 // Module : SUPERVGraph
6 // Copyright : Open CASCADE 2002
10 #ifndef SUPERVGraph_ViewFrame_H
11 #define SUPERVGraph_ViewFrame_H
14 #include "QAD_ViewFrame.h"
15 #include "QAD_Application.h"
17 #include "SALOME_InteractiveObject.hxx"
19 class QAD_EXPORT SUPERVGraph_View: public QWidget, public QAD_PopupClientServer{
22 SUPERVGraph_View(QWidget* theParent);
23 SUPERVGraph_View(SUPERVGraph_View* theParent);
25 virtual void ActivatePanning() = 0;
26 virtual void ResetView() = 0;
28 void init(QWidget* theParent);
32 class QAD_EXPORT SUPERVGraph_ViewFrame : public QAD_ViewFrame {
36 SUPERVGraph_ViewFrame(QWidget* parent, const char* name=0 );
37 ~SUPERVGraph_ViewFrame();
39 ViewType getTypeView() const{ return VIEW_GRAPHSUPERV;};
40 SUPERVGraph_View* getViewWidget();
41 void setViewWidget(SUPERVGraph_View* theView);
43 void setBackgroundColor( const QColor& );
44 QColor backgroundColor() const;
46 void SetSelectionMode( int mode );
48 void SetTrihedronSize( int dim );
50 /* popup management */
51 void setPopupServer( QAD_Application* );
53 /* interactive object management */
54 void highlight( const Handle(SALOME_InteractiveObject)& IObject,
55 bool highlight, bool immediatly = true );
56 void unHighlightAll();
57 void rename( const Handle(SALOME_InteractiveObject)& IObject,
59 bool isInViewer( const Handle(SALOME_InteractiveObject)& IObject );
60 bool isVisible( const Handle(SALOME_InteractiveObject)& IObject );
62 /* undo/redo management */
63 void undo(SALOMEDS::Study_var aStudy,
64 const char* StudyFrameEntry);
65 void redo(SALOMEDS::Study_var aStudy,
66 const char* StudyFrameEntry);
70 Handle(SALOME_InteractiveObject) FindIObject(const char* Entry) { };
73 void Display(const Handle(SALOME_InteractiveObject)& IObject, bool immediatly = true){};
74 void DisplayOnly(const Handle(SALOME_InteractiveObject)& IObject){};
75 void Erase(const Handle(SALOME_InteractiveObject)& IObject, bool immediatly = true){};
85 void onViewGlobalPan();
94 void onViewTrihedron();
97 SUPERVGraph_View* myView;
98 QAD_Application* myApp;