76 #ifndef vtkSMSettings_h 77 #define vtkSMSettings_h 79 #include "vtkObject.h" 80 #include "vtkPVServerManagerCoreModule.h" 81 #include "vtkStdString.h" 97 void PrintSelf(ostream& os, vtkIndent indent);
111 bool AddCollectionFromString(
const std::string& settings,
double priority);
117 bool AddCollectionFromFile(
const std::string& fileName,
double priority);
122 void ClearAllSettings();
127 bool DistributeSettings();
132 bool SaveSettingsToFile(
const std::string& filePath);
137 bool HasSetting(
const char* settingName);
143 bool HasSetting(
const char* settingName,
double maxPriority);
148 unsigned int GetSettingNumberOfElements(
const char* settingName);
155 int GetSettingAsInt(
const char* settingName,
int defaultValue);
156 double GetSettingAsDouble(
const char* settingName,
double defaultValue);
157 std::string GetSettingAsString(
const char* settingName,
const std::string& defaultValue);
164 int GetSettingAsInt(
const char* settingName,
unsigned int index,
int defaultValue);
165 double GetSettingAsDouble(
const char* settingName,
unsigned int index,
double defaultValue);
166 std::string GetSettingAsString(
167 const char* settingName,
unsigned int index,
const std::string& defaultValue);
179 bool GetPropertySetting(
vtkSMProperty* property,
double maxPriority);
184 bool GetPropertySetting(
const char* prefix,
vtkSMProperty* property);
190 bool GetPropertySetting(
const char* prefix,
vtkSMProperty* property,
double maxPriority);
201 bool GetProxySettings(
vtkSMProxy* proxy,
double maxPriority);
207 bool GetProxySettings(
const char* prefix,
vtkSMProxy* proxy);
213 bool GetProxySettings(
const char* prefix,
vtkSMProxy* proxy,
double maxPriority);
219 std::string GetSettingDescription(
const char* settingName);
226 void SetSetting(
const char* settingName,
int value);
227 void SetSetting(
const char* settingName,
double value);
228 void SetSetting(
const char* settingName,
const std::string& value);
235 void SetSetting(
const char* settingName,
unsigned int index,
int value);
236 void SetSetting(
const char* settingName,
unsigned int index,
double value);
237 void SetSetting(
const char* settingName,
unsigned int index,
const std::string& value);
250 bool skipPropertiesWithDynamicDomains =
true);
261 void SetProxySettings(
const char* prefix,
vtkSMProxy* proxy,
267 void SetSettingDescription(
const char* settingName,
const char* description);
280 static bool DeserializeFromJSON(
vtkSMProxy* proxy,
const Json::Value& value);
290 class vtkSMSettingsInternal;
291 vtkSMSettingsInternal* Internal;
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
iterates over the properties of a proxy