# for which the macro SWITCH_ON_IF_BUILD_ALL have been used are set to ON
# The -- prepended to the options ensure that it will appear as the
# first option when running ccmake/CMakeSetup
-OPTION(--BUILD_ALL "Build all ?" OFF)
+OPTION(--BUILD_ALL "Build all ?" ON)
#OPTION(--SET_BUILD_ALL_OFF "Build all ?" OFF)
#MARK_AS_ADVANCED(--SET_BUILD_ALL_OFF)
+
#---------------------------------------------------------------------------
# If not a core package must include necessary cmake scripts
IF(NOT BBTK_CORE_PACKAGE)
ENDIF(NOT BBTK_CORE_PACKAGE)
#---------------------------------------------------------------------------
+#----------------------------------------------------------------------------
+# USER DEFINED ADDITIONAL INCLUDE DIRS
+INCLUDE_DIRECTORIES(${${BBTK_PACKAGE_NAME}_INCLUDE_DIRS})
+#----------------------------------------------------------------------------
+
#-----------------------------------------------------------------------------
SET(${BBTK_PACKAGE_NAME}_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
-
#----------------------------------------------------------------------------
IF(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES)
FILE(GLOB
IF(BBTK_CORE_PACKAGE)
# If a core package set option from bbtk global one
IF (BUILD_BBS_APPLI_BINARIES)
- SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP ON)
+ SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP OFF)
ELSE (BUILD_BBS_APPLI_BINARIES)
SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP OFF)
ENDIF (BUILD_BBS_APPLI_BINARIES)
# Create the option
OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP
"Build binaries for bbs applications of package ${BBTK_PACKAGE_NAME} ?" OFF)
- SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP)
+##EED SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP)
ENDIF(BBTK_CORE_PACKAGE)
#---------------------------------------------------------------------------
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR} )
#----------------------------------------------------------------------------
-#----------------------------------------------------------------------------
-# USER DEFINED ADDITIONAL INCLUDE DIRS
-# NB : PATHS PROVIDED BY THE USER ARE RELATIVE TO THE PARENT DIR
-INCLUDE_DIRECTORIES(../${${BBTK_PACKAGE_NAME}_INCLUDE_DIRS})
-#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
OPTION(BUILD_APPLICATIONS "Build Applications (bbi, bbfy, ...)" ON)
OPTION(BUILD_BBS_APPLI_BINARIES "Build binaries for bbs applications of all packages" OFF)
-SWITCH_ON_IF_BUILD_ALL(BUILD_BBS_APPLI_BINARIES)
+##EED SWITCH_ON_IF_BUILD_ALL(BUILD_BBS_APPLI_BINARIES)
#-----------------------------------------------------------------------------
OPTION(BUILD_BBTK_DOC "Build documentation for bbtk." OFF)
SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_DOC)
ENDIF(USE_ITK)
#-----------------------------------------------------------------------------
+
#-----------------------------------------------------------------------------
#OPTION(USE_GDCM "Build GDCM-based black boxes" OFF)
IF(USE_GDCM)
#gdcm gdcmjpeg8 gdcmjpeg12 gdcmjpeg16
)
+
# IF(USE_VTK )
# SET(BBTK_GDCM_LIBRARIES
# ${BBTK_GDCM_LIBRARIES}
ENDIF(GDCM_FOUND)
ENDIF(USE_GDCM)
+
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Aditional INSTALL for CPACK mecanism.
IF(WIN32)
- IF(USE_VTK)
+ STRING(REGEX REPLACE "\\\\" "/" WINDIR "$ENV{WINDIR}")
+ INSTALL( FILES ${WINDIR}/system32/msvcp71d.dll DESTINATION bin/ )
+ INSTALL( FILES ${WINDIR}/system32/msvcr71d.dll DESTINATION bin/ )
+ IF(USE_VTK)
IF(${VTK_DIR})
# ????????? Why this line doesn't works ...?????
FILE(GLOB_RECURSE LST_FILE_VTKDLL RELATIVE ${VTK_DIR} *.dll )
Program: bbtk
Module: $RCSfile: bbtkBlackBox.cxx,v $
Language: C++
-Date: $Date: 2008/05/15 08:02:36 $
-Version: $Revision: 1.19 $
+Date: $Date: 2008/06/10 19:19:42 $
+Version: $Revision: 1.20 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
"=> BlackBox::bbExecute() ["
<<bbGetFullName()<<"]"<<std::endl);
- Wx::BeginBusyCursor();
+ wxBusyCursor wait;
+ //EED Wx::BeginBusyCursor();
// If execution frozen : return
if (bbGlobalGetFreezeExecution())
// Calls the main recursive update method
bbBackwardUpdate(Connection::Pointer());
- Wx::EndBusyCursor();
+ //EED Wx::EndBusyCursor();
bbtkDebugMessageDec("process",2,
"<= BlackBox::bbExecute() ["
Program: bbtk
Module: $RCSfile: bbtkPackage.cxx,v $
Language: C++
- Date: $Date: 2008/05/14 10:26:29 $
- Version: $Revision: 1.19 $
+ Date: $Date: 2008/06/10 19:19:42 $
+ Version: $Revision: 1.20 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
bbtkMessage("package",2,
"Could not open shared library [" <<libname<<"]"
<< std::endl);
+ DWORD dwErrorCode = 0;
+ dwErrorCode = GetLastError();
+ bbtkMessage("package",2,
+ "Windows Error: [" << dwErrorCode <<"]"
+ << std::endl);
+
return 0;
}
Program: bbtk
Module: $RCSfile: bbtkWxGUICommand.cxx,v $
Language: C++
- Date: $Date: 2008/04/24 12:56:39 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/06/10 19:19:42 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "bbtkWxGUICommand.h"
#include "bbtkMessageManager.h"
#include "bbtkConfigurationFile.h"
+#include "bbtkWxGUIPackageBrowser2.h"
namespace bbtk
{
EVT_BUTTON(WxGUICommand::ID_Btn_GraphS, WxGUICommand::OnBtnGraphS)
EVT_BUTTON(WxGUICommand::ID_Btn_GraphD, WxGUICommand::OnBtnGraphD)
EVT_BUTTON(WxGUICommand::ID_Btn_Help, WxGUICommand::OnBtnHelp)
+ EVT_BUTTON(WxGUICommand::ID_Btn_HelpBrowser, WxGUICommand::OnBtnHelpBrowser)
END_EVENT_TABLE()
//================================================================
wxBoxSizer *btnsSizer = new wxBoxSizer(wxHORIZONTAL);
- wxButton *btnInclude = new wxButton(this,ID_Btn_Include,_T("include") );
- wxButton *btnReset = new wxButton(this,ID_Btn_Reset,_T("reset") );
- wxButton *btnConfig = new wxButton(this,ID_Btn_Config,_T("config") );
- wxButton *btnGraphS = new wxButton(this,ID_Btn_GraphS,
- _T("graph (simple)") );
- wxButton *btnGraphD = new wxButton(this,ID_Btn_GraphD,
- _T("graph (detailed)") );
- wxButton *btnHelp = new wxButton(this,ID_Btn_Help,_T("help") );
+ wxButton *btnInclude = new wxButton(this,ID_Btn_Include ,_T("include") );
+ wxButton *btnReset = new wxButton(this,ID_Btn_Reset ,_T("reset") );
+ wxButton *btnConfig = new wxButton(this,ID_Btn_Config ,_T("config") );
+ wxButton *btnGraphS = new wxButton(this,ID_Btn_GraphS ,_T("graph (simple)") );
+ wxButton *btnGraphD = new wxButton(this,ID_Btn_GraphD ,_T("graph (detailed)") );
+ wxButton *btnHelp = new wxButton(this,ID_Btn_Help ,_T("help") );
+ wxButton *btnHelpBrowser = new wxButton(this,ID_Btn_HelpBrowser ,_T("help browser") );
- btnsSizer->Add( btnInclude );
+ btnsSizer->Add( btnInclude );
btnsSizer->Add( btnReset );
btnsSizer->Add( btnConfig );
- btnsSizer->Add( btnGraphS );
- btnsSizer->Add( btnGraphD );
+ btnsSizer->Add( btnGraphS );
+ btnsSizer->Add( btnGraphD );
btnsSizer->Add( btnHelp );
+ btnsSizer->Add( btnHelpBrowser );
sizer->Add(btnsSizer,0,wxTOP|wxGROW, 10 );
bbtkDebugMessage("gui",2,"WxGUICommand::OnBtnHelp"<<std::endl);
SendCommand("help");
}
+
+ void WxGUICommand::OnBtnHelpBrowser(wxCommandEvent& event)
+ {
+ wxBusyCursor wait;
+ WxGUIPackageBrowser2Window *helpbrowser = new WxGUIPackageBrowser2Window(this,"HelpBrowser", wxSize(600,600) );
+ helpbrowser->Show();
+ }
} // namespace bbtk
Program: bbtk
Module: $RCSfile: bbtkWxGUICommand.h,v $
Language: C++
- Date: $Date: 2008/03/20 09:51:29 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/06/10 19:19:42 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void OnBtnGraphS(wxCommandEvent& event);
void OnBtnGraphD(wxCommandEvent& event);
void OnBtnHelp(wxCommandEvent& event);
+ void OnBtnHelpBrowser(wxCommandEvent& event);
void SendCommand(const std::string& command);
private :
ID_Btn_Config,
ID_Btn_GraphS,
ID_Btn_GraphD,
- ID_Btn_Help
+ ID_Btn_Help,
+ ID_Btn_HelpBrowser
};
DECLARE_EVENT_TABLE()
Program: bbtk
Module: $RCSfile: bbtkWxGUIHtmlBrowser.cxx,v $
Language: C++
- Date: $Date: 2008/04/22 14:30:25 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/06/10 19:19:42 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
+//EED2 BEGIN_EVENT_TABLE(WxHtmlWindow, wxPanel)
+//EED2 EVT_SIZE(WxHtmlWindow::OnSize)
+//EED2 END_EVENT_TABLE()
+
+//EED2 void WxHtmlWindow::OnSize( wxSizeEvent& )
+//EED2 {
+//EED2 printf("EED WxHtmlWindow::OnSize \n" );
+//EED2 Scroll(10,500);
+//EED2 }
+
+
//========================================================================
BEGIN_EVENT_TABLE(WxGUIHtmlBrowser, wxPanel)
// EVT_BUTTON(include_id, WxGUIHtmlBrowser::OnIncludeFileButton )
EVT_TEXT_ENTER(url_id, WxGUIHtmlBrowser::OnURLEnter )
EVT_HTML_LINK_CLICKED(html_id, WxGUIHtmlBrowser::OnLinkClicked)
+ EVT_SIZE(WxGUIHtmlBrowser::OnSize)
+
END_EVENT_TABLE()
//========================================================================
//========================================================================
+ //========================================================================
+ void WxGUIHtmlBrowser::OnSize(wxSizeEvent& e)
+ {
+ mwxHtmlWindow->EnableScrolling(true,true);
+ if ( mwxURL->GetValue()!=wxString(_T("")) )
+ {
+// ?????????? No funciona ....?????
+//EED2 mwxHtmlWindow->LoadPage(mwxURL->GetValue());
+// printf("EED WxGUIHtmlBrowser::OnSize %s \n", mwxURL->GetValue().c_str() );
+//EED2 mwxHtmlWindow->Scroll( 10, 500);
+ } else {
+// GoHome();
+ }
+ e.Skip(true);
+ }
+
/*
void WxGUIHtmlBrowser::OnCell(wxHtmlCellEvent& )
{
Program: bbtk
Module: $RCSfile: bbtkWxGUIHtmlBrowser.h,v $
Language: C++
- Date: $Date: 2008/03/21 18:31:57 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/06/10 19:19:42 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
_T("bbtk::WxGUIHtmlBrowser")),
mBrowser(browser)
{
-
- }
+ SetBorders(30);
+ };
// wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,const wxString& url, wxString *redirect);
//EED virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
+//EED2 void OnSize( wxSizeEvent&);
+
+
private:
WxGUIHtmlBrowser* mBrowser;
+ // any class wishing to process wxWidgets events must use this macro
+//EED2 DECLARE_EVENT_TABLE()
};
// void OnRunButton(wxCommandEvent& );
void OnLinkClicked(wxHtmlLinkEvent& );
void OnURLEnter( wxCommandEvent&);
+ void OnSize( wxSizeEvent&);
+
void UpdateURL();
// void OnCell(wxHtmlCellEvent& );
Program: bbtk
Module: $RCSfile: bbtkWxGUIPackageBrowser2.cxx,v $
Language: C++
-Date: $Date: 2008/04/24 12:56:39 $
-Version: $Revision: 1.8 $
+Date: $Date: 2008/06/10 19:19:42 $
+Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
SetSizer(sizer);
// Creates the parent window of all bbtk windows as a child of this
- Wx::CreateTopWindow(this);
+// Wx::CreateTopWindow(this);
// Add the method OnWxSignal as a Wx::Signal observer
//bbtkAddWxSignalObserver(WxGUIPackageBrowser2Window::OnWxSignal);
Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
Language: C++
- Date: $Date: 2008/05/15 08:02:36 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2008/06/10 19:19:42 $
+ Version: $Revision: 1.11 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
ID_Menu_Windows_Help,
ID_Menu_Windows_Messages,
ID_Menu_Windows_Command,
- ID_Menu_Windows_Save
+ ID_Menu_Windows_Save,
+ ID_Menu_Windows_HelpBrowser
// ID_Button_Run
};
menuTools->Append( ID_Menu_CreateBlackBox, _T("Create &blackbox") );
menuTools->Append( ID_Menu_ShowImageGraph, _T("&Show last image graph") );
menuTools->Append( ID_Menu_CreateIndex, _T("&Generate index") );
-
+
wxMenu *menuWindows = new wxMenu;
menuWindows->AppendCheckItem(ID_Menu_Windows_Files,
_T("Show 'files' panel") )->Check();
_T("Show 'messages' panel") )->Check();
menuWindows->AppendCheckItem(ID_Menu_Windows_Command,
_T("Show 'command' panel") )->Check();
+ menuWindows->AppendSeparator();
+ menuWindows->Append( ID_Menu_Windows_HelpBrowser, _T("Show help &Browser") );
menuWindows->AppendSeparator();
menuWindows->Append ( ID_Menu_Windows_Save, _T("Save interface configuration"));
//
mWxGUITextEditor = new WxGUITextEditor(this,this);
mWxGUITextEditor->SetFileNameFilter("*.bbs");
+
+ mWxGUIHtmlBrowser = new WxGUIHtmlBrowser(this,wxSize(200,0),this);
- mWxGUIHtmlBrowser = new WxGUIHtmlBrowser(this,wxSize(200,0),this);
- /*
+ /*
wxBitmap bmp_run(cc_run_xpm);
mwxButtonRun = new wxBitmapButton( this, ID_Button_Run,bmp_run);//_T("Run") );
*/
mwxNotebook->AddPage(mWxGUICommand,_T("Command"),true);
+
m_mgr.AddPane(mwxNotebook,
wxAuiPaneInfo().Name(wxT("nb"))
.CaptionVisible(false)
}
//================================================================
+ //================================================================
+ void WxGUIScriptingInterface::OnMenuWindowsHelpBrowser(wxCommandEvent& WXUNUSED(event))
+ {
+ wxBusyCursor wait;
+ WxGUIPackageBrowser2 *browser = new WxGUIPackageBrowser2(this);
+ browser->IncludeAll();
+ mwxNotebook->AddPage(browser,_T("Help Browser"),true);
+ }
+ //================================================================
+
+
//================================================================
void WxGUIScriptingInterface::OnMenuCreatePackage(wxCommandEvent& WXUNUSED(event))
EVT_MENU(ID_Menu_Windows_Help, WxGUIScriptingInterface::OnMenuWindowsHelp)
EVT_MENU(ID_Menu_Windows_Messages, WxGUIScriptingInterface::OnMenuWindowsMessages)
EVT_MENU(ID_Menu_Windows_Command, WxGUIScriptingInterface::OnMenuWindowsCommand)
+ EVT_MENU(ID_Menu_Windows_HelpBrowser, WxGUIScriptingInterface::OnMenuWindowsHelpBrowser)
EVT_AUI_PANE_CLOSE(WxGUIScriptingInterface::OnPaneClose)
// EVT_BUTTON(ID_Button_Run, WxGUIScriptingInterface::OnButtonRun )
END_EVENT_TABLE()
Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.h,v $
Language: C++
- Date: $Date: 2008/04/25 07:33:17 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/06/10 19:19:42 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "bbtkWxGUICommand.h"
#include "bbtkWxGUIOutputMessages.h"
#include "bbtkWxGUIHtmlBrowser.h"
+#include "bbtkWxGUIPackageBrowser2.h"
namespace bbtk
{
void OnMenuCreateIndex(wxCommandEvent& WXUNUSED(event));
void OnMenuWindowsFiles(wxCommandEvent& event);
void OnMenuWindowsHelp(wxCommandEvent& event);
+ void OnMenuWindowsHelpBrowser(wxCommandEvent& event);
void OnMenuWindowsMessages(wxCommandEvent& event);
void OnMenuWindowsCommand(wxCommandEvent& event);
void OnMenuWindowsSave( wxCommandEvent& WXUNUSED(event));
// wxAuiNotebook* mwxNotebook;
// wxPanel *mwxPageCommand, *mwxPageHelp;
- WxGUICommand* mWxGUICommand;
- WxGUIOutputMessages* mWxGUIOutputMessages;
- WxGUIHtmlBrowser* mWxGUIHtmlBrowser;
- WxGUITextEditor* mWxGUITextEditor;
+ WxGUICommand *mWxGUICommand;
+ WxGUIOutputMessages *mWxGUIOutputMessages;
+ WxGUIHtmlBrowser *mWxGUIHtmlBrowser;
+ WxGUITextEditor *mWxGUITextEditor;
+ WxGUIPackageBrowser2 *mWxGUIPackageBrowser2;
wxMenuItem* mwxMenuItemReset;
// wxButton* mwxButtonRun;
NDims = 3
BinaryData = True
BinaryDataByteOrderMSB = False
-ElementSpacing = 0.796875 0.796875 0.7
-DimSize = 112 131 192
+ElementSpacing = 0.7 0.7 0.7
+DimSize = 127 147 187
Position = 0 0 0
ElementNumberOfChannels = 1
ElementType = MET_USHORT
Program: bbtk
Module: $RCSfile: bbwxRadioButton.cxx,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:53 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/06/10 19:19:49 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bbtk::std2wx(bbGetInputTitle()),
lstIn );
+ bbSetOutputOut( bbGetInputIn() );
bbSetOutputWidget( w );
}
Program: bbtk
Module: $RCSfile: bbwxRadioButton.h,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:53 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/06/10 19:19:50 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
protected:
virtual void bbUserConstructor();
-
};
//=================================================================
connect surface2.BoxChange refresh.In2
connect refresh.Out viewer.BoxExecute
-new LayoutLine main
+new LayoutSplit main
new LayoutLine controls
connect viewer.Widget main.Widget1
connect controls.Widget main.Widget2
set surface2.Opacity 20
set surface2.Title "Iso-surface 2"
+set main.WinWidth 1200
+set main.WinHide 1000
#message All 9
exec main
set surface.Isovalue 100
set surface.Opacity 100
-set surface.Colour "0.5 0 0"
+set surface.Colour "1.0 0.31 0.31"
set surface.Title "Iso-surface"
load std
set viewer.WinTitle "ExampleView3DImage1"
set viewer.WinWidth 350
set viewer.WinHeight 400
+set viewer.Stereo TRUE
exec viewer
Program: bbtk
Module: $RCSfile: bbwxvtkViewer3D.cxx,v $
Language: C++
- Date: $Date: 2008/05/14 10:26:32 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/06/10 19:19:55 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
BBTK_ADD_BLACK_BOX_TO_PACKAGE(wxvtk,Viewer3D);
//-------------------------------------------------------------------------
- Viewer3DWidget::Viewer3DWidget(Viewer3D* box, wxWindow *parent)
+ Viewer3DWidget::Viewer3DWidget(Viewer3D* box, wxWindow *parent, bool stereo)
:
wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL),
mBox(box)
renderer = vtkRenderer::New();
renderwindow = vtkRenderWindow::New();
+
renderwindow->AddRenderer(renderer);
+
+ if (stereo==true){
+ renderwindow->SetStereoCapableWindow(1);
+ //renderwindow->SetStereoTypeToCrystalEyes();
+ renderwindow->SetStereoTypeToRedBlue();
+ renderwindow->SetStereoRender(1);
+ }
+
wxvtkrenderwindowinteractor->SetRenderWindow(renderwindow);
interactorstyle = vtkInteractorStyleTrackballCamera ::New();
bbSetInputObs3(NULL);
bbSetInputObs4(NULL);
bbSetInputObs5(NULL);
+ bbSetInputStereo(false);
bbSetOutputRenderer( NULL );
bbSetOutputInteractor( NULL );
}
{
bbtkDebugMessageInc("Core",9,"Viewer3D::CreateWidget()"<<std::endl);
- Viewer3DWidget* w = new Viewer3DWidget(this,bbGetWxParent());
+ Viewer3DWidget* w = new Viewer3DWidget(this,bbGetWxParent(),bbGetInputStereo());
w->Update();
Program: bbtk
Module: $RCSfile: bbwxvtkViewer3D.h,v $
Language: C++
- Date: $Date: 2008/05/09 10:39:47 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/06/10 19:19:55 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
class Viewer3DWidget : public wxPanel
{
public:
- Viewer3DWidget(Viewer3D* box, wxWindow *parent);
+ Viewer3DWidget(Viewer3D* box, wxWindow *parent, bool stereo);
~Viewer3DWidget();
void Update();
BBTK_DECLARE_INPUT(Obs3, vtkInteractorObserver *);
BBTK_DECLARE_INPUT(Obs4, vtkInteractorObserver *);
BBTK_DECLARE_INPUT(Obs5, vtkInteractorObserver *);
+ BBTK_DECLARE_INPUT(Stereo, bool);
BBTK_DECLARE_OUTPUT(Renderer,vtkRenderer*);
BBTK_DECLARE_OUTPUT(Interactor,wxVTKRenderWindowInteractor*);
BBTK_PROCESS(Process);
BBTK_INPUT(Viewer3D,Obs3,"Input observer",vtkInteractorObserver *,"");
BBTK_INPUT(Viewer3D,Obs4,"Input observer",vtkInteractorObserver *,"");
BBTK_INPUT(Viewer3D,Obs5,"Input observer",vtkInteractorObserver *,"");
+ BBTK_INPUT(Viewer3D,Stereo,"Stereo with Red-Blue filter. False/True (default False)",bool,"");
BBTK_OUTPUT(Viewer3D,Renderer,"Renderer to which actors can be added.",vtkRenderer*,"");
BBTK_OUTPUT(Viewer3D,Interactor,"Interactor with which vtk widgets can interact",wxVTKRenderWindowInteractor*,"");
BBTK_END_DESCRIBE_BLACK_BOX(Viewer3D);