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

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

#include <vtkTransferFunctionEditorRepresentationSimple1D.h>

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

List of all members.

Public Types

enum  { Outside = 0, NearNode }

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void BuildRepresentation ()
virtual int ComputeInteractionState (int x, int y, int modify=0)
unsigned int CreateHandle (double displayPos[3], double scalar)
double GetHandleScalar (unsigned int idx, int &valid)
virtual unsigned int GetNumberOfHandles ()
vtkHandleRepresentationGetHandleRepresentation (unsigned int idx)
virtual void RemoveHandle (unsigned int id)
void RemoveAllHandles ()
virtual void ReleaseGraphicsResources (vtkWindow *window)
void SetHandleColor (unsigned int idx, double r, double g, double b)
virtual void SetColorFunction (vtkColorTransferFunction *color)
virtual void SetColorLinesByScalar (int color)
virtual void SetLinesColor (double r, double g, double b)
virtual void SetColorElementsByColorFunction (int color)
virtual int SetHandleDisplayPosition (unsigned int nodeNum, double pos[3], double scalar)
void GetHandleDisplayPosition (unsigned int nodeNum, double pos[3])
doubleGetHandleDisplayPosition (unsigned int nodeNum)
void SetActiveHandle (unsigned int handle)
virtual unsigned int GetActiveHandle ()
virtual int RenderOpaqueGeometry (vtkViewport *viewport)
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *viewport)
virtual int RenderOverlay (vtkViewport *viewport)
virtual int HasTranslucentPolygonalGeometry ()
virtual void SetElementsColor (double r, double g, double b)
virtual void SetElementsColor (double color[3])
virtual void SetElementLighting (double ambient, double diffuse, double specular, double specularPower)
virtual int GetTolerance ()

Static Public Member Functions

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

Protected Member Functions

 vtkTransferFunctionEditorRepresentationSimple1D ()
 ~vtkTransferFunctionEditorRepresentationSimple1D ()
void UpdateHandleProperty (vtkPointHandleRepresentationSphere *handleRep)
void HighlightActiveHandle ()
void ColorAllElements ()

Protected Attributes

vtkHandleList * Handles
vtkPointHandleRepresentationSphereHandleRepresentation
vtkTransformPolyDataFilterActiveHandleFilter
unsigned int ActiveHandle
int Tolerance
vtkPolyDataLines
vtkPolyDataMapperLinesMapper
vtkActorLinesActor

Detailed Description

a representation of a 3D widget for manipulating a transfer function

vtkTransferFunctionEditorRepresentationSimple1D is the representation associated with vtkTransferFunctionEditorWidgetSimple1D. It is used for displaying / manipulating a 1D transfer function using nodes.

Definition at line 37 of file vtkTransferFunctionEditorRepresentationSimple1D.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
Outside 
NearNode 

Definition at line 106 of file vtkTransferFunctionEditorRepresentationSimple1D.h.


Constructor & Destructor Documentation

vtkTransferFunctionEditorRepresentationSimple1D::vtkTransferFunctionEditorRepresentationSimple1D ( ) [protected]
vtkTransferFunctionEditorRepresentationSimple1D::~vtkTransferFunctionEditorRepresentationSimple1D ( ) [protected]

Member Function Documentation

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

Reimplemented from vtkProp.

virtual const char* vtkTransferFunctionEditorRepresentationSimple1D::GetClassName ( ) [virtual]
static int vtkTransferFunctionEditorRepresentationSimple1D::IsTypeOf ( const char *  type) [static]
virtual int vtkTransferFunctionEditorRepresentationSimple1D::IsA ( const char *  type) [virtual]
static vtkTransferFunctionEditorRepresentationSimple1D* vtkTransferFunctionEditorRepresentationSimple1D::SafeDownCast ( vtkObject o) [static]
void vtkTransferFunctionEditorRepresentationSimple1D::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]
virtual void vtkTransferFunctionEditorRepresentationSimple1D::BuildRepresentation ( ) [virtual]

Put together the parts necessary for displaying this 3D widget.

Reimplemented from vtkTransferFunctionEditorRepresentation1D.

virtual int vtkTransferFunctionEditorRepresentationSimple1D::ComputeInteractionState ( int  x,
int  y,
int  modify = 0 
) [virtual]

Given (x, y) display coordinates in a renderer, with a possible flag that modifies the computation, determine the current state of the widget.

Reimplemented from vtkWidgetRepresentation.

unsigned int vtkTransferFunctionEditorRepresentationSimple1D::CreateHandle ( double  displayPos[3],
double  scalar 
)

Create a new handle representation for a transfer function node at a particular display position. Returns the id of the node.

double vtkTransferFunctionEditorRepresentationSimple1D::GetHandleScalar ( unsigned int  idx,
int valid 
)

Get the scalar value associated with the handle at the given index.

virtual unsigned int vtkTransferFunctionEditorRepresentationSimple1D::GetNumberOfHandles ( ) [virtual]

Return the number of existing handles.

