#include <GLViewer_ViewFrame.h>
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 *) |
Protected Slots | |
void | onViewPan () |
void | onViewZoom () |
void | onViewFitAll () |
void | onViewFitArea () |
void | onViewFitSelect () |
void | onViewGlobalPan () |
void | onViewRotate () |
void | onViewReset () |
void | onViewFront () |
void | onViewBack () |
void | onViewRight () |
void | onViewLeft () |
void | onViewBottom () |
void | onViewTop () |
void | onViewTrihedron () |
Protected Slots inherited from SUIT_ViewWindow | |
void | updateSyncViews () |
void | onSynchronizeView (bool) |
virtual void | synchronize (SUIT_ViewWindow *) |
void | emitViewModified () |
Protected Attributes | |
GLViewer_Viewer * | myViewer |
GLViewer_ViewPort * | myVP |
Protected Attributes inherited from SUIT_ViewWindow | |
SUIT_Desktop * | myDesktop |
SUIT_ViewManager * | myManager |
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 () |
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 QAction * | synchronizeAction () |
Static Protected Member Functions inherited from SUIT_ViewWindow | |
static void | synchronizeView (SUIT_ViewWindow *viewWindow, int id) |
Frame window for viewport in QAD-based application
GLViewer_ViewFrame::GLViewer_ViewFrame | ( | SUIT_Desktop * | d, |
GLViewer_Viewer * | vw | ||
) |
Constructor
References createActions(), createToolBar(), setBackgroundColor(), and setViewPort().
GLViewer_ViewFrame::~GLViewer_ViewFrame | ( | ) |
Destructor
QColor GLViewer_ViewFrame::backgroundColor | ( | ) | const |
Returns background of the viewport. [ public ]
References GLViewer_ViewPort::backgroundColor(), and myVP.
|
private |
Creates actions of GL view frame
References DumpId, FitAllId, FitRectId, FitSelectId, GlobalPanId, QtxResourceMgr::loadPixmap(), SUIT_ViewWindow::onDumpView(), onViewFitAll(), onViewFitArea(), onViewFitSelect(), onViewGlobalPan(), onViewPan(), onViewReset(), onViewZoom(), PanId, QtxActionMgr::registerAction(), ResetId, SUIT_Session::resourceMgr(), SUIT_Session::session(), SUIT_ViewWindow::toolMgr(), and ZoomId.
|
private |
Creates toolbar of GL view frame
References SUIT_ViewWindow::action(), QtxActionToolMgr::append(), QtxActionToolMgr::createToolBar(), DumpId, FitAllId, FitRectId, FitSelectId, GlobalPanId, QtxActionSet::insertAction(), PanId, ResetId, SUIT_ViewWindow::toolMgr(), and ZoomId.
|
virtual |
SLOT: called on dump view operation is activated, stores scene to raster file
Reimplemented from SUIT_ViewWindow.
References myVP.
GLViewer_Viewer * GLViewer_ViewFrame::getViewer | ( | ) | const |
Returns the viewer of this view. [ public ]
References myViewer.
GLViewer_ViewPort * GLViewer_ViewFrame::getViewPort | ( | ) | const |
Returns the viewport of this frame. [ public ]
References myVP.
|
inline |
|
virtual |
Reimplemented from SUIT_ViewWindow.
References GLViewer_ViewPort2d::getPan(), GLViewer_ViewPort2d::getScale(), and myVP.
|
privateslot |
Dispatches key events
References SUIT_ViewWindow::keyPressed(), and SUIT_ViewWindow::keyReleased().
|
privateslot |
Dispatches mouse events
References SUIT_ViewWindow::mouseDoubleClicked(), SUIT_ViewWindow::mouseMoving(), SUIT_ViewWindow::mousePressed(), and SUIT_ViewWindow::mouseReleased().
|
virtual |
Called by viewer's 'update()' method. Does nothing by default [ virtual public ]
|
inlineprotectedslot |
|
inlineprotectedslot |
|
protectedslot |
Start fit all
References GLViewer_Viewer::activateTransform(), GLViewer_Viewer::FitAll, and myViewer.
|
protectedslot |
Start fit area
References GLViewer_Viewer::activateTransform(), GLViewer_Viewer::FitRect, and myViewer.
|
protectedslot |
Start fit selected
References GLViewer_Viewer::activateTransform(), GLViewer_Viewer::FitSelect, and myViewer.
|
inlineprotectedslot |
|
protectedslot |
Start global panning
References GLViewer_Viewer::activateTransform(), myViewer, and GLViewer_Viewer::PanGlobal.
|
inlineprotectedslot |
|
protectedslot |
Start panning
References GLViewer_Viewer::activateTransform(), myViewer, and GLViewer_Viewer::Pan.
|
protectedslot |
Start reset default view aspects
References GLViewer_Viewer::activateTransform(), myViewer, and GLViewer_Viewer::Reset.
|
inlineprotectedslot |
|
protectedslot |
Start rotating
|
inlineprotectedslot |
|
inlineprotectedslot |
|
protectedslot |
Start zooming
References GLViewer_Viewer::activateTransform(), myViewer, and GLViewer_Viewer::Zoom.
void GLViewer_ViewFrame::setBackgroundColor | ( | const QColor & | color | ) |
Set background of the viewport. [ public ]
References myVP, and GLViewer_ViewPort::setBackgroundColor().
void GLViewer_ViewFrame::setViewer | ( | GLViewer_Viewer * | v | ) |
Sets the viewer for this view. [ public ]
References myViewer.
void GLViewer_ViewFrame::setViewPort | ( | GLViewer_ViewPort * | vp | ) |
Sets the viewport for this frame
References SUIT_ViewWindow::contextMenuRequested(), keyEvent(), mouseEvent(), myVP, vfDrawExternal(), and wheelEvent().
|
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().
QSize GLViewer_ViewFrame::sizeHint | ( | ) | const |
Returns the preferred view size. [ virtual public ]
|
signal |
|
signal |
|
privateslot |
Dispatches wheel events
References SUIT_ViewWindow::wheeling().
|
protected |
|
protected |