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

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

#include <pqTextureComboBox.h>

Inherits QComboBox.

Public Slots

void setRepresentation (pqDataRepresentation *repr)
 Set the representation. More...
 
void setRenderView (pqRenderView *rview)
 
void reload ()
 Forces a reload of the widget. More...
 

Public Member Functions

 pqTextureComboBox (QWidget *parent=0)
 
virtual ~pqTextureComboBox ()
 

Protected Slots

virtual void updateEnableState ()
 Update the enable state of the widget. More...
 
void onActivated (int)
 Called when user activates an item. More...
 
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. More...
 
void loadTexture ()
 Prompts the user to load a texture file. More...
 
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::pqTextureComboBox ( QWidget *  parent = 0)

§ ~pqTextureComboBox()

virtual pqTextureComboBox::~pqTextureComboBox ( )
virtual

Member Function Documentation

§ setRepresentation

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.

§ setRenderView

void pqTextureComboBox::setRenderView ( pqRenderView rview)
slot

§ reload

void pqTextureComboBox::reload ( )
slot

Forces a reload of the widget.

Generally one does not need to call this method explicity.

§ updateEnableState

virtual void pqTextureComboBox::updateEnableState ( )
protectedvirtualslot

Update the enable state of the widget.

§ onActivated

void pqTextureComboBox::onActivated ( int  )
protectedslot

Called when user activates an item.

§ updateFromProperty

void pqTextureComboBox::updateFromProperty ( )
protectedslot

§ updateTextures

void pqTextureComboBox::updateTextures ( )
protectedslot

§ proxyRegistered

void pqTextureComboBox::proxyRegistered ( const QString &  groupname)
protectedslot

§ proxyUnRegistered

void pqTextureComboBox::proxyUnRegistered ( const QString &  group,
const QString &  ,
vtkSMProxy *  proxy 
)
protectedslot

§ getTextureProxy()

vtkSMProxy* pqTextureComboBox::getTextureProxy ( const QVariant &  data) const
protected

Get the texture proxy associated with the given data.

§ loadTexture() [1/2]

void pqTextureComboBox::loadTexture ( )
protected

Prompts the user to load a texture file.

§ loadTexture() [2/2]

bool pqTextureComboBox::loadTexture ( const QString &  filename)
protected

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