ParaView
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions
pqPQLookupTableManager Class Reference

pqPQLookupTableManager is an implementation specific to ParaView. More...

#include <pqPQLookupTableManager.h>

Inheritance diagram for pqPQLookupTableManager:
Inheritance graph
[legend]
Collaboration diagram for pqPQLookupTableManager:
Collaboration graph
[legend]

List of all members.

Public Slots

virtual void updateLookupTableScalarRanges ()
 Called to update scalar ranges of all lookup tables.

Public Member Functions

 pqPQLookupTableManager (QObject *parent=0)
virtual ~pqPQLookupTableManager ()
virtual pqScalarsToColorsgetLookupTable (pqServer *server, const QString &arrayname, int number_of_components, int component)
 Get a LookupTable for the array with name arrayname and component.
virtual pqScalarOpacityFunctiongetScalarOpacityFunction (pqServer *server, const QString &arrayname, int number_of_components, int component)
 Returns the pqScalarOpacityFunction object for the piecewise function used to map scalars to opacity.
virtual void saveLUTAsDefault (pqScalarsToColors *)
 Saves the state of the lut/opacity-function so that the next time a new LUT/opacity-function is created, it will have the same state as this one.
virtual void saveOpacityFunctionAsDefault (pqScalarOpacityFunction *)
virtual void saveScalarBarAsDefault (pqScalarBarRepresentation *)
 save the state of the scalar bar, so that the next time a new scalar bar is created its properties are setup using the defaults specified.
virtual bool getLookupTableProperties (pqScalarsToColors *lut, QString &arrayname, int &numComponents, int &component)
 Used to get the array the lut is associated with.

Static Public Member Functions

static const char * DEFAULT_LOOKUPTABLE_SETTING_KEY ()
 Setting key used to save the default lookup table.
static const char * DEFAULT_OPACITYFUNCTION_SETTING_KEY ()
 Setting key used to save the default opacity function.
static const char * DEFAULT_SCALARBAR_SETTING_KEY ()

Protected Member Functions

virtual void onAddLookupTable (pqScalarsToColors *lut)
 Called when a new LUT pq object is created.
virtual void onRemoveLookupTable (pqScalarsToColors *lut)
 Called when a LUT is removed.
void setLUTDefaultState (vtkSMProxy *lut)
 set default property values for LUT.
virtual void onAddOpacityFunction (pqScalarOpacityFunction *opFunc)
 Called when a new ScalarOpacityFunction pq object is created.
virtual void onRemoveOpacityFunction (pqScalarOpacityFunction *opFunc)
 Called when a ScalarOpacityFunction is removed.
void setOpacityFunctionDefaultState (vtkSMProxy *opFunc)
 set default property values for ScalarOpacityFunction.
pqScalarsToColorscreateLookupTable (pqServer *server, const QString &arrayname, int number_of_components, int component)
 creates a new LUT.
pqScalarOpacityFunctioncreateOpacityFunction (pqServer *server, const QString &arrayname, int number_of_components, int component)
 Returns the proxy for the piecewise function used to map scalars to opacity.
virtual void initialize (pqScalarBarRepresentation *)
 called when a new scalar is created so that subclasses have a change to change the default values as needed.

Detailed Description

pqPQLookupTableManager is an implementation specific to ParaView.

A lookup table is shared among all arrays with same name and same number of components.

Definition at line 43 of file pqPQLookupTableManager.h.


Constructor & Destructor Documentation

pqPQLookupTableManager::pqPQLookupTableManager ( QObject *  parent = 0)
virtual pqPQLookupTableManager::~pqPQLookupTableManager ( ) [virtual]

Member Function Documentation

virtual pqScalarsToColors* pqPQLookupTableManager::getLookupTable ( pqServer server,
const QString &  arrayname,
int  number_of_components,
int  component 
) [virtual]

Get a LookupTable for the array with name arrayname and component.

component = -1 represents magnitude. This subclass associates a LUT with arrayname:component pair. If none exists, a new one will be created.

Implements pqLookupTableManager.

