|
ParaView
|
pqCollaborationManager is a QObject that aims to handle the collaboration for the Qt layer. More...
#include <pqCollaborationManager.h>
Public Slots | |
| void | onServerAdded (pqServer *) |
| Slot used to keep track of all possible vtkSMCollaborationManagers They are unsed in pqCollaborationBehavior to listen the ServerManagerModel... | |
| void | onServerRemoved (pqServer *) |
| void | onChatMessage (pqServer *server, int userId, QString &msgContent) |
| This will be triggered by the triggerChatMessage() signal and will broadcast to other client a chat message. | |
| void | updateEnabledState () |
| updates the enabled-state for application wide widgets and actions based whether the application is a master or not. | |
| void | updateMousePointerLocation (QMouseEvent *e) |
| Method called localy when user want to broadcast its pointer to other users. | |
| void | sendMousePointerLocationToOtherClients () |
| Method triggered by the internal collaboration Timer. | |
| void | sendChartViewBoundsToOtherClients () |
| Method triggered by the internal collaboration Timer. | |
| void | attachMouseListenerTo3DViews () |
| Attach a mouse listener if its a 3D view so we can share that information with other clients. | |
| void | attachChartViewBoundsListener (pqView *) |
| Attach bounds listener if the given view is a pqContextView. | |
| void | enableMousePointerSharing (bool) |
| Enable/disable local mouse pointer location. | |
Signals | |
| void | triggerChatMessage (pqServer *server, int userId, QString &msgContent) |
| This will be triggered by the remote clients to update any interessting components. | |
| void | triggerStateClientOnlyMessage (pqServer *origin, vtkSMMessage *msg) |
| This will forward client_only message to anyone that may interessted when not managed locally. | |
| void | triggeredMasterUser (int) |
| Signal triggered when user information get updated regardless the active one A nice thing TODO could be to just forwared from the pqServer but ONLY IF (activeServer == sender) | |
| void | triggeredMasterChanged (bool) |
| void | triggeredUserName (int, QString &) |
| void | triggeredUserListChanged () |
| void | triggerFollowCamera (int) |
| This will be triggered when a remote master client has requested the other users to follow a given camera. | |
Public Member Functions | |
| pqCollaborationManager (QObject *parent) | |
| virtual | ~pqCollaborationManager () |
| vtkSMCollaborationManager * | activeCollaborationManager () |
| Return the vtkSMCollaborationManager. | |
pqCollaborationManager is a QObject that aims to handle the collaboration for the Qt layer.
This class is used to synchronize the ActiveObject across client instances as well as managing the rendering request when data has been changed by other clients. This class is responsible to synchronize
Definition at line 57 of file pqCollaborationManager.h.
| pqCollaborationManager::pqCollaborationManager | ( | QObject * | parent | ) |
| virtual pqCollaborationManager::~pqCollaborationManager | ( | ) | [virtual] |
| vtkSMCollaborationManager* pqCollaborationManager::activeCollaborationManager | ( | ) |
Return the vtkSMCollaborationManager.
| void pqCollaborationManager::triggerChatMessage | ( | pqServer * | server, |
| int | userId, | ||
| QString & | msgContent | ||
| ) | [signal] |
This will be triggered by the remote clients to update any interessting components.
This should be triggered by local client to broadcast to the other clients
| void pqCollaborationManager::triggerStateClientOnlyMessage | ( | pqServer * | origin, |
| vtkSMMessage * | msg | ||
| ) | [signal] |
This will forward client_only message to anyone that may interessted when not managed locally.
| void pqCollaborationManager::triggeredMasterUser | ( | int | ) | [signal] |
Signal triggered when user information get updated regardless the active one A nice thing TODO could be to just forwared from the pqServer but ONLY IF (activeServer == sender)
| void pqCollaborationManager::triggeredMasterChanged | ( | bool | ) | [signal] |
| void pqCollaborationManager::triggeredUserName | ( | int | , |
| QString & | |||
| ) | [signal] |
| void pqCollaborationManager::triggeredUserListChanged | ( | ) | [signal] |
| void pqCollaborationManager::triggerFollowCamera | ( | int | ) | [signal] |
This will be triggered when a remote master client has requested the other users to follow a given camera.
| void pqCollaborationManager::onServerAdded | ( | pqServer * | ) | [slot] |
Slot used to keep track of all possible vtkSMCollaborationManagers They are unsed in pqCollaborationBehavior to listen the ServerManagerModel...
(preServerAdded/aboutToRemoveServer)
| void pqCollaborationManager::onServerRemoved | ( | pqServer * | ) | [slot] |
| void pqCollaborationManager::onChatMessage | ( | pqServer * | server, |
| int | userId, | ||
| QString & | msgContent | ||
| ) | [slot] |
This will be triggered by the triggerChatMessage() signal and will broadcast to other client a chat message.
| void pqCollaborationManager::updateEnabledState | ( | ) | [slot] |
updates the enabled-state for application wide widgets and actions based whether the application is a master or not.
Widget/Actions need to set a dynamic property named PV_MUST_BE_MASTER or PV_MUST_BE_MASTER_TO_SHOW. Only the state for widgets/actions with these any of properties will be updated by this method.
| void pqCollaborationManager::updateMousePointerLocation | ( | QMouseEvent * | e | ) | [slot] |
Method called localy when user want to broadcast its pointer to other users.
| void pqCollaborationManager::sendMousePointerLocationToOtherClients | ( | ) | [slot] |
Method triggered by the internal collaboration Timer.
This timer prevent a network overload by only sending the latest mouse location to the other clients every 100 ms
| void pqCollaborationManager::sendChartViewBoundsToOtherClients | ( | ) | [slot] |
Method triggered by the internal collaboration Timer.
This timer prevent a network overload by only sending the latest modified view location to the other clients every 100 ms
| void pqCollaborationManager::attachMouseListenerTo3DViews | ( | ) | [slot] |
Attach a mouse listener if its a 3D view so we can share that information with other clients.
| void pqCollaborationManager::attachChartViewBoundsListener | ( | pqView * | ) | [slot] |
Attach bounds listener if the given view is a pqContextView.
| void pqCollaborationManager::enableMousePointerSharing | ( | bool | ) | [slot] |
Enable/disable local mouse pointer location.
1.7.5.1