Public Slots | Signals | Public Member Functions | Protected Slots | List of all members
pqTransferFunction2DWidget Class Reference

pqTransferFunction2DWidget provides a widget that can edit control boxes in a 2D histogram to represent a 2D transfer function. More...

#include <pqTransferFunction2DWidget.h>

Inherits QWidget.

Public Slots

void render ()
 re-renders the transfer function view. More...
 

Signals

void transferFunctionModified ()
 Signal fired to indicate that the transfer function was modified either by adding/deleting/editing 2D boxes. More...
 

Public Member Functions

 pqTransferFunction2DWidget (QWidget *parent=nullptr)
 
 ~pqTransferFunction2DWidget () override
 
vtkChartchart () const
 Get access to the internal chart. More...
 
vtkPVTransferFunction2DtransferFunction () const
 Get access to the 2D transfer function passed to initialize. More...
 
vtkImageDatahistogram () const
 Set/Get vtkImageData used to initialize the 2D histogram. More...
 
virtual void setHistogram (vtkImageData *)
 Set/Get vtkImageData used to initialize the 2D histogram. More...
 
void initialize (vtkPVTransferFunction2D *tf2d)
 Initialize the pqTransferFunction2DWidget with a default box item. More...
 
bool isInitialized ()
 Initialize the pqTransferFunction2DWidget with a default box item. More...
 

Protected Slots

void showUsageStatus ()
 Show usage info in the application status bar. More...
 

Detailed Description

pqTransferFunction2DWidget provides a widget that can edit control boxes in a 2D histogram to represent a 2D transfer function.

It is used by the pqColorOpacityEditorWidget, for example, to show 2D transfer function editor for color and opacity for a PVLookupTable proxy.

Definition at line 23 of file pqTransferFunction2DWidget.h.

Constructor & Destructor Documentation

◆ pqTransferFunction2DWidget()

pqTransferFunction2DWidget::pqTransferFunction2DWidget ( QWidget *  parent = nullptr)

◆ ~pqTransferFunction2DWidget()

pqTransferFunction2DWidget::~pqTransferFunction2DWidget ( )
override

Member Function Documentation

◆ histogram()

vtkImageData* pqTransferFunction2DWidget::histogram ( ) const

Set/Get vtkImageData used to initialize the 2D histogram.

◆ setHistogram()

virtual void pqTransferFunction2DWidget::setHistogram ( vtkImageData )
virtual

Set/Get vtkImageData used to initialize the 2D histogram.

◆ initialize()

void pqTransferFunction2DWidget::initialize ( vtkPVTransferFunction2D tf2d)

Initialize the pqTransferFunction2DWidget with a default box item.

◆ isInitialized()

bool pqTransferFunction2DWidget::isInitialized ( )

Initialize the pqTransferFunction2DWidget with a default box item.

◆ chart()

vtkChart* pqTransferFunction2DWidget::chart ( ) const

Get access to the internal chart.

◆ transferFunction()

vtkPVTransferFunction2D* pqTransferFunction2DWidget::transferFunction ( ) const

Get access to the 2D transfer function passed to initialize.

◆ render

void pqTransferFunction2DWidget::render ( )
slot

re-renders the transfer function view.

This doesn't render immediately, schedules a render.

◆ transferFunctionModified

void pqTransferFunction2DWidget::transferFunctionModified ( )
signal

Signal fired to indicate that the transfer function was modified either by adding/deleting/editing 2D boxes.

◆ showUsageStatus

void pqTransferFunction2DWidget::showUsageStatus ( )
protectedslot

Show usage info in the application status bar.


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