ParaView
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
vtkTransferFunctionEditorWidgetSimple1D Class Reference

a 3D widget for manipulating a transfer function More...

#include <vtkTransferFunctionEditorWidgetSimple1D.h>

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

List of all members.

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void CreateDefaultRepresentation ()
virtual void SetEnabled (int enabling)
virtual void Configure (int size[2])
virtual void OnChar ()
virtual void SetColorSpace (int space)
virtual void UpdateFromTransferFunctions ()
virtual void SetModificationType (int type)
virtual void SetLockEndPoints (int)
virtual void SetBorderWidth (int width)
virtual void SetVisibleScalarRange (double min, double max)
virtual void SetVisibleScalarRange (double range[2])
virtual void SetElementOpacity (unsigned int idx, double opacity)
virtual double GetElementOpacity (unsigned int idx)
virtual void SetElementRGBColor (unsigned int idx, double r, double g, double b)
virtual int GetElementRGBColor (unsigned int idx, double color[3])
virtual void SetElementHSVColor (unsigned int idx, double h, double s, double v)
virtual int GetElementHSVColor (unsigned int idx, double color[3])
virtual void SetElementScalar (unsigned int idx, double value)
virtual double GetElementScalar (unsigned int idx)

Static Public Member Functions

static
vtkTransferFunctionEditorWidgetSimple1D
New ()
static int IsTypeOf (const char *type)
static
vtkTransferFunctionEditorWidgetSimple1D
SafeDownCast (vtkObject *o)

Protected Types

enum  { Start = 0, PlacingNode, MovingNode }

Protected Member Functions

 vtkTransferFunctionEditorWidgetSimple1D ()
 ~vtkTransferFunctionEditorWidgetSimple1D ()
void RemoveAllNodes ()
void AddNewNode (int x, int y)
void AddNewNode (double scalar)
void AddOpacityPoint (double x, double y)
void RemoveOpacityPoint (unsigned int id)
void AddColorPoint (double x)
void RepositionColorPoint (unsigned int idx, double scalar)
void RemoveColorPoint (unsigned int id)
void ClampToWholeRange (double pos[2], int size[2], double &scalar)
int NodeExists (double scalar)
void RecomputeNodePositions (double oldRange[2], double newRange[2])
void RecomputeNodePositions (int oldSize[2], int newSize[2], int changeBorder=0, int oldWidth=0, int newWidth=0)
void RemoveNode (unsigned int id)

Static Protected Member Functions

static void AddNodeAction (vtkAbstractWidget *)
static void EndSelectAction (vtkAbstractWidget *)
static void MoveNodeAction (vtkAbstractWidget *)
static vtkHandleWidgetCreateHandleWidget (vtkTransferFunctionEditorWidgetSimple1D *self, vtkTransferFunctionEditorRepresentationSimple1D *rep, unsigned int currentHandleNumber)

Protected Attributes

vtkNodeList * Nodes
int WidgetState
double InitialMinimumColor [3]
double InitialMaximumColor [3]
int LockEndPoints
int LeftClickEventPosition [2]
int LeftClickCount

Detailed Description

a 3D widget for manipulating a transfer function

vtkTransferFunctionEditorWidgetSimple1D is a 3D widget used for manipulating 1D transfer functions using nodes.

Definition at line 32 of file vtkTransferFunctionEditorWidgetSimple1D.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
Start 
PlacingNode 
MovingNode 

Definition at line 125 of file vtkTransferFunctionEditorWidgetSimple1D.h.


Constructor & Destructor Documentation

vtkTransferFunctionEditorWidgetSimple1D::vtkTransferFunctionEditorWidgetSimple1D ( ) [protected]
vtkTransferFunctionEditorWidgetSimple1D::~vtkTransferFunctionEditorWidgetSimple1D ( ) [protected]

Member Function Documentation

static vtkTransferFunctionEditorWidgetSimple1D* vtkTransferFunctionEditorWidgetSimple1D::New ( ) [static]

Reimplemented from vtkAbstractWidget.

virtual const char* vtkTransferFunctionEditorWidgetSimple1D::GetClassName ( ) [virtual]

Reimplemented from vtkTransferFunctionEditorWidget1D.

static int vtkTransferFunctionEditorWidgetSimple1D::IsTypeOf ( const char *  type) [static]

Reimplemented from vtkTransferFunctionEditorWidget1D.

virtual int vtkTransferFunctionEditorWidgetSimple1D::IsA ( const char *  type) [virtual]

Reimplemented from vtkTransferFunctionEditorWidget1D.

static vtkTransferFunctionEditorWidgetSimple1D* vtkTransferFunctionEditorWidgetSimple1D::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkTransferFunctionEditorWidget1D.

void vtkTransferFunctionEditorWidgetSimple1D::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkTransferFunctionEditorWidget1D.

virtual void vtkTransferFunctionEditorWidgetSimple1D::CreateDefaultRepresentation ( ) [virtual]

Create a default representation for this widget, vtkTransferFunctionEditorRepresentationSimple1D in this case.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetEnabled ( int  enabling) [virtual]

Method for activating this widget. Note that the widget representation must be specified or the widget will not appear.

Reimplemented from vtkAbstractWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetVisibleScalarRange ( double  min,
double  max 
) [virtual]

