ParaView
Static Public Member Functions
pqCoreUtilities Class Reference

pqCoreUtilities is a collection of arbitrary utility functions that can be used by the application. More...

#include <pqCoreUtilities.h>

List of all members.

Static Public Member Functions

static void setMainWidget (QWidget *widget)
 When popuping up dialogs, it's generally better if we set the parent widget for those dialogs to be the QMainWindow so that the dialogs show up centered correctly in the application.
static QWidget * mainWidget ()
static void processEvents (QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents)
 Call QApplication::processEvents plus make sure the testing framework is.
static QString getParaViewUserDirectory ()
 Return the path of the root ParaView user specific configuration directory.
static QString getParaViewApplicationDirectory ()
 Return the path of the launched application.
static QStringList findParaviewPaths (QString directoryOrFileName, bool lookupInAppDir, bool lookupInUserDir)
 Return the list of full available path that exists inside the shared application path and the user specific one.
static QString getNoneExistingFileName (QString expectedFilePath)
static unsigned long connect (vtkObject *vtk_object, int vtk_event_id, QObject *qobject, const char *signal_or_slot, Qt::ConnectionType type=Qt::AutoConnection)
 Method used to connect VTK events to Qt slots (or signals).

Detailed Description

pqCoreUtilities is a collection of arbitrary utility functions that can be used by the application.

Definition at line 73 of file pqCoreUtilities.h.


Member Function Documentation

static void pqCoreUtilities::setMainWidget ( QWidget *  widget) [inline, static]

When popuping up dialogs, it's generally better if we set the parent widget for those dialogs to be the QMainWindow so that the dialogs show up centered correctly in the application.

For that purpose this convenience method is provided. It locates a QMainWindow and returns it.

Definition at line 80 of file pqCoreUtilities.h.

static QWidget* pqCoreUtilities::mainWidget ( ) [inline, static]

Definition at line 84 of file pqCoreUtilities.h.

static void pqCoreUtilities::processEvents ( QEventLoop::ProcessEventsFlags  flags = QEventLoop::AllEvents) [inline, static]

Call QApplication::processEvents plus make sure the testing framework is.

Definition at line 95 of file pqCoreUtilities.h.

static QString pqCoreUtilities::getParaViewUserDirectory ( ) [static]

Return the path of the root ParaView user specific configuration directory.

static QString pqCoreUtilities::getParaViewApplicationDirectory ( ) [static]

Return the path of the launched application.

static QStringList pqCoreUtilities::findParaviewPaths ( QString  directoryOrFileName,
bool  lookupInAppDir,
bool  lookupInUserDir 
) [static]

Return the list of full available path that exists inside the shared application path and the user specific one.

static QString pqCoreUtilities::getNoneExistingFileName ( QString  expectedFilePath) [static]
static unsigned long pqCoreUtilities::connect ( vtkObject vtk_object,
int  vtk_event_id,
QObject *  qobject,
const char *  signal_or_slot,
Qt::ConnectionType  type = Qt::AutoConnection 
) [static]

Method used to connect VTK events to Qt slots (or signals).

This is an alternative to using vtkEventQtSlotConnect. This method gives a cleaner API to connect vtk-events to Qt slots. It manages cleanup correctly i.e. either vtk-object or the qt-object can be deleted and the observers will be cleaned up correctly. One can disconnect the connection made explicitly by vtk_object->RemoveObserver(eventId) where eventId is the returned value.


The documentation for this class was generated from the following file: