18 #ifndef vtkSMTransferFunctionPresets_h 19 #define vtkSMTransferFunctionPresets_h 45 void PrintSelf(ostream& os,
vtkIndent indent)
override;
56 unsigned int GetNumberOfPresets();
62 std::string GetPresetAsString(
unsigned int index);
70 bool AddPreset(
const char* name,
const std::string& preset);
75 bool RemovePreset(
unsigned int index);
83 const Json::Value& GetFirstPresetWithName(
const char* name,
int& idx);
84 const Json::Value& GetFirstPresetWithName(
const char* name);
90 const Json::Value& GetPreset(
unsigned int index);
95 std::string GetPresetName(
unsigned int index);
100 bool HasPreset(
const char* name);
105 bool GetPresetHasOpacities(
const Json::Value& preset);
108 return this->GetPresetHasOpacities(this->GetPreset(index));
114 bool GetPresetHasIndexedColors(
const Json::Value& preset);
117 return this->GetPresetHasIndexedColors(this->GetPreset(index));
123 bool GetPresetHasAnnotations(
const Json::Value& preset);
126 return this->GetPresetHasAnnotations(this->GetPreset(index));
133 bool SetPreset(
const char*
name,
const Json::Value& preset);
138 bool AddPreset(
const char* name,
const Json::Value& preset);
144 std::string AddUniquePreset(
const Json::Value& preset,
const char* prefix =
nullptr);
150 bool IsPresetBuiltin(
unsigned int index);
155 bool RenamePreset(
unsigned int index,
const char* newname);
164 bool ImportPresets(
const char* filename, vtkTypeUInt32
location = 0x10 );
165 bool ImportPresets(
const char* filename, std::vector<ImportedPreset>* importedPresets,
167 bool ImportPresets(
const Json::Value& presets);
168 bool ImportPresets(
const Json::Value& presets, std::vector<ImportedPreset>* importedPresets);
174 void ReloadPresets();
185 vtkInternals* Internals;
#define VTKREMOTINGVIEWS_EXPORT
bool GetPresetHasOpacities(unsigned int index)
manages presets for color, opacity, and annotation presets.
superclass for most server manager classes
bool GetPresetHasIndexedColors(unsigned int index)
bool GetPresetHasAnnotations(unsigned int index)
std::vector< std::string > groups
This is used by vtkPVXMLParser to represent an XML document starting at the root element.