ParaView/Developer Info
This is a general collection of knowledge to help make developing for ParaView easier.
VTK Development
From Fbertel Wiki Page
VTK Rendering Context behavior to keep in mind
Switching from onscreen to offscreen rendering can change the OpenGL context of the same renderwindow. Those OpenGL context can have different extensions support. For instance, on Windows, the onscreen can use the GPU but the offscreen may use the GDI OpenGL 1.1. It is really nasty in term of tracking available extensions: any class using extensions and caching a flag about the success of extension loading should keep track of the OpenGL context where the function pointers were initialized. It also means that the function pointers (vtkgl::) should be per context, right now it is a list of static global pointers... on top of that they are not reset or swap between context switches.
OpenGL Extension Manager
The OpenGL extension manager calls Render() on the render window to make sure a OpenGL context is created. Basically, it calls a function only for its the side effect. In the first place a function should not have side effects. The OpenGL extension manager should call a function that create the OpenGL context directly. Currently, it causes egg and chicken issues when vtkOpenGLRenderWindow::OpenGLinit calls the openGL extension manager.
Server Manager Development
XML Hints
http://www.paraview.org/Wiki/ServerManager_XML_Hints
Qt Development
QApplication::processEvents()
Because of the testing framework we are unable to safely use processEvents. The testing framework has a busy lock it uses to determine when it should play the next testing event. If that busy lock is running when your code calls processEvents it will cause the tests to start playing, which will break the test. The solution is dependent on where you need to call processEvents.
pqCoreUtilities::processEvents(); pqEventDispatcher::processEvents(); //only in Widgets since widgets can't depend on core
Both methods support the QEventLoop::ProcessEventsFlags flags argument. For more information on processEvents please see the Qt Documentation
Debugging
DebugLeaksView
A great way to track down VTK classes that are leaking is using DebugLeaksView. The widget is designed to work out of the box with any VTK+Qt application- just construct the widget and call show(). More information can be found on the DebugLeaksView page. The vtk code is available in the qt-vtk-debug-leaks-view branch of git://github.com/patmarion/VTK.git and the code to embed the widget into paraview is available in the qt-vtk-debug-leaks-view branch of git://github.com/patmarion/ParaView.git
Environment Flags
PARAVIEW_DATA_ROOT
Change the location of the data root for testing.
PV_DEBUG_TEST
Prints debugging information about the testing framework during playback to cout.
PV_ICET_WINDOW_BORDERS
Force render windows to be 400x400 instead of fullscreen
PV_NO_OFFSCREEN_SCREENSHOTS
Disable the use of offsceen screenshots
PV_PLUGIN_DEBUG
Prints debugging information when loading plugins into ParaView.
PV_PLUGIN_PATH
Directories containing plugins to be loaded on startup
PV_SOFTWARE_RENDERING
Force software rendering for ParaView.
PV_LOCK_SAFE
Disables the use of the vtkTransmit<Type>Piece classes and instead uses vtkExtract<Type>Piece
QT_MAC_NO_NATIVE_MENUBAR
Qt flag to force the Qt menu bar rather than the native mac menu bar.