Back to index

salome-paravis  6.5.0
Public Member Functions | Private Attributes
PVGUI_ViewWindow Class Reference

PVGUI view window. More...

#include <PVGUI_ViewWindow.h>

Collaboration diagram for PVGUI_ViewWindow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PVGUI_ViewWindow (SUIT_Desktop *, PVGUI_Viewer *)
 Constructor.
virtual ~PVGUI_ViewWindow ()
 Destructor.
virtual QString getVisualParameters ()
 Get the visual parameters of the view window.
virtual void setVisualParameters (const QString &)
 Restore visual parameters of the view window from the formated string.
pqTabbedMultiViewWidget * getMultiViewManager () const
 Returns the ParaView multi-view manager previously set with setMultiViewManager()

Private Attributes

PVGUI_ViewermyModel
pqTabbedMultiViewWidget * myPVMgr

Detailed Description

PVGUI view window.

Definition at line 33 of file PVGUI_ViewWindow.h.


Constructor & Destructor Documentation

PVGUI_ViewWindow::PVGUI_ViewWindow ( SUIT_Desktop *  theDesktop,
PVGUI_Viewer theModel 
)

Constructor.

Parameters:
theDesktopparent desktop window
theModelplt2d view model

Definition at line 43 of file PVGUI_ViewWindow.cxx.

  : SUIT_ViewWindow( theDesktop ), myPVMgr( 0 )
{
  myModel = theModel;
  myPVMgr = qobject_cast<pqTabbedMultiViewWidget*>(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET"));
  if (myPVMgr) {
    myPVMgr->setParent( this );
    // This is mandatory, see setParent() method in Qt 4 documentation
    myPVMgr->show();
    setCentralWidget( myPVMgr );
  } else
    qDebug("No multiViewManager defined");
}

Destructor.

As pqViewManager persists through the whole session, the destructor first removes it from the children of this PVGUI_ViewWindow to prevent its unexpected deletion.

Definition at line 63 of file PVGUI_ViewWindow.cxx.

{
  if ( myPVMgr ) {
    myPVMgr->setParent( 0 );
    myPVMgr->hide();
    myPVMgr = 0;
    setCentralWidget( 0 );
  }
}

Member Function Documentation

pqTabbedMultiViewWidget * PVGUI_ViewWindow::getMultiViewManager ( ) const

Returns the ParaView multi-view manager previously set with setMultiViewManager()

Definition at line 95 of file PVGUI_ViewWindow.cxx.

{
  return myPVMgr;
}

Get the visual parameters of the view window.

Returns:
visual parameters of this view window formatted to the string

Definition at line 77 of file PVGUI_ViewWindow.cxx.

void PVGUI_ViewWindow::setVisualParameters ( const QString &  parameters) [virtual]

Restore visual parameters of the view window from the formated string.

Parameters:
parametersview window visual parameters

Definition at line 86 of file PVGUI_ViewWindow.cxx.


Member Data Documentation

Definition at line 47 of file PVGUI_ViewWindow.h.

pqTabbedMultiViewWidget* PVGUI_ViewWindow::myPVMgr [private]

Definition at line 48 of file PVGUI_ViewWindow.h.


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