|
ParaView
|
Reaction to pop up a color palette chooser dialog. More...
#include <pqChooseColorPresetReaction.h>


Public Slots | |
| bool | choosePreset (const char *presetName=NULL) |
| Choose color preset for the representation set using setRepresentation(). More... | |
| void | setRepresentation (pqDataRepresentation *repr) |
| Set the data representation explicitly when track_active_objects is false. More... | |
| void | setTransferFunction (vtkSMProxy *lut) |
| Set the transfer function proxy. More... | |
| void | updateEnableState () |
| Updates the enabled state. More... | |
Signals | |
| void | presetApplied () |
| fired every time a preset is applied. More... | |
Public Member Functions | |
| pqChooseColorPresetReaction (QAction *parent, bool track_active_objects=true) | |
| virtual | ~pqChooseColorPresetReaction () |
Public Member Functions inherited from pqReaction | |
| pqReaction (QAction *parent, Qt::ConnectionType type=Qt::AutoConnection) | |
| Constructor. More... | |
| virtual | ~pqReaction () |
| QAction * | parentAction () const |
| Provides access to the parent action. More... | |
Protected Member Functions | |
| virtual void | onTriggered () |
| Called when the action is triggered. More... | |
Additional Inherited Members | |
Protected Slots inherited from pqReaction | |
| virtual void | updateEnableState () |
| virtual void | updateMasterEnableState (bool) |
Protected Attributes inherited from pqReaction | |
| bool | IsMaster |
Reaction to pop up a color palette chooser dialog.
pqChooseColorPresetReaction is used by pqColorEditorPropertyWidget (for example) allow the user to change the color palette. It pops up a modal dialog with color presets to select and apply. There are three ways of using this reaction:
track_active_objects parameter to the constructor as true (default). When in this configuration, the reaction monitors the active representation (via pqActiveObjects) and allows the user to load a preset on the active representation's color/opacity transfer function using the parent action.track_active_objects parameter to the constructor as false. Then the calling code can explicitly set the representation using pqChooseColorPresetReaction::setRepresentation() method. The reaction will monitor this representation and allow user to load preset of its transfer functions.track_active_objects parameter to the constructor as false and then set the transfer function proxy explictly using pqChooseColorPresetReaction::setTransferFunction() method.In all modes, the reaction will fire the presetApplied() signal to indicate a new preset has been applied. Typically one can hook that signal up to render affected views.
Definition at line 69 of file pqChooseColorPresetReaction.h.
| pqChooseColorPresetReaction::pqChooseColorPresetReaction | ( | QAction * | parent, |
| bool | track_active_objects = true |
||
| ) |
|
virtual |
|
slot |
Choose color preset for the representation set using setRepresentation().
Returns false if representation cannot be located or its is not using scalar coloring.
|
slot |
Set the data representation explicitly when track_active_objects is false.
|
slot |
Set the transfer function proxy.
This can be used, instead of setRepresentation() when track_active_objects was false to directly set the transfer function proxy on which to apply the preset.
|
slot |
Updates the enabled state.
Applications need not explicitly call this.
|
signal |
fired every time a preset is applied.
|
protectedvirtual |
Called when the action is triggered.
Reimplemented from pqReaction.
1.8.12