#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) | 
| void | viewModified (SUIT_ViewWindow *) | 
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)  More... | |
| bool | dropDownButtons () const | 
| Get current buttons mode.  More... | |
| virtual SUIT_CameraProperties | cameraProperties () | 
Protected Slots | |
| void | updateSyncViews () | 
| void | onSynchronizeView (bool) | 
| virtual void | synchronize (SUIT_ViewWindow *) | 
| void | emitViewModified () | 
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) | 
| virtual QAction * | synchronizeAction () | 
Static Protected Member Functions | |
| static void | synchronizeView (SUIT_ViewWindow *viewWindow, int id) | 
Protected Attributes | |
| SUIT_Desktop * | myDesktop | 
| SUIT_ViewManager * | myManager | 
Private Types | |
| typedef QMap< int, QList < QtxMultiAction * > >  | ActionsMap | 
Private Attributes | |
| QtxActionToolMgr * | myToolMgr | 
| bool | myIsDropDown | 
| ActionsMap | myMultiActions | 
| QAction * | mySyncAction | 
Class provide view window.
      
  | 
  private | 
| SUIT_ViewWindow::SUIT_ViewWindow | ( | SUIT_Desktop * | theDesktop | ) | 
      
  | 
  virtual | 
Destructor.
      
  | 
  protectedvirtual | 
action handle standard action (zoom, pan) or custom action. to be redefined in successors.
Reimplemented in SVTK_ViewWindow, SOCC_ViewWindow, and SPlot2d_ViewWindow.
      
  | 
  virtual | 
Get camera properties for the view window.
Reimplemented in SVTK_ViewWindow, OCCViewer_ViewWindow, and OCCViewer_ViewFrame.
| bool SUIT_ViewWindow::closable | ( | ) | const | 
Returns true if view window can be closed by the user 
      
  | 
  protected | 
Close event theEvent.
References closable(), closing(), and tryClosing().
      
  | 
  signal | 
      
  | 
  protectedvirtual | 
Context menu requested for event e.
References contextMenuRequested().
      
  | 
  signal | 
| bool SUIT_ViewWindow::dropDownButtons | ( | ) | const | 
      
  | 
  virtual | 
Reimplemented in OCCViewer_ViewWindow, OCCViewer_ViewFrame, Plot2d_ViewWindow, VTKViewer_ViewWindow, SVTK_ViewWindow, GLViewer_ViewFrame, and GraphicsView_ViewFrame.
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().
      
  | 
  protectedvirtual | 
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 SVTK_ViewWindow, OCCViewer_ViewWindow, OCCViewer_ViewFrame, and Plot2d_ViewWindow.
      
  | 
  protectedslot | 
Emit notification signal that the view is transformed. Other views can use the signal for synchronization.
References viewModified().
| bool SUIT_ViewWindow::event | ( | QEvent * | e | ) | 
Reaction view window on event e.
References app, SUIT_Study::application(), SUIT_MessageBox::critical(), DUMP_EVENT, dumpView(), dumpViewToFormat(), Qtx::extension(), filter(), SUIT_Application::getFileName(), myManager, and SUIT_ViewManager::study().
      
  | 
  protectedvirtual | 
Reimplemented in SVTK_ViewWindow, OCCViewer_ViewWindow, and Plot2d_ViewWindow.
| int SUIT_ViewWindow::getId | ( | ) | const | 
| SUIT_ViewManager * SUIT_ViewWindow::getViewManager | ( | ) | const | 
References myManager.
      
  | 
  virtual | 
Reimplemented in SVTK_ViewWindow, OCCViewer_ViewWindow, Plot2d_ViewWindow, VTKViewer_ViewWindow, GLViewer_ViewFrame, OCCViewer_ViewFrame, GraphicsView_ViewFrame, and PVViewer_ViewWindow.
      
  | 
  signal | 
      
  | 
  signal | 
      
  | 
  signal | 
      
  | 
  signal | 
      
  | 
  signal | 
      
  | 
  signal | 
| bool SUIT_ViewWindow::onAccelAction | ( | int | _action | ) | 
Called by SUIT_Accel::onActivated() when a key accelerator was activated and this window was active
References action().
      
  | 
  virtualslot | 
Post events on dump view.
References DUMP_EVENT.
      
  | 
  protectedslot | 
"Synchronize View" action slot.
References synchronizeView().
| bool SUIT_ViewWindow::setClosable | ( | const bool | on | ) | 
Set / reset "closable" option of the view window
References closable().
| void SUIT_ViewWindow::setDestructiveClose | ( | const bool | on | ) | 
Set or clear flag Qt::WDestructiveClose
      
  | 
  virtual | 
| on | new buttons mode | 
Reimplemented in OCCViewer_ViewFrame.
References QtxActionMgr::action(), QtxActionSet::actions(), QtxActionMgr::idList(), QtxActionToolMgr::index(), QtxActionToolMgr::insert(), myIsDropDown, myMultiActions, QtxActionToolMgr::remove(), QtxActionToolMgr::toolBarsIds(), and toolMgr().
      
  | 
  virtual | 
Sets new view manager for window
| theManager | - new view manager | 
Reimplemented in OCCViewer_ViewFrame.
References myManager.
      
  | 
  virtual | 
Sets visual parameters of window by its string representation
| parameters | - string with visual parameters | 
Reimplemented in SVTK_ViewWindow, OCCViewer_ViewWindow, Plot2d_ViewWindow, VTKViewer_ViewWindow, GLViewer_ViewFrame, OCCViewer_ViewFrame, GraphicsView_ViewFrame, and PVViewer_ViewWindow.
      
  | 
  protectedvirtualslot | 
Synchronize this view window's camera properties with specified view window.
This method is a part of general views synchronization mechanism. It should be redefined in successors. Base imlementation does nothing.
| otherWindow | other view window | 
      
  | 
  protectedvirtual | 
Get action for views syncronization.
This method is a part of general views synchronization mechanism. It creates an action that can be inserted, for instance, to the toolbar.
References QtxResourceMgr::loadPixmap(), mySyncAction, onSynchronizeView(), SUIT_Session::resourceMgr(), SUIT_Session::session(), and updateSyncViews().
      
  | 
  staticprotected | 
Synchronize camera properties of view viewWindow with camera properties of view specified via id
References SUIT_Session::activeApplication(), app, cameraProperties(), SUIT_Application::desktop(), getId(), SUIT_CameraProperties::isValid(), SUIT_Session::session(), synchronize(), synchronizeAction(), and viewModified().
| QtxActionToolMgr * SUIT_ViewWindow::toolMgr | ( | ) | const | 
References myToolMgr.
      
  | 
  signal | 
      
  | 
  protectedslot | 
Update list of available view for the "Synchronize View" action
References SUIT_Session::activeApplication(), app, cameraProperties(), SUIT_Application::desktop(), getId(), SUIT_CameraProperties::isCompatible(), SUIT_CameraProperties::isValid(), onSynchronizeView(), SUIT_Session::session(), synchronize(), synchronizeAction(), and viewModified().
      
  | 
  signal | 
      
  | 
  signal | 
      
  | 
  protected | 
      
  | 
  private | 
      
  | 
  protected | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |