Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkFastSelectVisiblePoints Class Reference

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

#include <Modules/Loadable/Markups/VTKWidgets/vtkFastSelectVisiblePoints.h>

Inheritance diagram for vtkFastSelectVisiblePoints:
Inheritance graph
Collaboration diagram for vtkFastSelectVisiblePoints:
Collaboration graph

Public Types

typedef vtkSelectVisiblePoints Superclass

Public Member Functions

virtual const char * GetClassName ()
vtkFloatArray * GetZBuffer ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent) override
void ResetZBuffer ()
void SetZBuffer (vtkFloatArray *zBuffer)
void UpdateZBuffer ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkFastSelectVisiblePointsNew ()
static vtkFastSelectVisiblePointsSafeDownCast (vtkObject *o)

Protected Member Functions

int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
 vtkFastSelectVisiblePoints ()
 ~vtkFastSelectVisiblePoints () override

Protected Attributes

vtkSmartPointer< vtkFloatArray > ZBuffer

Detailed Description

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

vtkFastSelectVisiblePoints 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.

You must carefully synchronize the execution of this filter. The filter refers to a renderer, which is modified every time 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 vtkLabeledDataMapper, things work out because 2D rendering occurs after the 3D rendering.

Definition at line 58 of file vtkFastSelectVisiblePoints.h.

Member Typedef Documentation

◆ Superclass

typedef vtkSelectVisiblePoints vtkFastSelectVisiblePoints::Superclass

Definition at line 61 of file vtkFastSelectVisiblePoints.h.

Constructor & Destructor Documentation

◆ vtkFastSelectVisiblePoints()

vtkFastSelectVisiblePoints::vtkFastSelectVisiblePoints ( )

◆ ~vtkFastSelectVisiblePoints()

vtkFastSelectVisiblePoints::~vtkFastSelectVisiblePoints ( )

Member Function Documentation

◆ GetClassName()

virtual const char* vtkFastSelectVisiblePoints::GetClassName ( )

◆ GetZBuffer()

vtkFloatArray* vtkFastSelectVisiblePoints::GetZBuffer ( )

Definition at line 73 of file vtkFastSelectVisiblePoints.h.

◆ IsA()

virtual int vtkFastSelectVisiblePoints::IsA ( const char *  type)

◆ IsTypeOf()

static int vtkFastSelectVisiblePoints::IsTypeOf ( const char *  type)

◆ New()

static vtkFastSelectVisiblePoints* vtkFastSelectVisiblePoints::New ( )

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

◆ PrintSelf()

void vtkFastSelectVisiblePoints::PrintSelf ( ostream &  os,
vtkIndent  indent 

◆ RequestData()

int vtkFastSelectVisiblePoints::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   

◆ ResetZBuffer()

void vtkFastSelectVisiblePoints::ResetZBuffer ( )

◆ SafeDownCast()

static vtkFastSelectVisiblePoints* vtkFastSelectVisiblePoints::SafeDownCast ( vtkObject *  o)

◆ SetZBuffer()

void vtkFastSelectVisiblePoints::SetZBuffer ( vtkFloatArray *  zBuffer)

Definition at line 74 of file vtkFastSelectVisiblePoints.h.

◆ UpdateZBuffer()

void vtkFastSelectVisiblePoints::UpdateZBuffer ( )

Member Data Documentation

◆ ZBuffer

vtkSmartPointer<vtkFloatArray> vtkFastSelectVisiblePoints::ZBuffer

Definition at line 82 of file vtkFastSelectVisiblePoints.h.

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