67 #ifndef vtkSMSettings_h 68 #define vtkSMSettings_h 98 bool AddCollectionFromString(
const std::string& settings,
double priority);
105 bool AddCollectionFromFile(
const std::string& fileName,
double priority);
114 void ClearAllSettings();
119 bool DistributeSettings();
124 bool SaveSettingsToFile(
const std::string& filePath);
129 bool HasSetting(
const char* settingName);
135 bool HasSetting(
const char* settingName,
double maxPriority);
140 unsigned int GetSettingNumberOfElements(
const char* settingName);
147 int GetSettingAsInt(
const char* settingName,
int defaultValue);
148 double GetSettingAsDouble(
const char* settingName,
double defaultValue);
149 std::string GetSettingAsString(
const char* settingName,
const std::string& defaultValue);
156 int GetSettingAsInt(
const char* settingName,
unsigned int index,
int defaultValue);
157 double GetSettingAsDouble(
const char* settingName,
unsigned int index,
double defaultValue);
158 std::string GetSettingAsString(
159 const char* settingName,
unsigned int index,
const std::string& defaultValue);
171 bool GetPropertySetting(
vtkSMProperty* property,
double maxPriority);
176 bool GetPropertySetting(
const char* prefix,
vtkSMProperty* property);
182 bool GetPropertySetting(
const char* prefix,
vtkSMProperty* property,
double maxPriority);
193 bool GetProxySettings(
vtkSMProxy* proxy,
double maxPriority);
199 bool GetProxySettings(
const char* prefix,
vtkSMProxy* proxy);
205 bool GetProxySettings(
const char* prefix,
vtkSMProxy* proxy,
double maxPriority);
211 std::string GetSettingDescription(
const char* settingName);
218 void SetSetting(
const char* settingName,
int value);
219 void SetSetting(
const char* settingName,
double value);
220 void SetSetting(
const char* settingName,
const std::string& value);
227 void SetSetting(
const char* settingName,
unsigned int index,
int value);
228 void SetSetting(
const char* settingName,
unsigned int index,
double value);
229 void SetSetting(
const char* settingName,
unsigned int index,
const std::string& value);
242 bool skipPropertiesWithDynamicDomains =
true);
253 void SetProxySettings(
const char* prefix,
vtkSMProxy* proxy,
259 void SetSettingDescription(
const char* settingName,
const char* description);
272 static bool DeserializeFromJSON(
vtkSMProxy* proxy,
const Json::Value& value);
278 static double GetUserPriority();
284 static double GetApplicationPriority();
294 class vtkSMSettingsInternal;
295 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