Reaction to rescale the active lookup table's range to match the active representation.
More...
#include <pqRescaleScalarRangeReaction.h>
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.
◆ Modes
◆ 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 |
◆ rescaleScalarRangeToData()
static bool pqRescaleScalarRangeReaction::rescaleScalarRangeToData |
( |
pqPipelineRepresentation * |
repr = nullptr , |
|
|
int |
selectedPropertiesType = 0 |
|
) |
| |
|
static |
Rescale to current data range.
- Parameters
-
[in] | repr | The data representation to use to determine the data range. If nullptr , then the active representation is used, if available. |
[in] | selectedPropertiesType | The selected properties type to use. |
- Returns
true
if the operation was successful, otherwise false
.
◆ rescaleScalarRangeToCustom() [1/3]
Rescale range to a custom range.
- Parameters
-
[in] | repr | The representation used to determine the transfer function to change range on. If repr is nullptr , then the active representation is used, if available. |
[in] | selectedPropertiesType | The selected properties type to use. |
- Returns
- a pointer to the dialog if the operation was successful, otherwise
nullptr
.
◆ rescaleScalarRangeToCustom() [2/3]
Rescale range to a custom range.
- Parameters
-
[in] | tfProxies | The transfer function proxies to rescale the range on. |
[in] | separateOpacity | Show controls for setting the opacity function range separately from the color transfer function. |
[in] | selectedPropertiesType | The selected properties type to use. |
- Returns
- a pointer to the dialog if the operation was successful, otherwise
nullptr
.
◆ rescaleScalarRangeToCustom() [3/3]
Rescale range to a custom range.
- Parameters
-
[in] | tfProxy | The transfer function proxy to rescale the range on. |
[in] | separateOpacity | Show controls for setting the opacity function range separately from the color transfer function. |
[in] | selectedPropertiesType | The selected properties type to use. |
- Returns
- a pointer to the dialog if the operation was successful, otherwise
nullptr
.
Definition at line 99 of file pqRescaleScalarRangeReaction.h.
◆ rescaleScalarRangeToDataOverTime()
Rescale range to data range over time.
- Parameters
-
[in] | repr | The data representation to use to determine the data range. If nullptr , then the active representation is used, if available. |
[in] | selectedPropertiesType | The selected properties type to use. |
- Returns
true
if the operation was successful, otherwise false
.
◆ rescaleScalarRangeToVisible()
Rescale range to data range for data visible in the view.
- Parameters
-
[in] | repr | The 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 [1/2]
Set the data representation explicitly when track_active_objects is false.
◆ setRepresentation [2/2]
◆ setActiveRepresentation
void pqRescaleScalarRangeReaction::setActiveRepresentation |
( |
| ) |
|
|
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: