30 #ifndef vtkSMTransferFunctionPresets_h 31 #define vtkSMTransferFunctionPresets_h 35 #include "vtkRemotingViewsModule.h" 38 #include <vtk_jsoncpp_fwd.h> 57 unsigned int GetNumberOfPresets();
71 bool AddPreset(
const char* name,
const vtkStdString& preset);
76 bool RemovePreset(
unsigned int index);
82 const Json::Value& GetFirstPresetWithName(
const char* name);
87 const Json::Value& GetPreset(
unsigned int index);
97 bool HasPreset(
const char* name);
102 bool GetPresetHasOpacities(
const Json::Value& preset);
105 return this->GetPresetHasOpacities(this->GetPreset(
index));
111 bool GetPresetHasIndexedColors(
const Json::Value& preset);
114 return this->GetPresetHasIndexedColors(this->GetPreset(
index));
120 bool GetPresetHasAnnotations(
const Json::Value& preset);
123 return this->GetPresetHasAnnotations(this->GetPreset(
index));
130 bool IsPresetDefault(
const Json::Value& preset);
136 bool AddPreset(
const char* name,
const Json::Value& preset);
142 vtkStdString AddUniquePreset(
const Json::Value& preset,
const char* prefix = NULL);
148 bool IsPresetBuiltin(
unsigned int index);
153 bool RenamePreset(
unsigned int index,
const char* newname);
162 bool ImportPresets(
const char* filename);
163 bool ImportPresets(
const Json::Value& presets);
169 void ReloadPresets();
180 vtkInternals* Internals;
bool IsPresetDefault(unsigned int index)
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)
static vtkSMObject * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
void PrintSelf(ostream &os, vtkIndent indent) override