command += " \"" + bbDescription + "\"";
command += " \"" + bbCategories + "\"";
+
+#ifndef APPLE
+ command = "source ~/.bbtk/profile_creatools ; " + command;
+#endif
+
//excecute command
- //wxMessageBox(crea::std2wx("Command: ->" + command + "<-"),_T("Creating Black Box"),wxOK | wxICON_INFORMATION);
+// wxMessageBox(crea::std2wx("Command: ->" + command + "<-"),_T("Creating Black Box"),wxOK | wxICON_INFORMATION);
if(system(command.c_str()))
{
result = new std::string("Error executing command '" + command + "'");
modelCDMFile* header = NULL;
modelCDMFile* source = NULL;
wxDir dir(crea::std2wx(path));
- if (dir.IsOpened())
+ if (dir.IsOpened())
{
wxString fileName;
bool cont = dir.GetFirst(&fileName, crea::std2wx("bb"+package+bbName+".h"), wxDIR_FILES);
}
}
//if source and header exist
+
+
if (header != NULL && source != NULL)
{
//create black box
#endif
+#ifdef VTK_USE_TDX
+// #import "vtkTDxMacDevice.h"
+#import "/Users/davila/Creatis/C11/tpli/include/vtk-8.2/vtkTDxMacDevice.h"
+#endif
+
+
//=======================================================================
// LG : NAMESPACE IS NECESSARY TO AVOID CONFLICTING SYMBOLS IN DYN LIBS
namespace crea
this->RenderWindow = NULL;
this->SetRenderWindow(vtkRenderWindow::New());
this->RenderWindow->Delete();
+
+#ifdef VTK_USE_TDX
+ this->Device=vtkTDxMacDevice::New();
+#endif
+
+
}
//---------------------------------------------------------------------------
wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor(wxWindow *parent,
// so we update the size information of the interactor/renderwindow here
this->UpdateSize(size.x, size.y);
#endif
+
+
+#ifdef VTK_USE_TDX
+ this->Device=vtkTDxMacDevice::New();
+#endif
+
+
}
//---------------------------------------------------------------------------
wxVTKRenderWindowInteractor::~wxVTKRenderWindowInteractor()
#if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
delete this->context;
#endif
+
+#ifdef VTK_USE_TDX
+ this->Device->Delete();
+#endif
+
}
//---------------------------------------------------------------------------
wxVTKRenderWindowInteractor * wxVTKRenderWindowInteractor::New()
#if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
wxGLCanvas::SetCurrent(*this->context);
#endif
+
+//EED 2010-10-14
+#ifdef VTK_USE_TDX
+ if(this->UseTDx)
+ {
+ this->Device->SetInteractor(this);
+ this->Device->Initialize();
+ }
+#endif
+
+
+
Modified();
}
//---------------------------------------------------------------------------
bool wxVTKRenderWindowInteractor::Enable(bool enable)
{
+
+#ifdef VTK_USE_TDX
+ if(this->UseTDx)
+ {
+ this->Device->SetInteractor(this);
+ this->Device->Initialize();
+ }
+#endif
+
+
+
#if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
return wxGLCanvas::Enable(enable);
#else
if (!Enabled)
return;
+#ifdef VTK_USE_TDX
+ if(this->Device->GetInitialized())
+ {
+ this->Device->Close();
+ }
+#endif
+
+
// that's it (we can't remove the event handler like it should be...)
Enabled = 0;
Modified();