32 #ifndef pqPresetDialog_h 33 #define pqPresetDialog_h 35 #include "pqComponentsModule.h" 37 #include <QModelIndex> 38 #include <QScopedPointer> 39 #include <vtk_jsoncpp_fwd.h> 56 typedef QDialog Superclass;
67 SHOW_NON_INDEXED_COLORS_ONLY
76 void setMode(Modes mode);
81 void setCurrentPreset(
const char* presetName);
86 const Json::Value& currentPreset();
92 bool loadColors()
const;
98 bool loadOpacities()
const;
104 bool loadAnnotations()
const;
111 bool usePresetRange()
const;
116 void setCustomizableLoadColors(
bool state,
bool defaultValue =
true);
121 void setCustomizableLoadAnnotations(
bool state,
bool defaultValue =
true);
126 void setCustomizableLoadOpacities(
bool state,
bool defaultValue =
true);
131 void setCustomizableUsePresetRange(
bool state,
bool defaultValue =
false);
134 void applyPreset(
const Json::Value& preset);
137 void updateEnabledStateForSelection();
138 void updateForSelectedIndex(
const QModelIndex& proxyIndex);
139 void triggerApply(
const QModelIndex& proxyIndex = QModelIndex());
140 void removePreset(
const QModelIndex& idx = QModelIndex());
141 void importPresets();
142 void exportPresets();
144 void setPresetIsAdvanced(
int newState);
147 void showEvent(QShowEvent* e)
override;
148 void closeEvent(QCloseEvent* e)
override;
156 const QScopedPointer<pqInternals> Internals;
pqPresetDialog is the dialog used by to show the user with a choice of color maps/opacity maps/preset...
Modes
Used to control what kinds of presets are shown in the dialog.