Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Public Attributes
TCloneView Class Reference
Inheritance diagram for TCloneView:
Inheritance graph
[legend]
Collaboration diagram for TCloneView:
Collaboration graph
[legend]

List of all members.

Public Types

typedef int TResult

Public Member Functions

 TCloneView (const int id)
virtual void Execute ()

Public Attributes

TResult myResult
int myWndId

Detailed Description

Definition at line 2603 of file SalomePyQt.cxx.


Member Typedef Documentation

typedef int TCloneView::TResult

Definition at line 2606 of file SalomePyQt.cxx.


Constructor & Destructor Documentation

TCloneView::TCloneView ( const int  id) [inline]

Definition at line 2609 of file SalomePyQt.cxx.

    : myResult( -1 ),
      myWndId( id ) {}

Member Function Documentation

virtual void TCloneView::Execute ( ) [inline, virtual]

Definition at line 2612 of file SalomePyQt.cxx.

  {
    SUIT_ViewWindow* wnd = getWnd( myWndId );
    if ( wnd )
    {
      SUIT_ViewManager* viewMgr = wnd->getViewManager();
      if ( viewMgr )
      {
        if ( wnd->inherits( "OCCViewer_ViewWindow" ) )
        {
          OCCViewer_ViewWindow* occView = (OCCViewer_ViewWindow*)( wnd );
          occView->onCloneView();

          wnd = viewMgr->getActiveView();
          if ( wnd )
            myResult = wnd->getId();
        }
        else if ( wnd->inherits( "Plot2d_ViewWindow" ) ) 
        {
          Plot2d_ViewManager* viewMgr2d = dynamic_cast<Plot2d_ViewManager*>( viewMgr );
          Plot2d_ViewWindow* srcWnd2d = dynamic_cast<Plot2d_ViewWindow*>( wnd );
          if ( viewMgr2d && srcWnd2d )
          {
            Plot2d_ViewWindow* resWnd = viewMgr2d->cloneView( srcWnd2d );
            myResult = resWnd->getId();
          }
        }
      }
    }
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 2607 of file SalomePyQt.cxx.

Definition at line 2608 of file SalomePyQt.cxx.


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