|
ParaView
|
Display a transfer function for editing. More...
#include <vtkTransferFunctionViewer.h>


Display a transfer function for editing.
vtkTransferFunctionViewer bundles together several classes (including a vtkRenderer and vtkRenderWindow) for displaying a transfer function editor. It invokes an InteractionEvent when the scalar range shown in the transfer function editor changes.
This viewer invokes the following events from vtkCommand: InteractionEvent - Lets you know the visible scalar range of the data has changed because of panning, zooming, or resetting to the whole scalar range. PickEvent - Lets you know a transfer function element has been left- clicked so you can display a color chooser to select a color for it. WidgetValueChangedEvent - Lets you know that a transfer function node has been moved. EndInteractionEvent - Lets you know the left mouse button has been released after moving a node. WidgetModifiedEvent - Lets you know that the active node has changed. PlacePointEvent - Lets you know a node has been added or deleted.
Definition at line 56 of file vtkTransferFunctionViewer.h.
Definition at line 106 of file vtkTransferFunctionViewer.h.
| vtkTransferFunctionViewer::vtkTransferFunctionViewer | ( | ) | [protected] |
| vtkTransferFunctionViewer::~vtkTransferFunctionViewer | ( | ) | [protected] |
| static vtkTransferFunctionViewer* vtkTransferFunctionViewer::New | ( | ) | [static] |
Reimplemented from vtkObject.
| virtual const char* vtkTransferFunctionViewer::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkObject.
| static int vtkTransferFunctionViewer::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkObject.
| virtual int vtkTransferFunctionViewer::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkObject.
| static vtkTransferFunctionViewer* vtkTransferFunctionViewer::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkObject.
| void vtkTransferFunctionViewer::PrintSelf | ( | ostream & | os, |
| vtkIndent | indent | ||
| ) | [virtual] |
Reimplemented from vtkObject.
Set the background color of the rendering window.
| void vtkTransferFunctionViewer::SetBackgroundColor | ( | double | color[3] | ) | [inline] |
Set the background color of the rendering window.
Definition at line 66 of file vtkTransferFunctionViewer.h.
Set the color of the histogram. Set the transfer function editor type before setting the color of the histogram.
| void vtkTransferFunctionViewer::SetHistogramColor | ( | double | color[3] | ) | [inline] |
Set the color of the histogram. Set the transfer function editor type before setting the color of the histogram.
Definition at line 74 of file vtkTransferFunctionViewer.h.
| void vtkTransferFunctionViewer::SetSize | ( | int | size[2] | ) | [inline] |
Set/get the size of the rendering window.
Definition at line 81 of file vtkTransferFunctionViewer.h.
| int* vtkTransferFunctionViewer::GetSize | ( | ) |
Set/get the size of the rendering window.
| void vtkTransferFunctionViewer::SetBorderWidth | ( | int | width | ) |
Set the width (in pixels) of the border around the transfer function editor.
| void vtkTransferFunctionViewer::Render | ( | ) |
Render the transfer function editor.
| void vtkTransferFunctionViewer::SetTransferFunctionEditorType | ( | int | type | ) |
Specify the type of transfer function editor to dipslay in this viewer.
| void vtkTransferFunctionViewer::SetTransferFunctionEditorTypeToSimple1D | ( | ) | [inline] |
Specify the type of transfer function editor to dipslay in this viewer.
Definition at line 97 of file vtkTransferFunctionViewer.h.
| void vtkTransferFunctionViewer::SetTransferFunctionEditorTypeToShapes1D | ( | ) | [inline] |
Specify the type of transfer function editor to dipslay in this viewer.
Definition at line 99 of file vtkTransferFunctionViewer.h.
| void vtkTransferFunctionViewer::SetTransferFunctionEditorTypeToShapes2D | ( | ) | [inline] |
Specify the type of transfer function editor to dipslay in this viewer.
Definition at line 101 of file vtkTransferFunctionViewer.h.
| void vtkTransferFunctionViewer::SetModificationType | ( | int | type | ) |
Set the type of function to modify (color, opacity, or both). Set the editor type before setting the modification type.
| void vtkTransferFunctionViewer::SetModificationTypeToColor | ( | ) |
Set the type of function to modify (color, opacity, or both). Set the editor type before setting the modification type.
| void vtkTransferFunctionViewer::SetModificationTypeToOpacity | ( | ) |
Set the type of function to modify (color, opacity, or both). Set the editor type before setting the modification type.
| void vtkTransferFunctionViewer::SetModificationTypeToColorAndOpacity | ( | ) |
Set the type of function to modify (color, opacity, or both). Set the editor type before setting the modification type.
| void vtkTransferFunctionViewer::SetHistogram | ( | vtkRectilinearGrid * | histogram | ) |
Set the histogram to display behind the transfer function editor. The X coordinates of this vtkRectilinearGrid give the scalar range for each bin of the histogram. There is a cell array containing the number of scalar values per bin. Set the editor type before setting the histogram.
| void vtkTransferFunctionViewer::SetVisibleScalarRange | ( | double | range[2] | ) | [inline] |
Set the range of scalar values that will be shown in the rendering window. Set the type of transfer function editor to use before setting or getting the scalar range.
Definition at line 134 of file vtkTransferFunctionViewer.h.
Set the range of scalar values that will be shown in the rendering window. Set the type of transfer function editor to use before setting or getting the scalar range.
| void vtkTransferFunctionViewer::GetVisibleScalarRange | ( | double | range[2] | ) |
Set the range of scalar values that will be shown in the rendering window. Set the type of transfer function editor to use before setting or getting the scalar range.
| double* vtkTransferFunctionViewer::GetVisibleScalarRange | ( | ) |
Set the range of scalar values that will be shown in the rendering window. Set the type of transfer function editor to use before setting or getting the scalar range.
| void vtkTransferFunctionViewer::SetWholeScalarRange | ( | double | range[2] | ) | [inline] |
Set the whole range of possible scalar values. This will be used for resetting the viewer to show the whole scalar range when the input is not set. Set the type of transfer function editor to use before setting or getting the scalar range.
Definition at line 146 of file vtkTransferFunctionViewer.h.
Set the whole range of possible scalar values. This will be used for resetting the viewer to show the whole scalar range when the input is not set. Set the type of transfer function editor to use before setting or getting the scalar range.
| void vtkTransferFunctionViewer::GetWholeScalarRange | ( | double | range[2] | ) |
Set the whole range of possible scalar values. This will be used for resetting the viewer to show the whole scalar range when the input is not set. Set the type of transfer function editor to use before setting or getting the scalar range.
| double* vtkTransferFunctionViewer::GetWholeScalarRange | ( | ) |
Set the whole range of possible scalar values. This will be used for resetting the viewer to show the whole scalar range when the input is not set. Set the type of transfer function editor to use before setting or getting the scalar range.
| virtual vtkRenderer* vtkTransferFunctionViewer::GetRenderer | ( | ) | [virtual] |
Provide access to some of the underlying VTK objects.
| virtual vtkTransferFunctionEditorWidget* vtkTransferFunctionViewer::GetEditorWidget | ( | ) | [virtual] |
Provide access to some of the underlying VTK objects.
| virtual vtkRenderWindowInteractor* vtkTransferFunctionViewer::GetInteractor | ( | ) | [virtual] |
Provide access to some of the underlying VTK objects.
| virtual vtkRenderWindow* vtkTransferFunctionViewer::GetRenderWindow | ( | ) | [virtual] |
Provide access to some of the underlying VTK objects.
| void vtkTransferFunctionViewer::SetRenderWindow | ( | vtkRenderWindow * | win | ) |
Set the render window to be used in this viewer. One will be created automatically if you do not specify one.
| void vtkTransferFunctionViewer::SetInteractor | ( | vtkRenderWindowInteractor * | win | ) |
Set the render window to be used in this viewer. One will be created automatically if you do not specify one.
| void vtkTransferFunctionViewer::SetHistogramVisibility | ( | int | visibility | ) |
Determine whether a histogram will be displayed behind the transfer function editor.
| void vtkTransferFunctionViewer::SetShowColorFunctionInBackground | ( | int | visibility | ) |
Determine whether a gradient image showing the color function should be displayed in the background. Set the transfer function editor type before setting this value.
| void vtkTransferFunctionViewer::SetShowColorFunctionInHistogram | ( | int | visibility | ) |
Determine whether a gradient image showing the color function should be displayed in the histogram (if the histogram is visible). Set the transfer function editor type before setting this value.
| void vtkTransferFunctionViewer::SetShowColorFunctionOnLines | ( | int | visibility | ) |
Determine whether the color gradient should be displayed on the lines connecting the nodes of the transfer function editor. Set the transfer function editor type before setting this value.
Specify the color in which to display the lines connecting the nodes if they are not displaying the color gradient. Set the transfer function editor type before calling this method.
| void vtkTransferFunctionViewer::SetColorElementsByColorFunction | ( | int | color | ) |
Specify whether the node color should be determined by the color transfer function. Set the transfer function editor type before setting this value.
Set the color to use for nodes if not coloring them by the color transfer function. Set the transfer function editor type before calling this method.
| void vtkTransferFunctionViewer::SetElementLighting | ( | double | ambient, |
| double | diffuse, | ||
| double | specular, | ||
| double | specularPower | ||
| ) |
Specify the lighting parameters for the transfer function editor elements. Set the transfer function editor type before calling this method.
| void vtkTransferFunctionViewer::SetOpacityFunction | ( | vtkPiecewiseFunction * | function | ) |
Set/get the opacity function. Set the type of transfer function editor before trying to set or get the opacity function.
| vtkPiecewiseFunction* vtkTransferFunctionViewer::GetOpacityFunction | ( | ) |
Set/get the opacity function. Set the type of transfer function editor before trying to set or get the opacity function.
| void vtkTransferFunctionViewer::SetColorFunction | ( | vtkColorTransferFunction * | function | ) |
Set/get the color function. Set the type of transfer function editor before trying to set or get the color function.
| vtkColorTransferFunction* vtkTransferFunctionViewer::GetColorFunction | ( | ) |
Set/get the color function. Set the type of transfer function editor before trying to set or get the color function.
| void vtkTransferFunctionViewer::SetAllowInteriorElements | ( | int | allow | ) |
Toggle whether to allow interior nodes in the transfer function. Set the type of transfer function editor before trying to set this value.
Set/get the opacity of a particular transfer function element.
Set/get the opacity of a particular transfer function element.
| void vtkTransferFunctionViewer::SetElementRGBColor | ( | unsigned int | idx, |
| double | r, | ||
| double | g, | ||
| double | b | ||
| ) |
Set/get the RGB color of a particular transfer function element.
Set/get the RGB color of a particular transfer function element.
| void vtkTransferFunctionViewer::SetElementHSVColor | ( | unsigned int | idx, |
| double | h, | ||
| double | s, | ||
| double | v | ||
| ) |
Set/get the HSV color of a particular transfer function element.
Set/get the HSV color of a particular transfer function element.
Set/get the scalar value of a particular transfer function element.
Set/get the scalar value of a particular transfer function element.
| void vtkTransferFunctionViewer::SetCurrentElementId | ( | unsigned int | idx | ) |
Set/get the current element Id.
| unsigned int vtkTransferFunctionViewer::GetCurrentElementId | ( | ) |
Set/get the current element Id.
| void vtkTransferFunctionViewer::MoveToPreviousElement | ( | ) |
Move to the previous/next transfer function element.
| void vtkTransferFunctionViewer::MoveToNextElement | ( | ) |
Move to the previous/next transfer function element.
| void vtkTransferFunctionViewer::SetColorSpace | ( | int | space | ) |
Set the color space. (RGB = 0, HSV = 1, HSV with wrapping = 2, CIELAB = 3, Diverging = 4)
| void vtkTransferFunctionViewer::SetLockEndPoints | ( | int | lock | ) |
Set whether the endpoint nodes may or may not change scalar values and/or be deleted. By default moving and deleting are allowed. Set the transfer function editor type before calling this method. It only has an effect on the simple 1D case.
| virtual void vtkTransferFunctionViewer::InstallPipeline | ( | ) | [protected, virtual] |
| virtual void vtkTransferFunctionViewer::UnInstallPipeline | ( | ) | [protected, virtual] |
vtkRenderWindow* vtkTransferFunctionViewer::RenderWindow [protected] |
Definition at line 282 of file vtkTransferFunctionViewer.h.
vtkRenderer* vtkTransferFunctionViewer::Renderer [protected] |
Definition at line 283 of file vtkTransferFunctionViewer.h.
Definition at line 284 of file vtkTransferFunctionViewer.h.
Definition at line 285 of file vtkTransferFunctionViewer.h.
Definition at line 286 of file vtkTransferFunctionViewer.h.
Definition at line 287 of file vtkTransferFunctionViewer.h.
vtkRectilinearGrid* vtkTransferFunctionViewer::Histogram [protected] |
Definition at line 288 of file vtkTransferFunctionViewer.h.
1.7.5.1