4 #ifndef pqScalarBarVisibilityReaction_h 5 #define pqScalarBarVisibilityReaction_h 46 std::vector<vtkSMProxy*> scalarBarProxies()
const;
49 std::vector<vtkSMProxy*> proxies = this->scalarBarProxies();
50 return proxies.empty() ? nullptr : proxies[0];
62 this->setRepresentation(repr, 0 );
64 void setActiveRepresentation();
70 void setScalarBarVisibility(
bool visible);
86 QPointer<pqDataRepresentation> Representation;
87 QPointer<pqView> View;
88 QPointer<pqTimer> Timer;
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
void onTriggered() override
Called when the action is triggered.
virtual void updateEnableState()
#define PQAPPLICATIONCOMPONENTS_EXPORT
Reaction to toggle scalar bar visibility.
This is a PQ abstraction of a generic view module.
This is a superclass just to make it easier to collect all such reactions.
proxy for a VTK object(s) on a server
QAction * parentAction() const
Provides access to the parent action.
vtkSMProxy * scalarBarProxy() const
Returns the scalar bar for the current representation, if any.
void setRepresentation(pqDataRepresentation *repr)
Set the representation.
helper for color map editor handling