ParaView
Signals | Public Member Functions | Protected Member Functions | Protected Attributes
pqInterfaceTracker Class Reference

pqInterfaceTracker is used by ParaView components to locate interface-implementations. More...

#include <pqInterfaceTracker.h>

List of all members.

Signals

void interfaceRegistered (QObject *iface)
 fired every time an interface is registered either from a plugin on manually.

Public Member Functions

 pqInterfaceTracker (QObject *parent=0)
virtual ~pqInterfaceTracker ()
QObjectList interfaces () const
 Return all interfaces that have been loaded/registered.
template<class T >
QList< T > interfaces () const
 Returns all interfaces that have been loaded/registered that are of the requested type.
void addInterface (QObject *iface)
 add an extra interface.
void removeInterface (QObject *iface)
 remove an extra interface
void initialize ()
 initializes the tracker using existing plugins.

Protected Member Functions

void onPluginLoaded (vtkObject *, unsigned long, void *calldata)
 Callback when a plugin is loaded.

Protected Attributes

QObjectList Interfaces
QObjectList RegisteredInterfaces
unsigned long ObserverID

Detailed Description

pqInterfaceTracker is used by ParaView components to locate interface-implementations.

These implementations can be either those loaded from plugins or registered explicitly using addInterface/removeInterface API. In previous versions of ParaView, this role was performed by the pqPluginManager class itself.

Definition at line 45 of file pqInterfaceTracker.h.


Constructor & Destructor Documentation

pqInterfaceTracker::pqInterfaceTracker ( QObject *  parent = 0)
virtual pqInterfaceTracker::~pqInterfaceTracker ( ) [virtual]

Member Function Documentation

QObjectList pqInterfaceTracker::interfaces ( ) const [inline]

Return all interfaces that have been loaded/registered.

Definition at line 54 of file pqInterfaceTracker.h.

template<class T >
QList<T> pqInterfaceTracker::interfaces ( ) const [inline]

Returns all interfaces that have been loaded/registered that are of the requested type.

Definition at line 60 of file pqInterfaceTracker.h.

void pqInterfaceTracker::addInterface ( QObject *  iface)

add an extra interface.

these interfaces are appended to the ones loaded from plugins

void pqInterfaceTracker::removeInterface ( QObject *  iface)

remove an extra interface

void pqInterfaceTracker::initialize ( )

initializes the tracker using existing plugins.

void pqInterfaceTracker::interfaceRegistered ( QObject *  iface) [signal]

fired every time an interface is registered either from a plugin on manually.

void pqInterfaceTracker::onPluginLoaded ( vtkObject ,
unsigned  long,
void *  calldata 
) [protected]

Callback when a plugin is loaded.

We locate and load any interafaces defined in the plugin.


Member Data Documentation

QObjectList pqInterfaceTracker::Interfaces [protected]

Definition at line 94 of file pqInterfaceTracker.h.

Definition at line 95 of file pqInterfaceTracker.h.

unsigned long pqInterfaceTracker::ObserverID [protected]

Definition at line 96 of file pqInterfaceTracker.h.


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