76 #ifndef vtkSMSettings_h 77 #define vtkSMSettings_h 106 bool AddCollectionFromString(
const std::string& settings,
double priority);
112 bool AddCollectionFromFile(
const std::string& fileName,
double priority);
117 void ClearAllSettings();
122 bool DistributeSettings();
127 bool SaveSettingsToFile(
const std::string& filePath);
132 bool HasSetting(
const char* settingName);
138 bool HasSetting(
const char* settingName,
double maxPriority);
143 unsigned int GetSettingNumberOfElements(
const char* settingName);
150 int GetSettingAsInt(
const char* settingName,
int defaultValue);
151 double GetSettingAsDouble(
const char* settingName,
double defaultValue);
152 std::string GetSettingAsString(
const char* settingName,
const std::string& defaultValue);
159 int GetSettingAsInt(
const char* settingName,
unsigned int index,
int defaultValue);
160 double GetSettingAsDouble(
const char* settingName,
unsigned int index,
double defaultValue);
161 std::string GetSettingAsString(
162 const char* settingName,
unsigned int index,
const std::string& defaultValue);
174 bool GetPropertySetting(
vtkSMProperty* property,
double maxPriority);
179 bool GetPropertySetting(
const char* prefix,
vtkSMProperty* property);
185 bool GetPropertySetting(
const char* prefix,
vtkSMProperty* property,
double maxPriority);
196 bool GetProxySettings(
vtkSMProxy* proxy,
double maxPriority);
202 bool GetProxySettings(
const char* prefix,
vtkSMProxy* proxy);
208 bool GetProxySettings(
const char* prefix,
vtkSMProxy* proxy,
double maxPriority);
214 std::string GetSettingDescription(
const char* settingName);
221 void SetSetting(
const char* settingName,
int value);
222 void SetSetting(
const char* settingName,
double value);
223 void SetSetting(
const char* settingName,
const std::string& value);
230 void SetSetting(
const char* settingName,
unsigned int index,
int value);
231 void SetSetting(
const char* settingName,
unsigned int index,
double value);
232 void SetSetting(
const char* settingName,
unsigned int index,
const std::string& value);
245 bool skipPropertiesWithDynamicDomains =
true);
256 void SetProxySettings(
const char* prefix,
vtkSMProxy* proxy,
262 void SetSettingDescription(
const char* settingName,
const char* description);
275 static bool DeserializeFromJSON(
vtkSMProxy* proxy,
const Json::Value& value);
285 class vtkSMSettingsInternal;
286 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