|
ParaView
|
This is a ComboBox that is used on the display tab to select available textures. More...
#include <pqTextureComboBox.h>
Public Slots | |
| void | setRepresentation (pqDataRepresentation *repr) |
| Set the representation. | |
| void | setRenderView (pqRenderView *rview) |
| void | reload () |
| Forces a reload of the widget. | |
Public Member Functions | |
| pqTextureComboBox (QWidget *parent=0) | |
| virtual | ~pqTextureComboBox () |
Protected Slots | |
| virtual void | updateEnableState () |
| Update the enable state of the widget. | |
| void | onActivated (int) |
| Called when user activates an item. | |
| void | updateFromProperty () |
| void | updateTextures () |
| void | proxyRegistered (const QString &groupname) |
| void | proxyUnRegistered (const QString &group, const QString &, vtkSMProxy *proxy) |
Protected Member Functions | |
| vtkSMProxy * | getTextureProxy (const QVariant &data) const |
| Get the texture proxy associated with the given data. | |
| void | loadTexture () |
| Prompts the user to load a texture file. | |
| bool | loadTexture (const QString &filename) |
This is a ComboBox that is used on the display tab to select available textures.
It checks whether current representation has texture coordinates, if not, the widget will be disabled automatically. It also provides the user with an option to load new images as textures.
Definition at line 47 of file pqTextureComboBox.h.
| pqTextureComboBox::pqTextureComboBox | ( | QWidget * | parent = 0 | ) |
| virtual pqTextureComboBox::~pqTextureComboBox | ( | ) | [virtual] |
| void pqTextureComboBox::setRepresentation | ( | pqDataRepresentation * | repr | ) | [slot] |
Set the representation.
We need the representation, since we need to update the enable state of the widget depending on whether texture coordinates are available.
| void pqTextureComboBox::setRenderView | ( | pqRenderView * | rview | ) | [slot] |
| void pqTextureComboBox::reload | ( | ) | [slot] |
Forces a reload of the widget.
Generally one does not need to call this method explicity.
| virtual void pqTextureComboBox::updateEnableState | ( | ) | [protected, virtual, slot] |
Update the enable state of the widget.
| void pqTextureComboBox::onActivated | ( | int | ) | [protected, slot] |
Called when user activates an item.
| void pqTextureComboBox::updateFromProperty | ( | ) | [protected, slot] |
| void pqTextureComboBox::updateTextures | ( | ) | [protected, slot] |
| void pqTextureComboBox::proxyRegistered | ( | const QString & | groupname | ) | [protected, slot] |
| void pqTextureComboBox::proxyUnRegistered | ( | const QString & | group, |
| const QString & | , | ||
| vtkSMProxy * | proxy | ||
| ) | [protected, slot] |
| vtkSMProxy* pqTextureComboBox::getTextureProxy | ( | const QVariant & | data | ) | const [protected] |
Get the texture proxy associated with the given data.
| void pqTextureComboBox::loadTexture | ( | ) | [protected] |
Prompts the user to load a texture file.
| bool pqTextureComboBox::loadTexture | ( | const QString & | filename | ) | [protected] |
1.7.5.1