Vizitown
 All Classes Namespaces Files Functions Variables
vizitown_plugin.vt_as_sync.SyncManager Class Reference

SyncManager A singleton to store websockets who want to be registered as listener of QGIS extent changes. More...

Collaboration diagram for vizitown_plugin.vt_as_sync.SyncManager:
Collaboration graph

Public Member Functions

def __init__
 
def add_listener
 add_listener method Record a websocket as listener for sync More...
 
def remove_all_listener
 remove_all_listener mathod Delete a listener for sync More...
 
def notify_extent_change
 notify_extent_change mathod Send new extent with all websockets stored More...
 

Public Attributes

 websockets
 

Detailed Description

SyncManager A singleton to store websockets who want to be registered as listener of QGIS extent changes.

Constructor & Destructor Documentation

def vizitown_plugin.vt_as_sync.SyncManager.__init__ (   self)

Member Function Documentation

def vizitown_plugin.vt_as_sync.SyncManager.add_listener (   self,
  ws 
)

add_listener method Record a websocket as listener for sync

Parameters
wsWeb socket where the listener listen
def vizitown_plugin.vt_as_sync.SyncManager.notify_extent_change (   self,
  extent 
)

notify_extent_change mathod Send new extent with all websockets stored

Parameters
extentthe new extent to synchronized the view
def vizitown_plugin.vt_as_sync.SyncManager.remove_all_listener (   self)

remove_all_listener mathod Delete a listener for sync

Member Data Documentation

vizitown_plugin.vt_as_sync.SyncManager.websockets

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