Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | List of all members
pqRescaleScalarRangeReaction Class Reference

Reaction to rescale the active lookup table's range to match the active representation. More...

#include <pqRescaleScalarRangeReaction.h>

Inheritance diagram for pqRescaleScalarRangeReaction:
Inheritance graph
[legend]
Collaboration diagram for pqRescaleScalarRangeReaction:
Collaboration graph
[legend]

Public Types

enum  Modes { DATA, CUSTOM, TEMPORAL, VISIBLE }
 

Public Slots

void updateEnableState () override
 Updates the enabled state. More...
 
void setRepresentation (pqDataRepresentation *repr)
 Set the data representation explicitly when track_active_objects is false. More...
 

Public Member Functions

 pqRescaleScalarRangeReaction (QAction *parent, bool track_active_objects=true, Modes mode=DATA)
 if track_active_objects is false, then the reaction will not track pqActiveObjects automatically. More...
 
 ~pqRescaleScalarRangeReaction () override
 
- Public Member Functions inherited from pqReaction
 pqReaction (QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
 Constructor. More...
 
 ~pqReaction () override
 
QAction * parentAction () const
 Provides access to the parent action. More...
 

Static Public Member Functions

static bool rescaleScalarRangeToData (pqPipelineRepresentation *repr=nullptr)
 Rescale to current data range. More...
 
static pqRescaleScalarRangeToCustomDialogrescaleScalarRangeToCustom (pqPipelineRepresentation *repr=nullptr)
 Rescale range to a custom range. More...
 
static pqRescaleScalarRangeToCustomDialogrescaleScalarRangeToCustom (vtkSMProxy *tfProxy, bool separateOpacity=false)
 Rescale range to a custom range. More...
 
static pqRescaleScalarRangeToDataOverTimeDialogrescaleScalarRangeToDataOverTime (pqPipelineRepresentation *repr=nullptr)
 Rescale range to data range over time. More...
 
static bool rescaleScalarRangeToVisible (pqPipelineRepresentation *repr=nullptr)
 Rescale range to data range for data visible in the view. More...
 

Protected Slots

virtual void onServerAdded (pqServer *server)
 
virtual void onAboutToRemoveServer (pqServer *server)
 
- Protected Slots inherited from pqReaction
virtual void updateEnableState ()
 
virtual void updateMasterEnableState (bool)
 

Protected Member Functions

void onTriggered () override
 Called when the action is triggered. More...
 

Additional Inherited Members

- Protected Attributes inherited from pqReaction
bool IsMaster
 

Detailed Description

Reaction to rescale the active lookup table's range to match the active representation.

You can disable tracking of the active representation, instead explicitly provide one using setRepresentation() by pass track_active_objects as false to the constructor.

Definition at line 27 of file pqRescaleScalarRangeReaction.h.

Member Enumeration Documentation

◆ Modes

Enumerator
DATA 
CUSTOM 
TEMPORAL 
VISIBLE 

Definition at line 33 of file pqRescaleScalarRangeReaction.h.

Constructor & Destructor Documentation

◆ pqRescaleScalarRangeReaction()

pqRescaleScalarRangeReaction::pqRescaleScalarRangeReaction ( QAction *  parent,
bool  track_active_objects = true,
Modes  mode = DATA 
)

if track_active_objects is false, then the reaction will not track pqActiveObjects automatically.

◆ ~pqRescaleScalarRangeReaction()

pqRescaleScalarRangeReaction::~pqRescaleScalarRangeReaction ( )
override

Member Function Documentation

◆ rescaleScalarRangeToData()

static bool pqRescaleScalarRangeReaction::rescaleScalarRangeToData ( pqPipelineRepresentation repr = nullptr)
static

Rescale to current data range.

Parameters
[in]reprThe data representation to use to determine the data range. If nullptr, then the active representation is used, if available.
Returns
true if the operation was successful, otherwise false.

◆ rescaleScalarRangeToCustom() [1/2]

static pqRescaleScalarRangeToCustomDialog* pqRescaleScalarRangeReaction::rescaleScalarRangeToCustom ( pqPipelineRepresentation repr = nullptr)
static

Rescale range to a custom range.

Parameters
[in]reprThe representation used to determine the transfer function to change range on. If repr is nullptr, then the active representation is used, if available.
Returns
a pointer to the dialog if the operation was successful, otherwise nullptr.

◆ rescaleScalarRangeToCustom() [2/2]

static pqRescaleScalarRangeToCustomDialog* pqRescaleScalarRangeReaction::rescaleScalarRangeToCustom ( vtkSMProxy tfProxy,
bool  separateOpacity = false 
)
static

Rescale range to a custom range.

Parameters
[in]tfProxyThe transfer function proxy to rescale the range on.
[in]separateOpacityShow controls for setting the opacity function range separately from the color transfer function.
Returns
a pointer to the dialog if the operation was successful, otherwise nullptr.

◆ rescaleScalarRangeToDataOverTime()

static pqRescaleScalarRangeToDataOverTimeDialog* pqRescaleScalarRangeReaction::rescaleScalarRangeToDataOverTime ( pqPipelineRepresentation repr = nullptr)
static

Rescale range to data range over time.

Parameters
[in]reprThe data representation to use to determine the data range. If nullptr, then the active representation is used, if available.
Returns
true if the operation was successful, otherwise false.

◆ rescaleScalarRangeToVisible()

static bool pqRescaleScalarRangeReaction::rescaleScalarRangeToVisible ( pqPipelineRepresentation repr = nullptr)
static

Rescale range to data range for data visible in the view.

Parameters
[in]reprThe data representation to use to determine the data range. If nullptr, then the active representation is used, if available.
Returns
true if the operation was successful, otherwise false.

◆ updateEnableState

void pqRescaleScalarRangeReaction::updateEnableState ( )
overrideslot

Updates the enabled state.

Applications need not explicitly call this.

◆ setRepresentation

void pqRescaleScalarRangeReaction::setRepresentation ( pqDataRepresentation repr)
slot

Set the data representation explicitly when track_active_objects is false.

◆ onTriggered()

void pqRescaleScalarRangeReaction::onTriggered ( )
overrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

◆ onServerAdded

virtual void pqRescaleScalarRangeReaction::onServerAdded ( pqServer server)
protectedvirtualslot

◆ onAboutToRemoveServer

virtual void pqRescaleScalarRangeReaction::onAboutToRemoveServer ( pqServer server)
protectedvirtualslot

The documentation for this class was generated from the following file: