Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
pqShaderReplacementsComboBox Class Reference

This is a ComboBox that is used on the display tab to select available ShaderReplacements presets paths saved in vtkSMSettings. More...

#include <pqShaderReplacementsComboBox.h>

Inherits QComboBox.

Public Member Functions

 pqShaderReplacementsComboBox (QWidget *parent=nullptr)
 
 ~pqShaderReplacementsComboBox () override=default
 
int getPathIndex (const QString &presetPath) const
 Return the combobox entry index corresponding to the provided preset path. More...
 
void setPath (const QString &presetPath)
 Select the combobox entry corresponding to the provided path. More...
 
void populate ()
 Clear current combobox content and repopulate it with the shader replacement presets using the files declared in vtkSMSettings. More...
 

Static Public Attributes

static const char * ShaderReplacementPathsSettings
 Setting name of the variable that stores the paths of the presets. More...
 

Protected Member Functions

void showPopup () override
 

Detailed Description

This is a ComboBox that is used on the display tab to select available ShaderReplacements presets paths saved in vtkSMSettings.

Definition at line 14 of file pqShaderReplacementsComboBox.h.

Constructor & Destructor Documentation

◆ pqShaderReplacementsComboBox()

pqShaderReplacementsComboBox::pqShaderReplacementsComboBox ( QWidget *  parent = nullptr)

◆ ~pqShaderReplacementsComboBox()

pqShaderReplacementsComboBox::~pqShaderReplacementsComboBox ( )
overridedefault

Member Function Documentation

◆ getPathIndex()

int pqShaderReplacementsComboBox::getPathIndex ( const QString &  presetPath) const

Return the combobox entry index corresponding to the provided preset path.

Returned value is 0 if not found.

◆ setPath()

void pqShaderReplacementsComboBox::setPath ( const QString &  presetPath)

Select the combobox entry corresponding to the provided path.

◆ populate()

void pqShaderReplacementsComboBox::populate ( )

Clear current combobox content and repopulate it with the shader replacement presets using the files declared in vtkSMSettings.

◆ showPopup()

void pqShaderReplacementsComboBox::showPopup ( )
overrideprotected

Member Data Documentation

◆ ShaderReplacementPathsSettings

const char* pqShaderReplacementsComboBox::ShaderReplacementPathsSettings
static

Setting name of the variable that stores the paths of the presets.

Definition at line 43 of file pqShaderReplacementsComboBox.h.


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