On this page |
A pdgd.DataLayerVisualizer receives messages with information about how the pdg data has changed. A message can be either a full snapshot of the current object or a delta information that the visualizer can use to update its own data.
Methods ¶
Instance Methods ¶
getPropertyName()
→ str
If the message is not an object snapshot returns the name of the property that has changed, for object snapshot messages this is empty and should be ignored.
getPropertyArray()
→ list
of pdgd.ObjectProperty
Returns a list of properties that should be set, added or removed, according to the message’s type.
toJson()
→ str
Returns a json representation of the message.
toPython()
→ dict
Utility method to convert the message and all internal structures into generic python types. This facilitates access to data from python and allows a single call to c++ code, improving performance for more complex scenarios.