Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
pqColorMapEditor Class Reference

pqColorMapEditor is a widget that can be used to edit the active color-map, if any. More...

#include <pqColorMapEditor.h>

Inherits QWidget.

Public Slots

void setSelectedPropertiesType (int selectedPropertiesType)
 Set the selected properties type. More...
 

Public Member Functions

 pqColorMapEditor (QWidget *parent=nullptr)
 
 ~pqColorMapEditor () override
 

Protected Slots

void updatePanel ()
 slot called to update the visible widgets. More...
 
void renderViews ()
 render's view when transfer function is modified. More...
 
void saveAsDefault ()
 Save the current transfer function(s) as default. More...
 
void saveAsArrayDefault ()
 Save the current transfer function(s) as default for arrays with the same name as the selected array. More...
 
void restoreDefaults ()
 Restore the defaults (undoes effects of saveAsDefault()). More...
 
void setAutoUpdate (bool)
 called when AutoUpdate button is toggled. More...
 
void updateIfNeeded ()
 
void updateScalarBarButtons ()
 update the enabled state for show/edit scalar bar buttons. More...
 
void updateColorArraySelectorWidgets ()
 
void updateOpacityArraySelectorWidgets ()
 
void updateColor2ArraySelectorWidgets ()
 
void updateActive (bool forceUpdate)
 slot called to update the currently showing proxies. More...
 
void updateActive ()
 slot called to update the currently showing proxies. More...
 

Protected Member Functions

void setRepresentation (pqDataRepresentation *repr, bool forceUpdate=false)
 
void setDataRepresentation (pqDataRepresentation *repr, bool forceUpdate=false)
 
void setColorTransferFunctions (std::vector< vtkSMProxy *> ctfs)
 
void setColorTransferFunction (vtkSMProxy *ctf)
 

Detailed Description

pqColorMapEditor is a widget that can be used to edit the active color-map, if any.

The panel is implemented as an auto-generated panel (similar to the Properties panel) that shows the properties on the lookup-table proxy. Custom widgets such as pqColorOpacityEditorWidget, pqColorAnnotationsPropertyWidget, and others are used to control certain properties on the proxy.

Definition at line 24 of file pqColorMapEditor.h.

Constructor & Destructor Documentation

◆ pqColorMapEditor()

pqColorMapEditor::pqColorMapEditor ( QWidget *  parent = nullptr)

◆ ~pqColorMapEditor()

pqColorMapEditor::~pqColorMapEditor ( )
override

Member Function Documentation

◆ setSelectedPropertiesType

void pqColorMapEditor::setSelectedPropertiesType ( int  selectedPropertiesType)
slot

Set the selected properties type.

◆ updateActive [1/2]

void pqColorMapEditor::updateActive ( bool  forceUpdate)
protectedslot

slot called to update the currently showing proxies.

◆ updateActive [2/2]

void pqColorMapEditor::updateActive ( )
inlineprotectedslot

slot called to update the currently showing proxies.

Definition at line 45 of file pqColorMapEditor.h.

◆ updatePanel

void pqColorMapEditor::updatePanel ( )
protectedslot

slot called to update the visible widgets.

◆ renderViews

void pqColorMapEditor::renderViews ( )
protectedslot

render's view when transfer function is modified.

◆ saveAsDefault

void pqColorMapEditor::saveAsDefault ( )
protectedslot

Save the current transfer function(s) as default.

◆ saveAsArrayDefault

void pqColorMapEditor::saveAsArrayDefault ( )
protectedslot

Save the current transfer function(s) as default for arrays with the same name as the selected array.

◆ restoreDefaults

void pqColorMapEditor::restoreDefaults ( )
protectedslot

Restore the defaults (undoes effects of saveAsDefault()).

◆ setAutoUpdate

void pqColorMapEditor::setAutoUpdate ( bool  )
protectedslot

called when AutoUpdate button is toggled.

◆ updateIfNeeded

void pqColorMapEditor::updateIfNeeded ( )
protectedslot

◆ setRepresentation()

void pqColorMapEditor::setRepresentation ( pqDataRepresentation repr,
bool  forceUpdate = false 
)
protected

◆ setDataRepresentation()

void pqColorMapEditor::setDataRepresentation ( pqDataRepresentation repr,
bool  forceUpdate = false 
)
inlineprotected

Definition at line 84 of file pqColorMapEditor.h.

◆ setColorTransferFunctions()

void pqColorMapEditor::setColorTransferFunctions ( std::vector< vtkSMProxy *>  ctfs)
protected

◆ setColorTransferFunction()

void pqColorMapEditor::setColorTransferFunction ( vtkSMProxy ctf)
inlineprotected

Definition at line 89 of file pqColorMapEditor.h.

◆ updateScalarBarButtons

void pqColorMapEditor::updateScalarBarButtons ( )
protectedslot

update the enabled state for show/edit scalar bar buttons.

◆ updateColorArraySelectorWidgets

void pqColorMapEditor::updateColorArraySelectorWidgets ( )
protectedslot

◆ updateOpacityArraySelectorWidgets

void pqColorMapEditor::updateOpacityArraySelectorWidgets ( )
protectedslot

◆ updateColor2ArraySelectorWidgets

void pqColorMapEditor::updateColor2ArraySelectorWidgets ( )
protectedslot

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