Reimplemented from vtkTransferFunctionEditorRepresentation.

vtkHandleRepresentation* vtkTransferFunctionEditorRepresentationSimple1D::GetHandleRepresentation ( unsigned int  idx)

Return the vtkHandleRepresentation (for a transfer function node) with a particular id. Returns NULL if the id is out of range.

virtual int vtkTransferFunctionEditorRepresentationSimple1D::SetHandleDisplayPosition ( unsigned int  nodeNum,
double  pos[3],
double  scalar 
) [virtual]

Set/get the display position of a vtkHandleRepresentation (for a transfer function node) with a particular id. When setting the position, a return value of 1 indicates the node was set to the position indicated. A return value of 0 indicates the nodes was not repositioned.

void vtkTransferFunctionEditorRepresentationSimple1D::GetHandleDisplayPosition ( unsigned int  nodeNum,
double  pos[3] 
)

Set/get the display position of a vtkHandleRepresentation (for a transfer function node) with a particular id. When setting the position, a return value of 1 indicates the node was set to the position indicated. A return value of 0 indicates the nodes was not repositioned.

double* vtkTransferFunctionEditorRepresentationSimple1D::GetHandleDisplayPosition ( unsigned int  nodeNum)

Set/get the display position of a vtkHandleRepresentation (for a transfer function node) with a particular id. When setting the position, a return value of 1 indicates the node was set to the position indicated. A return value of 0 indicates the nodes was not repositioned.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::RemoveHandle ( unsigned int  id) [virtual]

Remove a vtkHandleRepresentation (for a transfer function node) with a particular id.

void vtkTransferFunctionEditorRepresentationSimple1D::RemoveAllHandles ( )

Remove all the vtkHandleRepresentations currently used by this class.

void vtkTransferFunctionEditorRepresentationSimple1D::SetActiveHandle ( unsigned int  handle) [virtual]

Set/get the index of the currently active handle (node).

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual unsigned int vtkTransferFunctionEditorRepresentationSimple1D::GetActiveHandle ( ) [virtual]

Set/get the index of the currently active handle (node).

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual int vtkTransferFunctionEditorRepresentationSimple1D::RenderOpaqueGeometry ( vtkViewport viewport) [virtual]

Rendering methods

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual int vtkTransferFunctionEditorRepresentationSimple1D::RenderTranslucentPolygonalGeometry ( vtkViewport viewport) [virtual]

Rendering methods

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual int vtkTransferFunctionEditorRepresentationSimple1D::RenderOverlay ( vtkViewport viewport) [virtual]

Rendering methods

Reimplemented from vtkWidgetRepresentation.

virtual int vtkTransferFunctionEditorRepresentationSimple1D::HasTranslucentPolygonalGeometry ( ) [virtual]

Rendering methods

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::ReleaseGraphicsResources ( vtkWindow window) [virtual]

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being consumed by this widget representation. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkTransferFunctionEditorRepresentation.

void vtkTransferFunctionEditorRepresentationSimple1D::SetHandleColor ( unsigned int  idx,
double  r,
double  g,
double  b 
)

Set the color for the specified handle.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::SetColorFunction ( vtkColorTransferFunction color) [virtual]

Pass the color transfer function to the representation. Used for coloring the lines by the color transfer function.

Reimplemented from vtkTransferFunctionEditorRepresentation1D.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::SetColorLinesByScalar ( int  color) [virtual]

Tell the representation whether the lines should be a solid color or whether they should display the color transfer function.

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::SetLinesColor ( double  r,
double  g,
double  b 
) [virtual]

Specify the color to use for the lines if they are not displaying the color transfer function.

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::SetColorElementsByColorFunction ( int  color) [virtual]

Specify whether the node color should be determined by the color transfer function.

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::SetElementsColor ( double  r,
double  g,
double  b 
) [virtual]

Set the color to use for nodes if not coloring them by the color transfer function.

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::SetElementsColor ( double  color[3]) [inline, virtual]

Set the color to use for nodes if not coloring them by the color transfer function.

Reimplemented from vtkTransferFunctionEditorRepresentation.

Definition at line 136 of file vtkTransferFunctionEditorRepresentationSimple1D.h.

virtual void vtkTransferFunctionEditorRepresentationSimple1D::SetElementLighting ( double  ambient,
double  diffuse,
double  specular,
double  specularPower 
) [virtual]

Set the lighting parameters for the transfer function editor elements.

Reimplemented from vtkTransferFunctionEditorRepresentation.

virtual int vtkTransferFunctionEditorRepresentationSimple1D::GetTolerance ( ) [virtual]

Get the tolerance value used for determining whether a handle is selected.

void vtkTransferFunctionEditorRepresentationSimple1D::UpdateHandleProperty ( vtkPointHandleRepresentationSphere handleRep) [protected]
void vtkTransferFunctionEditorRepresentationSimple1D::HighlightActiveHandle ( ) [protected]
void vtkTransferFunctionEditorRepresentationSimple1D::ColorAllElements ( ) [protected]

Member Data Documentation


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