Version: 9.15.0
GLViewer_ViewFrame Class Reference

#include <GLViewer_ViewFrame.h>

Inheritance diagram for GLViewer_ViewFrame:
Inheritance graph

Public Types

enum  {
  DumpId , FitAllId , FitRectId , FitSelectId ,
  ZoomId , PanId , GlobalPanId , ResetId
}
 Actions ID. More...
 

Signals

void vfDrawExternal (QPainter *)
 
void vfViewClosing (QCloseEvent *)
 
- Signals inherited from SUIT_ViewWindow
void tryClosing (SUIT_ViewWindow *)
 
void closing (SUIT_ViewWindow *)
 
void mousePressed (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseReleased (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseDoubleClicked (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseMoving (SUIT_ViewWindow *, QMouseEvent *)
 
void wheeling (SUIT_ViewWindow *, QWheelEvent *)
 
void keyPressed (SUIT_ViewWindow *, QKeyEvent *)
 
void keyReleased (SUIT_ViewWindow *, QKeyEvent *)
 
void contextMenuRequested (QContextMenuEvent *e)
 
void viewModified (SUIT_ViewWindow *)
 
void vpStartRotate (int, int, qint64)
 
void vpRotate (int, int, qint64)
 
void vpEndRotate (int, int, qint64)
 

Public Member Functions

 GLViewer_ViewFrame (SUIT_Desktop *, GLViewer_Viewer *)
 
 ~GLViewer_ViewFrame ()
 
void setViewer (GLViewer_Viewer *)
 
GLViewer_ViewergetViewer () const
 
void setViewPort (GLViewer_ViewPort *)
 
GLViewer_ViewPortgetViewPort () const
 
void setBackgroundColor (const QColor &)
 
QColor backgroundColor () const
 
QSize sizeHint () const
 
virtual void onUpdate (int)
 
virtual QString getVisualParameters ()
 
virtual void setVisualParameters (const QString &parameters)
 
virtual QImage dumpView ()
 
QWidgetgetViewWidget ()
 
- Public Member Functions inherited from SUIT_ViewWindow
 SUIT_ViewWindow (SUIT_Desktop *)
 
virtual ~SUIT_ViewWindow ()
 
virtual void setViewManager (SUIT_ViewManager *)
 
SUIT_ViewManagergetViewManager () const
 
bool event (QEvent *)
 
bool dumpViewToFormat (const QString &fileName, const QString &format)
 
bool onAccelAction (int)
 
bool closable () const
 
bool setClosable (const bool)
 
void setDestructiveClose (const bool)
 
int getId () const
 
QtxActionToolMgrtoolMgr () const
 
virtual void setDropDownButtons (bool)
 Set buttons mode to drop-down (on = true) or ligned (on = false) More...
 
bool dropDownButtons () const
 Get current buttons mode. More...
 
virtual void enableAutoRotation (const bool)
 
virtual bool isAutoRotationEnabled () const
 
virtual SUIT_CameraProperties cameraProperties ()
 

Protected Slots

void onViewPan ()
 
void onViewZoom ()
 
void onViewFitAll ()
 
void onViewFitArea ()
 
void onViewFitSelect ()
 
void onViewGlobalPan ()
 
void onViewRotate ()
 
void onViewReset ()
 
void onViewFront ()
 
- Protected Slots inherited from SUIT_ViewWindow
void updateSyncViews ()
 
void onSynchronizeView (bool)
 
virtual void synchronize (SUIT_ViewWindow *)
 
void emitViewModified ()
 

Protected Member Functions

void onViewBack ()
 
void onViewRight ()
 
void onViewLeft ()
 
void onViewBottom ()
 
void onViewTop ()
 
void onViewTrihedron ()
 
- Protected Member Functions inherited from SUIT_ViewWindow
void closeEvent (QCloseEvent *)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual QString filter () const
 
virtual bool action (const int)
 
virtual bool dumpViewToFormat (const QImage &, const QString &fileName, const QString &format)
 
virtual QActionsynchronizeAction ()
 

Protected Attributes

GLViewer_ViewermyViewer
 
GLViewer_ViewPortmyVP
 
- Protected Attributes inherited from SUIT_ViewWindow
SUIT_DesktopmyDesktop
 
SUIT_ViewManagermyManager
 

Private Slots

void keyEvent (QKeyEvent *)
 
void mouseEvent (QMouseEvent *)
 
void wheelEvent (QWheelEvent *)
 

Private Member Functions

void createActions ()
 
void createToolBar ()
 

Additional Inherited Members

- Public Slots inherited from SUIT_ViewWindow
virtual void onDumpView ()
 
void setVisible (bool)
 
- Static Protected Member Functions inherited from SUIT_ViewWindow
static void synchronizeView (SUIT_ViewWindow *viewWindow, int id)
 

Detailed Description

Frame window for viewport in QAD-based application

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Actions ID.

Enumerator
DumpId 
FitAllId 
FitRectId 
FitSelectId 
ZoomId 
PanId 
GlobalPanId 
ResetId 

Constructor & Destructor Documentation

◆ GLViewer_ViewFrame()

GLViewer_ViewFrame::GLViewer_ViewFrame ( SUIT_Desktop d,
GLViewer_Viewer vw 
)

◆ ~GLViewer_ViewFrame()

GLViewer_ViewFrame::~GLViewer_ViewFrame ( )

Destructor

Member Function Documentation

◆ backgroundColor()

QColor GLViewer_ViewFrame::backgroundColor ( ) const

Returns background of the viewport. [ public ]

References GLViewer_ViewPort::backgroundColor(), and myVP.

◆ createActions()

◆ createToolBar()

◆ dumpView()

QImage GLViewer_ViewFrame::dumpView ( )
virtual

SLOT: called on dump view operation is activated, stores scene to raster file

Reimplemented from SUIT_ViewWindow.

References myVP.

◆ getViewer()

GLViewer_Viewer * GLViewer_ViewFrame::getViewer ( ) const

Returns the viewer of this view. [ public ]

References myViewer.

◆ getViewPort()

GLViewer_ViewPort * GLViewer_ViewFrame::getViewPort ( ) const

Returns the viewport of this frame. [ public ]

References myVP.

◆ getViewWidget()

QWidget* GLViewer_ViewFrame::getViewWidget ( )
inline

◆ getVisualParameters()

QString GLViewer_ViewFrame::getVisualParameters ( )
virtual
Returns
the visual parameters of this view as a formated string

Reimplemented from SUIT_ViewWindow.

References GLViewer_ViewPort2d::getPan(), GLViewer_ViewPort2d::getScale(), and myVP.

◆ keyEvent

void GLViewer_ViewFrame::keyEvent ( QKeyEvent *  e)
privateslot

Dispatches key events

References SUIT_ViewWindow::keyPressed(), and SUIT_ViewWindow::keyReleased().

◆ mouseEvent

void GLViewer_ViewFrame::mouseEvent ( QMouseEvent *  e)
privateslot

◆ onUpdate()

void GLViewer_ViewFrame::onUpdate ( int  )
virtual

Called by viewer's 'update()' method. Does nothing by default [ virtual public ]

◆ onViewBack()

void GLViewer_ViewFrame::onViewBack ( )
inlineprotected

◆ onViewBottom()

void GLViewer_ViewFrame::onViewBottom ( )
inlineprotected

◆ onViewFitAll

void GLViewer_ViewFrame::onViewFitAll ( )
protectedslot

◆ onViewFitArea

void GLViewer_ViewFrame::onViewFitArea ( )
protectedslot

◆ onViewFitSelect

void GLViewer_ViewFrame::onViewFitSelect ( )
protectedslot

◆ onViewFront

void GLViewer_ViewFrame::onViewFront ( )
inlineprotectedslot

◆ onViewGlobalPan

void GLViewer_ViewFrame::onViewGlobalPan ( )
protectedslot

◆ onViewLeft()

void GLViewer_ViewFrame::onViewLeft ( )
inlineprotected

◆ onViewPan

void GLViewer_ViewFrame::onViewPan ( )
protectedslot

◆ onViewReset

void GLViewer_ViewFrame::onViewReset ( )
protectedslot

Start reset default view aspects

References GLViewer_Viewer::activateTransform(), myViewer, and GLViewer_Viewer::Reset.

◆ onViewRight()

void GLViewer_ViewFrame::onViewRight ( )
inlineprotected

◆ onViewRotate

void GLViewer_ViewFrame::onViewRotate ( )
protectedslot

Start rotating

◆ onViewTop()

void GLViewer_ViewFrame::onViewTop ( )
inlineprotected

◆ onViewTrihedron()

void GLViewer_ViewFrame::onViewTrihedron ( )
inlineprotected

◆ onViewZoom

void GLViewer_ViewFrame::onViewZoom ( )
protectedslot

◆ setBackgroundColor()

void GLViewer_ViewFrame::setBackgroundColor ( const QColor &  color)

Set background of the viewport. [ public ]

References OCCViewer::color(), myVP, and GLViewer_ViewPort::setBackgroundColor().

◆ setViewer()

void GLViewer_ViewFrame::setViewer ( GLViewer_Viewer v)

Sets the viewer for this view. [ public ]

References myViewer.

◆ setViewPort()

void GLViewer_ViewFrame::setViewPort ( GLViewer_ViewPort vp)

◆ setVisualParameters()

void GLViewer_ViewFrame::setVisualParameters ( const QString &  parameters)
virtual

The method restores visual parameters of this view from a formated string

Reimplemented from SUIT_ViewWindow.

References GLViewer_ViewPort2d::getGLWidget(), myVP, GLViewer_Widget::setPan(), and GLViewer_Widget::setScale().

◆ sizeHint()

QSize GLViewer_ViewFrame::sizeHint ( ) const

Returns the preferred view size. [ virtual public ]

◆ vfDrawExternal

void GLViewer_ViewFrame::vfDrawExternal ( QPainter *  )
signal

◆ vfViewClosing

void GLViewer_ViewFrame::vfViewClosing ( QCloseEvent *  )
signal

◆ wheelEvent

void GLViewer_ViewFrame::wheelEvent ( QWheelEvent *  e)
privateslot

Dispatches wheel events

References SUIT_ViewWindow::wheeling().

Member Data Documentation

◆ myViewer

GLViewer_Viewer* GLViewer_ViewFrame::myViewer
protected

◆ myVP

GLViewer_ViewPort* GLViewer_ViewFrame::myVP
protected

The documentation for this class was generated from the following files: