ParaView
|
} More...
}
In this example, "sources" is the proxy group, "SphereSource" is the name of a proxy, and "Radius" and "Center" are properties of the proxy.
Vector properties with a single element can be defined as a single element (e.g., 2.5) or as a single-element array (e.g., [2.5]). Multi-element vector properties are specified as arrays (e.g., [0.0, 1.0, 0.0]).
The "Set*" and "Get*" methods of this class take a character string specifying the setting name. This string has the format ".level1.level2.level3[index]". For example, to retrieve the y-component of the sphere center in the example JSON above, one would write ".sources.SphereSource.Center[1]". Only literal values (int, double, and string) are available through this interface; access to non-leaf nodes in the JSON format is not provided.
This class supports setting setting values. Settings modified through the "Set*" methods modify thet setting collection that has priority over all other collections. This collection can be saved to a text file in JSON format using the SaveSettingsToFile() method.
Some convenience methods for getting and setting proxy property values are provided. GetProxySettings() sets the values of proxy properties that are defined in the setting collections. SetProxySettings() saves the non-default proxy properties in the highest-priority collection.