65 #ifndef vtkSMSettings_h 66 #define vtkSMSettings_h 95 bool AddCollectionFromString(
const std::string& settings,
double priority);
101 bool AddCollectionFromFile(
const std::string& fileName,
double priority);
106 void ClearAllSettings();
111 bool DistributeSettings();
116 bool SaveSettingsToFile(
const std::string& filePath);
121 bool HasSetting(
const char* settingName);
127 bool HasSetting(
const char* settingName,
double maxPriority);
132 unsigned int GetSettingNumberOfElements(
const char* settingName);
139 int GetSettingAsInt(
const char* settingName,
int defaultValue);
140 double GetSettingAsDouble(
const char* settingName,
double defaultValue);
141 std::string GetSettingAsString(
const char* settingName,
const std::string& defaultValue);
148 int GetSettingAsInt(
const char* settingName,
unsigned int index,
int defaultValue);
149 double GetSettingAsDouble(
const char* settingName,
unsigned int index,
double defaultValue);
150 std::string GetSettingAsString(
151 const char* settingName,
unsigned int index,
const std::string& defaultValue);
163 bool GetPropertySetting(
vtkSMProperty* property,
double maxPriority);
168 bool GetPropertySetting(
const char* prefix,
vtkSMProperty* property);
174 bool GetPropertySetting(
const char* prefix,
vtkSMProperty* property,
double maxPriority);
185 bool GetProxySettings(
vtkSMProxy* proxy,
double maxPriority);
191 bool GetProxySettings(
const char* prefix,
vtkSMProxy* proxy);
197 bool GetProxySettings(
const char* prefix,
vtkSMProxy* proxy,
double maxPriority);
203 std::string GetSettingDescription(
const char* settingName);
210 void SetSetting(
const char* settingName,
int value);
211 void SetSetting(
const char* settingName,
double value);
212 void SetSetting(
const char* settingName,
const std::string& value);
219 void SetSetting(
const char* settingName,
unsigned int index,
int value);
220 void SetSetting(
const char* settingName,
unsigned int index,
double value);
221 void SetSetting(
const char* settingName,
unsigned int index,
const std::string& value);
234 bool skipPropertiesWithDynamicDomains =
true);
245 void SetProxySettings(
const char* prefix,
vtkSMProxy* proxy,
251 void SetSettingDescription(
const char* settingName,
const char* description);
264 static bool DeserializeFromJSON(
vtkSMProxy* proxy,
const Json::Value& value);
274 class vtkSMSettingsInternal;
275 vtkSMSettingsInternal* Internal;
#define VTKREMOTINGSERVERMANAGER_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkSMSettings provides the underlying mechanism for setting default property values in ParaView...
superclass for all SM properties
proxy for a VTK object(s) on a server
void operator=(const vtkObjectBase &)
iterates over the properties of a proxy