Signals | Public Member Functions | Properties | List of all members
pqColorAnnotationsPropertyWidget Class Reference

pqColorAnnotationsPropertyWidget is used to edit the Annotations property on the "PVLookupTable" proxy. More...

#include <pqColorAnnotationsPropertyWidget.h>

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

Signals

void annotationsChanged ()
 Fired when the annotations are changed. More...
 
void indexedColorsChanged ()
 Fired when the indexed colors are changed. More...
 
void indexedOpacitiesChanged ()
 Fired when the indexed opacities are changed. More...
 
void opacityMappingChanged ()
 Fired when the opacity mapping is changed. More...
 
- Signals inherited from pqPropertyWidget
void viewChanged (pqView *view)
 This signal is emitted when the current view changes. More...
 
void changeAvailable ()
 This signal is fired as soon as the user starts editing in the widget. More...
 
void changeFinished ()
 This signal is fired as soon as the user is done with making an atomic change. More...
 
void restartRequired ()
 Indicates that a restart of the program is required for the setting to take effect. More...
 

Public Member Functions

 pqColorAnnotationsPropertyWidget (vtkSMProxy *proxy, vtkSMPropertyGroup *smgroup, QWidget *parent=nullptr)
 
 ~pqColorAnnotationsPropertyWidget () override
 
QList< QVariant > annotations () const
 Get/Set the annotations. More...
 
void setAnnotations (const QList< QVariant > &)
 Get/Set the annotations. More...
 
QList< QVariant > indexedColors () const
 Get/Set the indexed colors. More...
 
void setIndexedColors (const QList< QVariant > &)
 Get/Set the indexed colors. More...
 
QList< QVariant > indexedOpacities () const
 Get/Set the indexed opacities. More...
 
void setIndexedOpacities (const QList< QVariant > &)
 Get/Set the indexed opacities. More...
 
QVariant opacityMapping () const
 Get/Set the opacity mapping status. More...
 
void setOpacityMapping (const QVariant &)
 Get/Set the opacity mapping status. More...
 
- Public Member Functions inherited from pqPropertyWidget
 pqPropertyWidget (vtkSMProxy *proxy, QWidget *parent=nullptr)
 
 ~pqPropertyWidget () override
 
virtual void apply ()
 
virtual void reset ()
 
virtual void updateWidget (bool showing_advanced_properties)
 
pqViewview () const
 
vtkSMProxyproxy () const
 
vtkSMPropertyproperty () const
 
virtual char * panelVisibility () const
 Forward calls to vtkSMProperty. More...
 
virtual void setPanelVisibility (const char *vis)
 
virtual bool isSingleRowItem () const
 Determines if the PropertyWidget must be constructed using a single row. More...
 
bool showLabel () const
 
const QList< QPointer< pqPropertyWidgetDecorator > > & decorators () const
 Provides access to the decorators for this widget. More...
 
virtual void setReadOnly (bool readOnly)
 Set widget in read-only mode. More...
 
void setProperty (vtkSMProperty *property)
 
virtual void select ()
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
virtual void selectPort (int portIndex)
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
virtual void deselect ()
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
bool isSelected () const
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 

Properties

QList< QVariant > annotations
 
QList< QVariant > indexedColors
 
QList< QVariant > indexedOpacities
 
QVariant opacityMapping
 

Additional Inherited Members

- Public Slots inherited from pqPropertyWidget
virtual void setView (pqView *)
 called to set the active view. More...
 
- Static Public Member Functions inherited from pqPropertyWidget
template<class T >
static QString getXMLName (T *object)
 Description: This static utility method returns the XML name for an object as a QString. More...
 
static QString getTooltip (vtkSMProperty *property)
 Returns the tooltip to use for the property. More...
 
static int hintsWidgetHeightNumberOfRows (vtkPVXMLElement *hints, int defaultValue=10)
 Helper method to return value from WidgetHeight XML hint, if any. More...
 
static std::vector< std::stringparseComponentLabels (vtkPVXMLElement *hints, unsigned int elemCount=0)
 Parse a XML element as a list of label to use for this widget. More...
 
- Protected Member Functions inherited from pqPropertyWidget
void addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1)
 
void addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1)
 
void removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1)
 
void removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1)
 
void setShowLabel (bool show)
 