virtual pqScalarOpacityFunction* pqPQLookupTableManager::getScalarOpacityFunction ( pqServer server,
const QString &  arrayname,
int  number_of_components,
int  component 
) [virtual]

Returns the pqScalarOpacityFunction object for the piecewise function used to map scalars to opacity.

Implements pqLookupTableManager.

virtual void pqPQLookupTableManager::saveLUTAsDefault ( pqScalarsToColors ) [virtual]

Saves the state of the lut/opacity-function so that the next time a new LUT/opacity-function is created, it will have the same state as this one.

Implements pqLookupTableManager.

virtual void pqPQLookupTableManager::saveOpacityFunctionAsDefault ( pqScalarOpacityFunction ) [virtual]

Implements pqLookupTableManager.

virtual void pqPQLookupTableManager::saveScalarBarAsDefault ( pqScalarBarRepresentation ) [virtual]

save the state of the scalar bar, so that the next time a new scalar bar is created its properties are setup using the defaults specified.

Implements pqLookupTableManager.

virtual bool pqPQLookupTableManager::getLookupTableProperties ( pqScalarsToColors lut,
QString &  arrayname,
int numComponents,
int component 
) [virtual]

Used to get the array the lut is associated with.

Return false if no such association exists.

Implements pqLookupTableManager.

static const char* pqPQLookupTableManager::DEFAULT_LOOKUPTABLE_SETTING_KEY ( ) [inline, static]

Setting key used to save the default lookup table.

Definition at line 78 of file pqPQLookupTableManager.h.

static const char* pqPQLookupTableManager::DEFAULT_OPACITYFUNCTION_SETTING_KEY ( ) [inline, static]

Setting key used to save the default opacity function.

Definition at line 84 of file pqPQLookupTableManager.h.

static const char* pqPQLookupTableManager::DEFAULT_SCALARBAR_SETTING_KEY ( ) [inline, static]

Definition at line 90 of file pqPQLookupTableManager.h.

virtual void pqPQLookupTableManager::updateLookupTableScalarRanges ( ) [virtual, slot]

Called to update scalar ranges of all lookup tables.

Implements pqLookupTableManager.

virtual void pqPQLookupTableManager::onAddLookupTable ( pqScalarsToColors lut) [protected, virtual]

Called when a new LUT pq object is created.

This happens as a result of either the GUI or python registering a LUT proxy.

Implements pqLookupTableManager.

virtual void pqPQLookupTableManager::onRemoveLookupTable ( pqScalarsToColors lut) [protected, virtual]

Called when a LUT is removed.

Implements pqLookupTableManager.

void pqPQLookupTableManager::setLUTDefaultState ( vtkSMProxy lut) [protected]

set default property values for LUT.

virtual void pqPQLookupTableManager::onAddOpacityFunction ( pqScalarOpacityFunction opFunc) [protected, virtual]

Called when a new ScalarOpacityFunction pq object is created.

This happens as a result of either the GUI or python registering a ScalarOpacityFunction proxy.

Reimplemented from pqLookupTableManager.

virtual void pqPQLookupTableManager::onRemoveOpacityFunction ( pqScalarOpacityFunction opFunc) [protected, virtual]

Called when a ScalarOpacityFunction is removed.

Reimplemented from pqLookupTableManager.

void pqPQLookupTableManager::setOpacityFunctionDefaultState ( vtkSMProxy opFunc) [protected]

set default property values for ScalarOpacityFunction.

pqScalarsToColors* pqPQLookupTableManager::createLookupTable ( pqServer server,
const QString &  arrayname,
int  number_of_components,
int  component 
) [protected]

creates a new LUT.

pqScalarOpacityFunction* pqPQLookupTableManager::createOpacityFunction ( pqServer server,
const QString &  arrayname,
int  number_of_components,
int  component 
) [protected]

Returns the proxy for the piecewise function used to map scalars to opacity.

virtual void pqPQLookupTableManager::initialize ( pqScalarBarRepresentation ) [protected, virtual]

called when a new scalar is created so that subclasses have a change to change the default values as needed.

Reimplemented from pqLookupTableManager.


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