VVTK_MainWindow
::VVTK_MainWindow(QWidget* theParent,
const char* theName,
- SUIT_ResourceMgr* theResourceMgr):
- SVTK_MainWindow(theParent,theName,theResourceMgr),
+ SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow):
+ SVTK_MainWindow(theParent,theName,theResourceMgr,theViewWindow),
myInteractorStyle(VVTK_InteractorStyle::New()),
myControllerIncrement(VVTK_ControllerIncrement::New()),
myControllerOnKeyDown(VVTK_ControllerOnKeyDown::New())
}
}
-
//----------------------------------------------------------------------------
VVTK_MainWindow1
::VVTK_MainWindow1(QSplitter* theParent,
const char* theName,
- SUIT_ResourceMgr* theResourceMgr):
- VVTK_MainWindow(theParent,theName,theResourceMgr),
+ SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow):
+ VVTK_MainWindow(theParent,theName,theResourceMgr,theViewWindow),
myStyleSwitchAction(NULL),
mySplitter(theParent),
myPickingDlg(NULL)
::~VVTK_MainWindow1()
{}
-
//----------------------------------------------------------------------------
VVTK_MainWindow2*
VVTK_MainWindow1
::CreateMainWindow2(QWidget* theParent,
const char* theName,
- SUIT_ResourceMgr* theResourceMgr)
+ SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow)
{
myMainWindow2 = new VVTK_MainWindow2(theParent,
theName,
theResourceMgr,
+ theViewWindow,
myStyleSwitchAction);
return myMainWindow2;
}
::VVTK_MainWindow2(QWidget* theParent,
const char* theName,
SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow,
QtxAction* theStyleSwitchAction):
- VVTK_MainWindow(theParent,theName,theResourceMgr),
+ VVTK_MainWindow(theParent,theName,theResourceMgr,theViewWindow),
myStyleSwitchAction(theStyleSwitchAction)
{}
//! Construct instance of the class
VVTK_MainWindow(QWidget* theParent,
const char* theName,
- SUIT_ResourceMgr* theResourceMgr);
+ SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow);
//! Reimplement SVTK_MainWindow::Initialize
virtual
//! Construct instance of the class
VVTK_MainWindow1(QSplitter* theParent,
const char* theName,
- SUIT_ResourceMgr* theResourceMgr);
+ SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow);
//! Reimplement VVTK_MainWindow::Initialize
virtual
VVTK_MainWindow2*
CreateMainWindow2(QWidget* theParent,
const char* theName,
- SUIT_ResourceMgr* theResourceMgr);
+ SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow);
VISU_WidgetCtrl* GetWidgetCtrl();
VVTK_MainWindow2(QWidget* theParent,
const char* theName,
SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow,
QtxAction* theStyleSwitchAction);
public:
//! Destroy instance of the class
{
myMainWindow1 = new VVTK_MainWindow1(aSplitter,
"VVTK_MainWindow",
- aResourceMgr);
+ aResourceMgr,
+ this);
anInsideCursorSettings = myMainWindow1->GetInsideCursorSettings();
anOutsideCursorSettings = myMainWindow1->GetOutsideCursorSettings();
{
myMainWindow2 = myMainWindow1->CreateMainWindow2(aSplitter,
"VVTK_SegmantationWindow",
- aResourceMgr);
+ aResourceMgr,
+ this);
SVTK_RenderWindowInteractor* anIteractor =
new SVTK_RenderWindowInteractor(myMainWindow2,"SVTK_RenderWindowInteractor1");