void setChangeAvailableAsChangeFinished (bool status)
 For most pqPropertyWidget subclasses a changeAvailable() signal, corresponds to a changeFinished() signal. More...
 
void addDecorator (pqPropertyWidgetDecorator *)
 Register a decorator. More...
 
void removeDecorator (pqPropertyWidgetDecorator *)
 Unregisters a decorator. More...
 
pqPropertyLinkslinks ()
 Provides access to the pqPropertyLinks instance. More...
 

Detailed Description

pqColorAnnotationsPropertyWidget is used to edit the Annotations property on the "PVLookupTable" proxy.

The property group can comprise of two properties, Annotations and IndexedColors.

Definition at line 18 of file pqColorAnnotationsPropertyWidget.h.

Constructor & Destructor Documentation

◆ pqColorAnnotationsPropertyWidget()

pqColorAnnotationsPropertyWidget::pqColorAnnotationsPropertyWidget ( vtkSMProxy proxy,
vtkSMPropertyGroup smgroup,
QWidget *  parent = nullptr 
)

◆ ~pqColorAnnotationsPropertyWidget()

pqColorAnnotationsPropertyWidget::~pqColorAnnotationsPropertyWidget ( )
override

Member Function Documentation

◆ annotations()

QList<QVariant> pqColorAnnotationsPropertyWidget::annotations ( ) const

Get/Set the annotations.

This is a list generated by flattening 2-tuples where 1st value is the annotated value and second is the annotation text.

◆ setAnnotations()

void pqColorAnnotationsPropertyWidget::setAnnotations ( const QList< QVariant > &  )

Get/Set the annotations.

This is a list generated by flattening 2-tuples where 1st value is the annotated value and second is the annotation text.

◆ indexedColors()

QList<QVariant> pqColorAnnotationsPropertyWidget::indexedColors ( ) const

Get/Set the indexed colors.

This is a list generated by flattening 3-tuples (r,g,b).

◆ setIndexedColors()

void pqColorAnnotationsPropertyWidget::setIndexedColors ( const QList< QVariant > &  )

Get/Set the indexed colors.

This is a list generated by flattening 3-tuples (r,g,b).

◆ indexedOpacities()

QList<QVariant> pqColorAnnotationsPropertyWidget::indexedOpacities ( ) const

Get/Set the indexed opacities.

◆ setIndexedOpacities()

void pqColorAnnotationsPropertyWidget::setIndexedOpacities ( const QList< QVariant > &  )

Get/Set the indexed opacities.

◆ opacityMapping()

QVariant pqColorAnnotationsPropertyWidget::opacityMapping ( ) const

Get/Set the opacity mapping status.

◆ setOpacityMapping()

void pqColorAnnotationsPropertyWidget::setOpacityMapping ( const QVariant &  )

Get/Set the opacity mapping status.

◆ annotationsChanged

void pqColorAnnotationsPropertyWidget::annotationsChanged ( )
signal

Fired when the annotations are changed.

◆ indexedColorsChanged

void pqColorAnnotationsPropertyWidget::indexedColorsChanged ( )
signal

Fired when the indexed colors are changed.

◆ indexedOpacitiesChanged

void pqColorAnnotationsPropertyWidget::indexedOpacitiesChanged ( )
signal

Fired when the indexed opacities are changed.

◆ opacityMappingChanged

void pqColorAnnotationsPropertyWidget::opacityMappingChanged ( )
signal

Fired when the opacity mapping is changed.

Property Documentation

◆ annotations

QList<QVariant> pqColorAnnotationsPropertyWidget::annotations
readwrite

Definition at line 20 of file pqColorAnnotationsPropertyWidget.h.

◆ indexedColors

QList<QVariant> pqColorAnnotationsPropertyWidget::indexedColors
readwrite

Definition at line 21 of file pqColorAnnotationsPropertyWidget.h.

◆ indexedOpacities

QList<QVariant> pqColorAnnotationsPropertyWidget::indexedOpacities
readwrite

Definition at line 22 of file pqColorAnnotationsPropertyWidget.h.

◆ opacityMapping

QVariant pqColorAnnotationsPropertyWidget::opacityMapping
readwrite

Definition at line 23 of file pqColorAnnotationsPropertyWidget.h.


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