ParaView
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions
pqTextureComboBox Class Reference

This is a ComboBox that is used on the display tab to select available textures. More...

#include <pqTextureComboBox.h>

List of all members.

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

vtkSMProxygetTextureProxy (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)

Detailed Description

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.


Constructor & Destructor Documentation

pqTextureComboBox::pqTextureComboBox ( QWidget *  parent = 0)
virtual pqTextureComboBox::~pqTextureComboBox ( ) [virtual]

Member Function Documentation

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]

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