Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::NetWorkCefSynchronizer Class Reference
+ Inheritance diagram for inviwo::NetWorkCefSynchronizer:

Public Types

using CallbackFunc = std::string(const std::string&)
 
using CallbackHandle = std::shared_ptr<std::function<CallbackFunc>>
 

Public Member Functions

 NetWorkCefSynchronizer (InviwoApplication *app)
 
virtual void OnLoadStart (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, TransitionType transition_type) override
 
virtual void OnLoadEnd (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, int httpStatusCode) override
 
virtual bool OnQuery (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, int64_t query_id, const CefString &request, bool persistent, CefRefPtr< Callback > callback) override
 
virtual void onWillRemoveProperty (Property *property, size_t index) override
 
virtual void onProcessorNetworkWillRemoveProcessor (Processor *p) override
 
void clear (CefRefPtr< CefBrowser > browser)
 
CallbackHandle registerCallback (CefRefPtr< CefBrowser > browser, const std::string &name, std::function< CallbackFunc > callback)
 
- Public Member Functions inherited from inviwo::PropertyOwnerObserver
virtual void onWillAddProperty (PropertyOwner *owner, Property *property, size_t index)
 
virtual void onDidAddProperty (Property *property, size_t index)
 
virtual void onDidRemoveProperty (PropertyOwner *owner, Property *property, size_t index)
 
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (const Observer &other)
 
virtual ~Observer ()
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 
- Public Member Functions inherited from inviwo::ProcessorNetworkObserver
virtual void onProcessorNetworkChange ()
 
virtual void onProcessorNetworkEvaluateRequest ()
 
virtual void onProcessorNetworkUnlocked ()
 
virtual void onProcessorNetworkWillAddProcessor (Processor *)
 
virtual void onProcessorNetworkDidAddProcessor (Processor *)
 
virtual void onProcessorNetworkDidRemoveProcessor (Processor *)
 
virtual void onProcessorNetworkWillAddConnection (const PortConnection &)
 
virtual void onProcessorNetworkDidAddConnection (const PortConnection &)
 
virtual void onProcessorNetworkWillRemoveConnection (const PortConnection &)
 
virtual void onProcessorNetworkDidRemoveConnection (const PortConnection &)
 
virtual void onProcessorNetworkWillAddLink (const PropertyLink &)
 
virtual void onProcessorNetworkDidAddLink (const PropertyLink &)
 
virtual void onProcessorNetworkWillRemoveLink (const PropertyLink &)
 
virtual void onProcessorNetworkDidRemoveLink (const PropertyLink &)
 
virtual void onProcessorBackgroundJobsChanged (Processor *, int, int)
 

Additional Inherited Members

- Public Attributes inherited from inviwo::PropertyOwnerObserver
friend PropertyOwnerObservable
 
- Public Attributes inherited from inviwo::ProcessorNetworkObserver
friend ProcessorNetworkObservable
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 
- Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_
 

Member Function Documentation

◆ OnLoadEnd()

virtual void inviwo::NetWorkCefSynchronizer::OnLoadEnd ( CefRefPtr< CefBrowser > browser,
CefRefPtr< CefFrame > frame,
int httpStatusCode )
overridevirtual

Synchronizes all widgets and sets their frame, called when frame has loaded.

◆ OnLoadStart()

virtual void inviwo::NetWorkCefSynchronizer::OnLoadStart ( CefRefPtr< CefBrowser > browser,
CefRefPtr< CefFrame > frame,
TransitionType transition_type )
overridevirtual

Removes all property synchronizations.

◆ onProcessorNetworkWillRemoveProcessor()

virtual void inviwo::NetWorkCefSynchronizer::onProcessorNetworkWillRemoveProcessor ( Processor * p)
overridevirtual

Reimplemented from inviwo::ProcessorNetworkObserver.

◆ OnQuery()

virtual bool inviwo::NetWorkCefSynchronizer::OnQuery ( CefRefPtr< CefBrowser > browser,
CefRefPtr< CefFrame > frame,
int64_t query_id,
const CefString & request,
bool persistent,
CefRefPtr< Callback > callback )
overridevirtual

Called due to cefQuery execution in message_router.html. Expects the request to be a JSON data object, see inviwoapiv2.js:

  • for synchronizing property to change: {command: "subscribe", "path": propertyPath, "id":htmlId}
  • for setting a value; {command: "property.set", "path":"PropertyIdentifier", "value":0.5}
  • for getting a value: {command: "property.get", "path": propertyPath}
  • Network commands:
    • {command: "network.processors"}
  • Processor commands:
    • {command: "processor.properties", identifier: "ProcessorIdentifier"}
    • {command: "processor.inports", identifier: "ProcessorIdentifier"}
    • {command: "processor.outports", identifier: "ProcessorIdentifier"}
  • Property commands:
    • {command: "property.get", path: "ProcessorIdentifier/PropertyIdentifier"}
    • {command: "property.set", path: "ProcessorIdentifier/PropertyIdentifier", "data": 0.5}
  • Inport commands:
    • {command: "inport.getData", processor: "ProcessorIdentifier", identifier: "InportIdentifier"}
  • BrushingAndLinkingInport commands:
    • {command: "inport.getFilteredIndices", processor: "ProcessorIdentifier", identifier: "InportIdentifier" target: "BrushingTarget"}
    • {command: "inport.getSelectedIndices", processor: "ProcessorIdentifier", identifier: "InportIdentifier" target: "BrushingTarget"}
    • {command: "inport.getHighlightedIndices", processor: "ProcessorIdentifier", identifier: "InportIdentifier" target: "BrushingTarget"}
    • {command: "inport.filter", processor: "ProcessorIdentifier", identifier: "InportIdentifier" target: "BrushingTarget" indices: "list of indices"}
      • {command: "inport.select", processor: "ProcessorIdentifier", identifier: "InportIdentifier" target: "BrushingTarget" indices: "list of indices"}
      • {command: "inport.highlight", processor: "ProcessorIdentifier", identifier: "InportIdentifier" target: "BrushingTarget" indices: "list of indices"}
  • Outport commands:
    • {command: "outport.setData", processor: "ProcessorIdentifier", identifier: "OutportIdentifier", data: "data"}

◆ onWillRemoveProperty()

virtual void inviwo::NetWorkCefSynchronizer::onWillRemoveProperty ( Property * property,
size_t index )
overridevirtual

Reimplemented from inviwo::PropertyOwnerObserver.


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