Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VTKViewer_Viewer Class Reference

#include <VTKViewer_ViewModel.h>

Inheritance diagram for VTKViewer_Viewer:
Inheritance graph

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_ViewWindowcreateView (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_ViewManagergetViewManager () 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_ViewManagermyViewManager
 

Member Enumeration Documentation

anonymous enum

supported gradient types

Enumerator
HorizontalGradient 
VerticalGradient 
FirstDiagonalGradient 
SecondDiagonalGradient 
FirstCornerGradient 
SecondCornerGradient 
ThirdCornerGradient 
FourthCornerGradient 
LastGradient 

Constructor & Destructor Documentation

VTKViewer_Viewer::VTKViewer_Viewer ( )

Constructor.Sets background color to black.

VTKViewer_Viewer::~VTKViewer_Viewer ( )
virtual

Destructor.

Member Function Documentation

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().

QString VTKViewer_Viewer::backgroundData ( QStringList &  gradList,
QIntList idList,
QIntList txtList 
)
static
void VTKViewer_Viewer::contextMenuPopup ( QMenu thePopup)
virtual
SUIT_ViewWindow * VTKViewer_Viewer::createView ( SUIT_Desktop theDesktop)
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
virtual QString VTKViewer_Viewer::getType ( ) const
inlinevirtual

Gets type of viewer.

Reimplemented from SUIT_ViewModel.

bool VTKViewer_Viewer::isMultiSelectionEnabled ( ) const
inline

Checks: is multi selection enabled

bool VTKViewer_Viewer::isSelectionEnabled ( ) const
inline

Checks: is selection enabled

void VTKViewer_Viewer::onDumpView ( )
protectedslot
void VTKViewer_Viewer::onMouseMove ( SUIT_ViewWindow vw,
QMouseEvent *  event 
)
protectedslot

On mouse move event.

References VTKViewer_RenderWindowInteractor::MouseMove().

void VTKViewer_Viewer::onMousePress ( SUIT_ViewWindow vw,
QMouseEvent *  event 
)
protectedslot
void VTKViewer_Viewer::onMouseRelease ( SUIT_ViewWindow vw,
QMouseEvent *  event 
)
protectedslot
void VTKViewer_Viewer::onShowToolbar ( )
protectedslot
void VTKViewer_Viewer::selectionChanged ( )
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().

void VTKViewer_Viewer::setViewManager ( SUIT_ViewManager theViewManager)
virtual

Sets view manager and connect slots.

Reimplemented from SUIT_ViewModel.

References onMouseMove(), onMousePress(), onMouseRelease(), and SUIT_ViewModel::setViewManager().

static QString VTKViewer_Viewer::Type ( )
inlinestatic

Initialize type of viewer.

Member Data Documentation

Qtx::BackgroundData VTKViewer_Viewer::myDefaultBackground
private
bool VTKViewer_Viewer::myMultiSelectionEnabled
private
bool VTKViewer_Viewer::mySelectionEnabled
private

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