7 #include "visuVTKQt/Plugin.hpp" 11 #include <fwRuntime/utils/GenericExecutableFactoryRegistrar.hpp> 13 #include <QApplication> 14 #include <QSurfaceFormat> 15 #include <QVTKOpenGLWidget.h> 16 #include <vtkGenericOpenGLRenderWindow.h> 23 static ::fwRuntime::utils::GenericExecutableFactoryRegistrar<Plugin> registrar(
"visuVTKQt::Plugin");
27 Plugin::Plugin() noexcept
31 SLM_ASSERT(
"QApplication is already created! The default surface format cannot be changed afterward.\n" 32 "This problem can happen when the profile.xml is handwritten and contains 'visuVTKQt' and 'guiQt'.\n" 33 "If that is the case, please ensure that 'visuVTKQt' is started before 'guiQt'.\n" 34 "It could also happen for generated 'profile.xml' files, check it to be sure.",
37 vtkOpenGLRenderWindow::SetGlobalMaximumNumberOfMultiSamples(0);
38 QSurfaceFormat::setDefaultFormat(QVTKOpenGLWidget::defaultFormat());
#define SLM_TRACE_FUNC()
Trace contextual function signature.
The bundle visuVTKQt contains a vtk Renderer window interactor manager using Qt. It must be set in th...
VISUVTKQT_API void stop() noexcept
Notifies the plugin about its stop.
~Plugin() noexcept
destructor
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
VISUVTKQT_API void start()
Notifies the plugin about its start.
This file defines SpyLog macros. These macros are used to log messages to a file or to the console du...