#include <VTKViewer_ViewModel.h>

Public Types | |
| enum | {  HorizontalGradient, VerticalGradient, FirstDiagonalGradient, SecondDiagonalGradient, FirstCornerGradient, SecondCornerGradient, ThirdCornerGradient, FourthCornerGradient, LastGradient = FourthCornerGradient }  | 
  Public Types inherited from SUIT_ViewModel | |
| enum | HotOperation { PAN, ZOOM, ROTATE, FIT_AREA } | 
| enum | InteractionStyle { STANDARD, KEY_FREE } | 
| typedef QMap< HotOperation,  Qt::KeyboardModifiers >  | StatesMap | 
| typedef QMap< HotOperation,  Qt::MouseButtons >  | ButtonsMap | 
| typedef QMap< InteractionStyle,  StatesMap >  | InteractionStyle2StatesMap | 
| typedef QMap< InteractionStyle,  ButtonsMap >  | InteractionStyle2ButtonsMap | 
Signals | |
| void | selectionChanged () | 
Public Member Functions | |
| VTKViewer_Viewer () | |
| virtual | ~VTKViewer_Viewer () | 
| virtual SUIT_ViewWindow * | createView (SUIT_Desktop *theDesktop) | 
| virtual void | setViewManager (SUIT_ViewManager *theViewManager) | 
| virtual void | contextMenuPopup (QMenu *) | 
| virtual QString | getType () const | 
| void | enableSelection (bool isEnabled) | 
| bool | isSelectionEnabled () const | 
| void | enableMultiselection (bool isEnable) | 
| bool | isMultiSelectionEnabled () const | 
| int | getSelectionCount () const | 
| QColor | backgroundColor () const | 
| void | setBackgroundColor (const QColor &) | 
| Qtx::BackgroundData | background () const | 
| void | setBackground (const Qtx::BackgroundData &) | 
  Public Member Functions inherited from SUIT_ViewModel | |
| SUIT_ViewModel () | |
| virtual | ~SUIT_ViewModel () | 
| SUIT_ViewManager * | getViewManager () const | 
Static Public Member Functions | |
| static QString | Type () | 
| static QString | backgroundData (QStringList &, QIntList &, QIntList &) | 
  Static Public Member Functions inherited from SUIT_ViewModel | |
| static void | setHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers theState, Qt::MouseButtons theButton) | 
| static void | getHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers &theState, Qt::MouseButtons &theButton) | 
Protected Slots | |
| void | onMousePress (SUIT_ViewWindow *, QMouseEvent *) | 
| void | onMouseMove (SUIT_ViewWindow *, QMouseEvent *) | 
| void | onMouseRelease (SUIT_ViewWindow *, QMouseEvent *) | 
| void | onDumpView () | 
| void | onShowToolbar () | 
| void | onChangeBackground () | 
Private Attributes | |
| Qtx::BackgroundData | myDefaultBackground | 
| bool | mySelectionEnabled | 
| bool | myMultiSelectionEnabled | 
Additional Inherited Members | |
  Static Public Attributes inherited from SUIT_ViewModel | |
| static InteractionStyle2StatesMap | myStateMap | 
| static InteractionStyle2ButtonsMap | myButtonMap | 
  Protected Attributes inherited from SUIT_ViewModel | |
| SUIT_ViewManager * | myViewManager | 
| anonymous enum | 
| VTKViewer_Viewer::VTKViewer_Viewer | ( | ) | 
Constructor.Sets background color to black.
      
  | 
  virtual | 
Destructor.
| Qtx::BackgroundData VTKViewer_Viewer::background | ( | ) | const | 
Gets default background data.
References myDefaultBackground.
| QColor VTKViewer_Viewer::backgroundColor | ( | ) | const | 
Gets background color [obsolete]
References background(), and Qtx::BackgroundData::color().
      
  | 
  static | 
Get data for supported background modes: gradient types, identifiers and supported image formats
References Qtx::CenterTexture, FirstCornerGradient, FirstDiagonalGradient, FourthCornerGradient, HorizontalGradient, SecondCornerGradient, SecondDiagonalGradient, Qtx::StretchTexture, ThirdCornerGradient, Qtx::TileTexture, and VerticalGradient.
      
  | 
  virtual | 
Insert context into popup menu.
Reimplemented from SUIT_ViewModel.
References SUIT_ViewManager::getActiveView(), VTKViewer_ViewWindow::getToolBar(), SUIT_ViewModel::myViewManager, onChangeBackground(), onDumpView(), and onShowToolbar().
      
  | 
  virtual | 
Create new instance of VTKViewer_ViewWindow, sets background color and return pointer to it.
Reimplemented from SUIT_ViewModel.
References myDefaultBackground, and VTKViewer_ViewWindow::setBackground().
| void VTKViewer_Viewer::enableMultiselection | ( | bool | isEnable | ) | 
Sets flag to multi selection enable isEnable.
! To be done for view windows
References myMultiSelectionEnabled.
| void VTKViewer_Viewer::enableSelection | ( | bool | isEnabled | ) | 
Sets flag to enable selection isEnable.
! To be done for view windows
References mySelectionEnabled.
| int VTKViewer_Viewer::getSelectionCount | ( | ) | const | 
      
  | 
  inlinevirtual | 
Gets type of viewer.
Reimplemented from SUIT_ViewModel.
      
  | 
  inline | 
Checks: is multi selection enabled
      
  | 
  inline | 
Checks: is selection enabled
      
  | 
  protectedslot | 
On change back ground color event.
References VTKViewer_ViewWindow::background(), backgroundData(), SUIT_ViewManager::getActiveView(), QtxBackgroundDialog::getBackground(), Qtx::BackgroundData::isValid(), SUIT_ViewModel::myViewManager, and VTKViewer_ViewWindow::setBackground().
      
  | 
  protectedslot | 
On dump view event.
References SUIT_ViewManager::getActiveView(), SUIT_ViewModel::myViewManager, and SUIT_ViewWindow::onDumpView().
      
  | 
  protectedslot | 
On mouse move event.
References VTKViewer_RenderWindowInteractor::MouseMove().
      
  | 
  protectedslot | 
On mouse press event.
References VTKViewer_RenderWindowInteractor::LeftButtonPressed(), VTKViewer_RenderWindowInteractor::MiddleButtonPressed(), and VTKViewer_RenderWindowInteractor::RightButtonPressed().
      
  | 
  protectedslot | 
On mouse release event.
References VTKViewer_RenderWindowInteractor::LeftButtonReleased(), VTKViewer_RenderWindowInteractor::MiddleButtonReleased(), and VTKViewer_RenderWindowInteractor::RightButtonReleased().
      
  | 
  protectedslot | 
On show tool bar event.
References SUIT_ViewManager::getActiveView(), VTKViewer_ViewWindow::getToolBar(), and SUIT_ViewModel::myViewManager.
      
  | 
  signal | 
| void VTKViewer_Viewer::setBackground | ( | const Qtx::BackgroundData & | theBackground | ) | 
Sets default background data.
References Qtx::BackgroundData::isValid(), and myDefaultBackground.
| void VTKViewer_Viewer::setBackgroundColor | ( | const QColor & | c | ) | 
Sets background color [obsolete]
References background(), setBackground(), and Qtx::BackgroundData::setColor().
      
  | 
  virtual | 
Sets view manager and connect slots.
Reimplemented from SUIT_ViewModel.
References onMouseMove(), onMousePress(), onMouseRelease(), and SUIT_ViewModel::setViewManager().
      
  | 
  inlinestatic | 
Initialize type of viewer.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |