Documentation for vtkSelectVisiblePoints

vtkSelectVisiblePoints - extract points that are visible (based on z-buffer calculation)

Super Class: vtkDataSetToPolyDataFilter

Description:

vtkSelectVisiblePoints is a filter that selects points based on whether they are visible or not. Visibility is determined by accessing the z-buffer of a rendering window. (The position of each input point is converted into display coordinates, and then the z-value at that point is obtained. If within the user-specified tolerance, the point is considered visible.) Points that are visible (or if the ivar SelectInvisible is on, invisible points) are passed to the output. Associated data attributes are passed to the output as well. This filter also allows you to specify a rectangular window in display (pixel) coordinates in which the visible points must lie. This can be used as a sort of local "brushing" operation to select just data within a window.

 

Caveats:

You must carefully synchronize the execution of this filter. The filter refers to a renderer, which is modified everytime a render occurs. Therefore, the filter is always out of date, and always executes. You may have to perform two rendering passes, or if you are using this filter in conjunction with vtkLabeledPointMapper, things work out because 2D rendering occurs after the 3D rendering.

 

Methods:

void vtkSelectVisiblePoints ()
void vtkSelectVisiblePoints ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkSelectVisiblePoints *New ()
void SetRenderer (vtkRenderer *)
vtkRenderer *GetRenderer ()
void SetSelectionWindow (int )
int GetSelectionWindow ()
void SelectionWindowOn ()
void SelectionWindowOff ()
void SetSelection (int ,int ,int ,int )
void SetSelection (int *)
int *GetSelection ()
void SetSelectInvisible (int )
int GetSelectInvisible ()
void SelectInvisibleOn ()
void SelectInvisibleOff ()
void SetTolerance (float )
float GetTolerance ()
unsigned long GetMTime ()
void Execute ()

 

Detailed Method Descriptions:

Instantiate object with no renderer; window selection turned off; tolerance set to 0.01; and select invisible off.

static vtkSelectVisiblePoints *New ()

Specify the renderer in which the visibility computation is to be performed.

void SetRenderer (vtkRenderer *)
vtkRenderer *GetRenderer ()

Set/Get the flag which enables selection in a rectangular display region.

void SetSelectionWindow (int )
int GetSelectionWindow ()
void SelectionWindowOn ()
void SelectionWindowOff ()

Specify the selection window in display coordinates. You must specify a rectangular region using (xmin,xmax,ymin,ymax).

void SetSelection (int ,int ,int ,int )
void SetSelection (int *)
int *GetSelection ()

Set/Get the flag which enables inverse selection; i.e., invisible points are selected.

void SetSelectInvisible (int )
int GetSelectInvisible ()
void SelectInvisibleOn ()
void SelectInvisibleOff ()

Set/Get a tolerance to use to determine whether a point is visible. A tolerance is usually required because the conversion from world space to display space during rendering introduces numerical round-off.

void SetTolerance (float )
float GetTolerance ()

Return MTime also considering the renderer.

unsigned long GetMTime ()