Set the scalar range of the underlying data to display with this widget.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetVisibleScalarRange ( double  range[2]) [inline, virtual]

Set the scalar range of the underlying data to display with this widget.

Reimplemented from vtkTransferFunctionEditorWidget.

Definition at line 51 of file vtkTransferFunctionEditorWidgetSimple1D.h.

virtual void vtkTransferFunctionEditorWidgetSimple1D::Configure ( int  size[2]) [virtual]

Update the size of the rendering window containing this widget, and recompute the position of the transfer function nodes based on the new window size.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::OnChar ( ) [virtual]

Respond to keypress events.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetElementOpacity ( unsigned int  idx,
double  opacity 
) [virtual]

Set/get the opacity of a particular node in the transfer function.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual double vtkTransferFunctionEditorWidgetSimple1D::GetElementOpacity ( unsigned int  idx) [virtual]

Set/get the opacity of a particular node in the transfer function.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetElementRGBColor ( unsigned int  idx,
double  r,
double  g,
double  b 
) [virtual]

Set/get the color of a particular node in the transfer function using the RGB or HSV color space.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual int vtkTransferFunctionEditorWidgetSimple1D::GetElementRGBColor ( unsigned int  idx,
double  color[3] 
) [virtual]

Set/get the color of a particular node in the transfer function using the RGB or HSV color space.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetElementHSVColor ( unsigned int  idx,
double  h,
double  s,
double  v 
) [virtual]

Set/get the color of a particular node in the transfer function using the RGB or HSV color space.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual int vtkTransferFunctionEditorWidgetSimple1D::GetElementHSVColor ( unsigned int  idx,
double  color[3] 
) [virtual]

Set/get the color of a particular node in the transfer function using the RGB or HSV color space.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetElementScalar ( unsigned int  idx,
double  value 
) [virtual]

Set/get the scalar value associated with a particular element in the transfer function editor.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual double vtkTransferFunctionEditorWidgetSimple1D::GetElementScalar ( unsigned int  idx) [virtual]

Set/get the scalar value associated with a particular element in the transfer function editor.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetColorSpace ( int  space) [virtual]

Set the color space.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::UpdateFromTransferFunctions ( ) [virtual]

Update this widget based on changes to the transfer functions.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetModificationType ( int  type) [virtual]

Set the type of function to modify.

Reimplemented from vtkTransferFunctionEditorWidget.

virtual void vtkTransferFunctionEditorWidgetSimple1D::SetLockEndPoints ( int  ) [virtual]
virtual void vtkTransferFunctionEditorWidgetSimple1D::SetBorderWidth ( int  width) [virtual]

Set the width (in pixels) of the border around the transfer function editor.

Reimplemented from vtkTransferFunctionEditorWidget.

void vtkTransferFunctionEditorWidgetSimple1D::RemoveAllNodes ( ) [protected]
static void vtkTransferFunctionEditorWidgetSimple1D::AddNodeAction ( vtkAbstractWidget ) [static, protected]
static void vtkTransferFunctionEditorWidgetSimple1D::EndSelectAction ( vtkAbstractWidget ) [static, protected]
static void vtkTransferFunctionEditorWidgetSimple1D::MoveNodeAction ( vtkAbstractWidget ) [static, protected]
void vtkTransferFunctionEditorWidgetSimple1D::AddNewNode ( int  x,
int  y 
) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::AddNewNode ( double  scalar) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::AddOpacityPoint ( double  x,
double  y 
) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::RemoveOpacityPoint ( unsigned int  id) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::AddColorPoint ( double  x) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::RepositionColorPoint ( unsigned int  idx,
double  scalar 
) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::RemoveColorPoint ( unsigned int  id) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::ClampToWholeRange ( double  pos[2],
int  size[2],
double scalar 
) [protected]
int vtkTransferFunctionEditorWidgetSimple1D::NodeExists ( double  scalar) [protected]
static vtkHandleWidget* vtkTransferFunctionEditorWidgetSimple1D::CreateHandleWidget ( vtkTransferFunctionEditorWidgetSimple1D self,
vtkTransferFunctionEditorRepresentationSimple1D rep,
unsigned int  currentHandleNumber 
) [static, protected]
void vtkTransferFunctionEditorWidgetSimple1D::RecomputeNodePositions ( double  oldRange[2],
double  newRange[2] 
) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::RecomputeNodePositions ( int  oldSize[2],
int  newSize[2],
int  changeBorder = 0,
int  oldWidth = 0,
int  newWidth = 0 
) [protected]
void vtkTransferFunctionEditorWidgetSimple1D::RemoveNode ( unsigned int  id) [protected]

Member Data Documentation

Definition at line 112 of file vtkTransferFunctionEditorWidgetSimple1D.h.

Definition at line 113 of file vtkTransferFunctionEditorWidgetSimple1D.h.

Definition at line 115 of file vtkTransferFunctionEditorWidgetSimple1D.h.

Definition at line 116 of file vtkTransferFunctionEditorWidgetSimple1D.h.

Definition at line 118 of file vtkTransferFunctionEditorWidgetSimple1D.h.

Definition at line 120 of file vtkTransferFunctionEditorWidgetSimple1D.h.

Definition at line 121 of file vtkTransferFunctionEditorWidgetSimple1D.h.


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