4 #ifndef pqChooseColorPresetReaction_h 5 #define pqChooseColorPresetReaction_h 13 #include <QRegularExpression> 64 bool choosePreset(
const char* presetName =
nullptr);
73 this->setRepresentation(repr, 0 );
75 void setActiveRepresentation();
84 void setTransferFunctions(std::vector<vtkSMProxy*> lut);
87 this->setTransferFunctions(std::vector<vtkSMProxy*>{ lut });
106 QRegularExpression regularExpression();
111 bool loadAnnotations();
117 void presetApplied(
const QString&);
120 void applyCurrentPreset();
126 void updateTransferFunction();
136 QPointer<pqDataRepresentation> Representation;
137 std::vector<vtkWeakPointer<vtkSMProxy>> TransferFunctionProxies;
138 static QPointer<pqPresetDialog> PresetDialog;
139 bool AllowsRegexpMatching;
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
void setTransferFunction(vtkSMProxy *lut)
Set the transfer function proxy.
pqPresetDialog is the dialog used by to show the user with a choice of color maps/opacity maps/preset...
virtual void updateEnableState()
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
void setRepresentation(pqDataRepresentation *repr)
Set the data representation explicitly when track_active_objects is false.
Reaction to pop up a color palette chooser dialog.
proxy for a VTK object(s) on a server
virtual void onTriggered()
Called when the action is triggered.
void setAllowsRegexpMatching(bool allow)
Show/hide widget in the dialog.
helper for color map editor handling