pqColorOpacityEditorWidget provides an in-line editor widget for editing the color and opacity transfer functions.
More...
#include <pqColorOpacityEditorWidget.h>
|
template<class T > |
static QString | getXMLName (T *object) |
| Description: This static utility method returns the XML name for an object as a QString. More...
|
|
static QString | getTooltip (vtkSMProperty *property) |
| Returns the tooltip to use for the property. May return an empty string. More...
|
|
void | addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1) |
|
void | addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1) |
|
void | removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1) |
|
void | removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1) |
|
void | setShowLabel (bool show) |
|
void | setChangeAvailableAsChangeFinished (bool status) |
| For most pqPropertyWidget subclasses a changeAvailable() signal, corresponds to a changeFinished() signal. More...
|
|
void | addDecorator (pqPropertyWidgetDecorator *) |
| Register a decorator. More...
|
|
pqPropertyLinks & | links () |
| Provides access to the pqPropertyLinks instance. More...
|
|
pqColorOpacityEditorWidget provides an in-line editor widget for editing the color and opacity transfer functions.
The property group is expected to have properties with the following functions. If any of the optional properties are missing, then the corresponding widgets are hidden.
- "XRGBPoints" :- property with (x,r,g,b) tuples that is controlled by a color-transfer function editor (pqTransferFunctionWidget).
- "ScalarOpacityFunction" :- (optional) proxy-property referring to a proxy with "Points" property with (x,a,m,s) tuples that is controlled by an opacity-transfer function editor (pqTransferFunctionWidget).
- "EnableOpacityMapping" :- (optional) property used to enable opacity mapping for surfaces. Controlled by a checkbox in the Widget.
- "UseLogScale" :- (optional) property used to enable/disable log mapping for colors.
- "LockScalarRange" :- (optional) property used to control if the application resets transfer function as and when needed. UseLogScale. Caveats:
- Opacity editor:- pqColorOpacityEditorWidget shows an opacity editor widget. Typically, opacity function is optional and used only when "EnableOpacityMapping" is property is ON. However, in cases of Volume rendering, the EnableOpacityMapping has no effect.
Definition at line 68 of file pqColorOpacityEditorWidget.h.
§ pqColorOpacityEditorWidget()
pqColorOpacityEditorWidget::pqColorOpacityEditorWidget |
( |
vtkSMProxy * |
proxy, |
|
|
vtkSMPropertyGroup * |
smgroup, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
§ ~pqColorOpacityEditorWidget()
virtual pqColorOpacityEditorWidget::~pqColorOpacityEditorWidget |
( |
| ) |
|
|
virtual |
§ xrgbPoints()
QList<QVariant> pqColorOpacityEditorWidget::xrgbPoints |
( |
| ) |
const |
Returns the current list of control points for the color transfer function.
This a list of 4-tuples.
§ xvmsPoints()
QList<QVariant> pqColorOpacityEditorWidget::xvmsPoints |
( |
| ) |
const |
Returns the current list of control points for the opacity function.
This a list of 4-tuples.
§ useLogScale()
bool pqColorOpacityEditorWidget::useLogScale |
( |
| ) |
const |
Returns the value for use-log-scale.
§ lockScalarRange()
bool pqColorOpacityEditorWidget::lockScalarRange |
( |
| ) |
const |
Returns true if the color map range is locked.
§ scalarOpacityFunctionProxy()
pqSMProxy pqColorOpacityEditorWidget::scalarOpacityFunctionProxy |
( |
| ) |
const |
Returns the scalar opacity function (i.e.
PiecewiseFunction) proxy used, if any.
§ setXvmsPoints
void pqColorOpacityEditorWidget::setXvmsPoints |
( |
const QList< QVariant > & |
| ) |
|
|
slot |
Sets the xvmsPoints that control the opacity transfer function.
§ setXrgbPoints
void pqColorOpacityEditorWidget::setXrgbPoints |
( |
const QList< QVariant > & |
| ) |
|
|
slot |
Sets the xrgbPoints that control the color transfer function.
§ setUseLogScale
void pqColorOpacityEditorWidget::setUseLogScale |
( |
bool |
value | ) |
|
|
slot |
Set whether to use-log scale.
§ setLockScalarRange
void pqColorOpacityEditorWidget::setLockScalarRange |
( |
bool |
val | ) |
|
|
slot |
Set whether the color map range should be locked.
§ setScalarOpacityFunctionProxy
void pqColorOpacityEditorWidget::setScalarOpacityFunctionProxy |
( |
pqSMProxy |
sofProxy | ) |
|
|
slot |
Set the scalar opacity function (or PiecewiseFunction) proxy to use.
§ resetRangeToData
void pqColorOpacityEditorWidget::resetRangeToData |
( |
| ) |
|
|
slot |
Reset the transfer function ranges to active data source.
§ resetRangeToCustom [1/2]
void pqColorOpacityEditorWidget::resetRangeToCustom |
( |
| ) |
|
|
slot |
Reset the transfer function ranges to custom values.
§ resetRangeToCustom [2/2]
void pqColorOpacityEditorWidget::resetRangeToCustom |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
|
slot |
§ resetRangeToDataOverTime
void pqColorOpacityEditorWidget::resetRangeToDataOverTime |
( |
| ) |
|
|
slot |
Reset the transfer function ranges to temporal range for active data source.
§ resetRangeToVisibleData
void pqColorOpacityEditorWidget::resetRangeToVisibleData |
( |
| ) |
|
|
slot |
Reset the transfer function ranges to visible range for active data source.
§ invertTransferFunctions
void pqColorOpacityEditorWidget::invertTransferFunctions |
( |
| ) |
|
|
slot |
Inverts the transfer functions.
§ choosePreset
void pqColorOpacityEditorWidget::choosePreset |
( |
const char * |
presetName = NULL | ) |
|
|
slot |
§ saveAsPreset
void pqColorOpacityEditorWidget::saveAsPreset |
( |
| ) |
|
|
slot |
save current transfer function as preset.
§ xrgbPointsChanged
void pqColorOpacityEditorWidget::xrgbPointsChanged |
( |
| ) |
|
|
signal |
Signal fired when the xrgbPoints change.
§ xvmsPointsChanged
void pqColorOpacityEditorWidget::xvmsPointsChanged |
( |
| ) |
|
|
signal |
Signal fired when the xvmsPoints change.
§ useLogScaleChanged
void pqColorOpacityEditorWidget::useLogScaleChanged |
( |
| ) |
|
|
signal |
Signal fired when useLogScale changes.
§ lockScalarRangeChanged
void pqColorOpacityEditorWidget::lockScalarRangeChanged |
( |
| ) |
|
|
signal |
Signal fired when lockScalarRange changes.
§ scalarOpacityFunctionProxyChanged
void pqColorOpacityEditorWidget::scalarOpacityFunctionProxyChanged |
( |
| ) |
|
|
signal |
This signal is never really fired since this widget doesn't have any UI to allow users to changes the ScalarOpacityFunction proxy used.
§ opacityCurrentChanged
void pqColorOpacityEditorWidget::opacityCurrentChanged |
( |
vtkIdType |
| ) |
|
|
protectedslot |
§ colorCurrentChanged
void pqColorOpacityEditorWidget::colorCurrentChanged |
( |
vtkIdType |
| ) |
|
|
protectedslot |
§ updatePanel
void pqColorOpacityEditorWidget::updatePanel |
( |
| ) |
|
|
protectedslot |
updates the panel to show/hide advanced settings
§ updateCurrentData
void pqColorOpacityEditorWidget::updateCurrentData |
( |
| ) |
|
|
protectedslot |
updates the text shown in the "current data" input.
§ currentDataEdited
void pqColorOpacityEditorWidget::currentDataEdited |
( |
| ) |
|
|
protectedslot |
update the transfer function with the text in CurrentDataValue text field.
§ presetApplied
void pqColorOpacityEditorWidget::presetApplied |
( |
| ) |
|
|
protectedslot |
called when a preset is applied.
§ updateIndexedLookupState
void pqColorOpacityEditorWidget::updateIndexedLookupState |
( |
| ) |
|
|
protectedslot |
Ensures that the color-swatches for indexedColors are shown only when this is set to true.
§ useLogScaleClicked
void pqColorOpacityEditorWidget::useLogScaleClicked |
( |
bool |
| ) |
|
|
protectedslot |
called when the use-log-scale checkbox is clicked by the user.
We then add extra logic to valid ranges convert the color map to log/linear space.
§ updateButtonEnableState
void pqColorOpacityEditorWidget::updateButtonEnableState |
( |
| ) |
|
|
protectedslot |
called when the active representation or view changes.
We then change the enabled/disabled state of the buttons. Some actions require a valid representation or view, so disable them if there isn't one.
§ xrgbPoints
QList<QVariant> pqColorOpacityEditorWidget::xrgbPoints |
|
readwrite |
§ xvmsPoints
QList<QVariant> pqColorOpacityEditorWidget::xvmsPoints |
|
readwrite |
§ useLogScale
bool pqColorOpacityEditorWidget::useLogScale |
|
readwrite |
§ lockScalarRange
bool pqColorOpacityEditorWidget::lockScalarRange |
|
readwrite |
§ scalarOpacityFunctionProxy
pqSMProxy pqColorOpacityEditorWidget::scalarOpacityFunctionProxy |
|
readwrite |
The documentation for this class was generated from the following file: