- SUIT_ViewWindow* createView( SUIT_Desktop* );
-
- virtual void contextMenuPopup( QPopupMenu* );
-
- //void activateGLSketching( int );
-
- GLViewer_Context* getGLContext() const { return myGLContext; }
- void updateColors( QColor colorH, QColor colorS );
- void updateBorders( const QRect& rect );
- void updateBorders();
-
- void updateAll();
- void updateDrawers( GLboolean update, GLfloat scX = 0.0, GLfloat scY = 0.0 );
- void activateDrawers( TColStd_SequenceOfInteger& list, bool onlyUpdate,
- GLboolean swap = GL_TRUE );
- void activateDrawers( QValueList<GLViewer_Object*>& theObjects, bool onlyUpdate, GLboolean swap = GL_FALSE );
- void activateDrawer( int index, bool onlyUpdate, GLboolean swap = GL_FALSE );
- void activateDrawer( GLViewer_Object*, bool onlyUpdate, GLboolean swap = GL_FALSE );
- void activateAllDrawers( bool onlyUpdate, GLboolean swap = GL_FALSE );
-
- void transPoint( GLfloat& x, GLfloat& y );
- QRect* getWinObjectRect( GLViewer_Object* theObject );
-
- GLViewer_Rect getGLVRect( const QRect& ) const;
- QRect getQRect( const GLViewer_Rect& ) const;
-
- virtual void insertHeader( VectorFileType aType, QFile& hFile );
- virtual void insertEnding( VectorFileType aType, QFile& hFile );
- virtual bool translateTo( VectorFileType aType, QString FileName, PaperType aPType,
- double mmLeft, double mmRight, double mmTop, double mmBottom );
+ //! Redefined method
+ /*Returns GLViewer_ViewFrame*/
+ virtual SUIT_ViewWindow* createView( SUIT_Desktop* );
+
+ //! Adds item for change background color
+ void addPopupItems( QMenu* );
+
+ //void activateGLSketching( int );
+
+ //! Returns all drawers
+ const QList<GLViewer_Drawer*>& getDrawers() const { return myDrawers; }
+
+ //! Returns context
+ GLViewer_Context* getGLContext() const { return myGLContext; }
+ //! Updates colors for all drawers (does not work)
+ void updateColors( QColor colorH, QColor colorS );
+
+ //! Updates rect of global scene by adding new rect
+ void updateBorders( GLViewer_Rect* theRect );
+ //! Recomputes global scene rect
+ void updateBorders();
+
+ //! Redraws all active objects by updating all drawers in all views
+ void updateAll();
+ //! Updates all drawers with new scale factor
+ /* \param onlyUpdate is passed to method activateAllDrawersdrawers*/
+ void updateDrawers( GLboolean onlyUpdate, GLfloat scX = 0.0, GLfloat scY = 0.0 );
+ //! Activates drawers for objects from list \param theObjects only
+ void activateDrawers( QList<GLViewer_Object*>& theObjects, bool onlyUpdate, GLboolean swap = GL_FALSE );
+ //! Activates drawer for \param theObject
+ void activateDrawer( GLViewer_Object* theObject, bool onlyUpdate, GLboolean swap = GL_FALSE );
+ //! Updates all drawers with new scale factor
+ /* \param onlyUpdate is passed to drawers*/
+ void activateAllDrawers( bool onlyUpdate, GLboolean swap = GL_FALSE );
+
+ //! Translates point (x,y) from global CS to curreent viewer CS
+ void transPoint( GLfloat& x, GLfloat& y );
+ //! Returns object rect in window CS
+ QRect* getWinObjectRect( GLViewer_Object* theObject);
+
+ //! Translates rect in window CS to rect in global CS
+ GLViewer_Rect getGLVRect( const QRect& ) const;
+ //! Translates rect in global CS to rect in window CS
+ QRect getQRect( const GLViewer_Rect& ) const;
+
+ //! Inserts common text lines starting file of \param aType
+ virtual void insertHeader( VectorFileType aType, QFile& hFile );
+ //! Inserts common text lines ending file of \param aType
+ virtual void insertEnding( VectorFileType aType, QFile& hFile );
+ //! Translates current view content to vector file
+ /* Translates current view content to vector file with type \param aType, name \param FileName,
+ * output paper size \param aPType, with margins in mm
+ */
+ virtual bool translateTo( VectorFileType aType, QString FileName, PaperType aPType,
+ double mmLeft, double mmRight, double mmTop, double mmBottom );