#include <SUIT_ViewWindow.h>

Public Slots | |
| virtual void | onDumpView () |
Signals | |
| 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) |
Public Member Functions | |
| SUIT_ViewWindow (SUIT_Desktop *) | |
| virtual | ~SUIT_ViewWindow () |
| virtual void | setViewManager (SUIT_ViewManager *) |
| SUIT_ViewManager * | getViewManager () const |
| bool | event (QEvent *) |
| virtual QImage | dumpView () |
| bool | dumpViewToFormat (const QString &fileName, const QString &format) |
| bool | onAccelAction (int) |
| bool | closable () const |
| bool | setClosable (const bool) |
| virtual QString | getVisualParameters () |
| virtual void | setVisualParameters (const QString ¶meters) |
| void | setDestructiveClose (const bool) |
| int | getId () const |
| QtxActionToolMgr * | toolMgr () const |
| virtual void | setDropDownButtons (bool) |
Set buttons mode to drop-down (on = true) or ligned (on = false) | |
| bool | dropDownButtons () const |
| Get current buttons mode. | |
Protected Member Functions | |
| 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) |
Protected Attributes | |
| SUIT_Desktop * | myDesktop |
| SUIT_ViewManager * | myManager |
Private Types | |
| typedef QMap< int, QList < QtxMultiAction * > > | ActionsMap |
Private Attributes | |
| QtxActionToolMgr * | myToolMgr |
| bool | myIsDropDown |
| ActionsMap | myMultiActions |
Class provide view window.
typedef QMap< int, QList<QtxMultiAction*> > SUIT_ViewWindow.ActionsMap [private] |
Reimplemented in QxGraph_ViewWindow, SUPERVGraph_ViewFrame, and VTKViewer_ViewWindow.
| SUIT_ViewWindow::SUIT_ViewWindow | ( | SUIT_Desktop * | theDesktop | ) |
| SUIT_ViewWindow::~SUIT_ViewWindow | ( | ) | [virtual] |
Destructor.
| void SUIT_ViewWindow::setViewManager | ( | SUIT_ViewManager * | theManager | ) | [virtual] |
Sets new view manager for window
| theManager | - new view manager |
Reimplemented in OCCViewer_ViewFrame.
References myManager.
| SUIT_ViewManager * SUIT_ViewWindow::getViewManager | ( | ) | const |
References myManager.
| bool SUIT_ViewWindow::event | ( | QEvent * | e | ) |
Reaction view window on event e.
References SUIT_Study.application(), SUIT_MessageBox.critical(), DUMP_EVENT, dumpView(), dumpViewToFormat(), Qtx.extension(), filter(), SUIT_Application.getFileName(), myManager, and SUIT_ViewManager.study().
| QImage SUIT_ViewWindow::dumpView | ( | ) | [virtual] |
Reimplemented in GLViewer_ViewFrame, OCCViewer_ViewFrame, OCCViewer_ViewWindow, Plot2d_ViewWindow, SVTK_ViewWindow, and VTKViewer_ViewWindow.
| bool SUIT_ViewWindow::dumpViewToFormat | ( | const QString & | fileName, |
| const QString & | format | ||
| ) |
Saves scene rendering in window to file
| fileName | - name of file |
| format | - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG") |
References dumpView().
| bool SUIT_ViewWindow::onAccelAction | ( | int | _action | ) |
Called by SUIT_Accel.onActivated() when a key accelerator was activated and this window was active
References action().
| bool SUIT_ViewWindow::closable | ( | ) | const |
Returns true if view window can be closed by the user
| bool SUIT_ViewWindow::setClosable | ( | const bool | on | ) |
Set / reset "closable" option of the view window
References closable().
| QString SUIT_ViewWindow::getVisualParameters | ( | ) | [virtual] |
Reimplemented in GLViewer_ViewFrame, OCCViewer_ViewFrame, OCCViewer_ViewWindow, Plot2d_ViewWindow, SVTK_ViewWindow, and VTKViewer_ViewWindow.
| void SUIT_ViewWindow::setVisualParameters | ( | const QString & | parameters | ) | [virtual] |
Sets visual parameters of window by its string representation
| parameters | - string with visual parameters |
Reimplemented in GLViewer_ViewFrame, OCCViewer_ViewFrame, OCCViewer_ViewWindow, Plot2d_ViewWindow, SVTK_ViewWindow, and VTKViewer_ViewWindow.
| void SUIT_ViewWindow::setDestructiveClose | ( | const bool | on | ) |
Set or clear flag Qt.WDestructiveClose
| int SUIT_ViewWindow::getId | ( | ) | const |
| QtxActionToolMgr * SUIT_ViewWindow::toolMgr | ( | ) | const |
References myToolMgr.
| void SUIT_ViewWindow::setDropDownButtons | ( | bool | on | ) | [virtual] |
| on | new buttons mode |
Reimplemented in OCCViewer_ViewFrame.
References test_table.a, QtxActionMgr.action(), QtxActionSet.actions(), QtxActionMgr.idList(), QtxActionToolMgr.index(), QtxActionToolMgr.insert(), myIsDropDown, myMultiActions, QtxActionToolMgr.remove(), QtxActionToolMgr.toolBarsIds(), and toolMgr().
| bool SUIT_ViewWindow::dropDownButtons | ( | ) | const |
| void SUIT_ViewWindow::onDumpView | ( | ) | [virtual, slot] |
Post events on dump view.
Reimplemented in OCCViewer_ViewFrame, and Plot2d_ViewWindow.
References DUMP_EVENT.
| void SUIT_ViewWindow.tryClosing | ( | SUIT_ViewWindow * | ) | [signal] |
| void SUIT_ViewWindow.closing | ( | SUIT_ViewWindow * | ) | [signal] |
| void SUIT_ViewWindow.mousePressed | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal] |
| void SUIT_ViewWindow.mouseReleased | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal] |
| void SUIT_ViewWindow.mouseDoubleClicked | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal] |
| void SUIT_ViewWindow.mouseMoving | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal] |
| void SUIT_ViewWindow.wheeling | ( | SUIT_ViewWindow * | , |
| QWheelEvent * | |||
| ) | [signal] |
| void SUIT_ViewWindow.keyPressed | ( | SUIT_ViewWindow * | , |
| QKeyEvent * | |||
| ) | [signal] |
| void SUIT_ViewWindow.keyReleased | ( | SUIT_ViewWindow * | , |
| QKeyEvent * | |||
| ) | [signal] |
| void SUIT_ViewWindow.contextMenuRequested | ( | QContextMenuEvent * | e | ) | [signal] |
| void SUIT_ViewWindow::closeEvent | ( | QCloseEvent * | e | ) | [protected] |
Close event theEvent.
References closable(), closing(), and tryClosing().
| void SUIT_ViewWindow::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [protected, virtual] |
Context menu requested for event e.
References contextMenuRequested().
| QString SUIT_ViewWindow::filter | ( | ) | const [protected, virtual] |
Reimplemented in OCCViewer_ViewWindow, Plot2d_ViewWindow, and SVTK_ViewWindow.
| bool SUIT_ViewWindow::action | ( | const int | ) | [protected, virtual] |
action handle standard action (zoom, pan) or custom action. to be redefined in successors.
Reimplemented in SOCC_ViewWindow, SPlot2d_ViewWindow, and SVTK_ViewWindow.
| bool SUIT_ViewWindow::dumpViewToFormat | ( | const QImage & | img, |
| const QString & | fileName, | ||
| const QString & | format | ||
| ) | [protected, virtual] |
Saves image to file according to the format
| image | - image |
| fileName | - name of file |
| format | - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG") |
Reimplemented in OCCViewer_ViewFrame, OCCViewer_ViewWindow, Plot2d_ViewWindow, and SVTK_ViewWindow.
SUIT_Desktop* SUIT_ViewWindow.myDesktop [protected] |
SUIT_ViewManager* SUIT_ViewWindow.myManager [protected] |
QtxActionToolMgr* SUIT_ViewWindow.myToolMgr [private] |
bool SUIT_ViewWindow.myIsDropDown [private] |
ActionsMap SUIT_ViewWindow.myMultiActions [private] |