Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
vtkMaskedGlyph3D Class Reference

VTK filter that masks input points and generates 3D glyphs only for selected points. More...

#include <vtkMaskedGlyph3D.h>

Inheritance diagram for vtkMaskedGlyph3D:
Collaboration diagram for vtkMaskedGlyph3D:

Public Member Functions

 vtkTypeMacro (vtkMaskedGlyph3D, vtkGlyph3D)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
 vtkSetMacro (MaximumNumberOfPoints, int)
 Set the maximum number of points to glyph. More...
 
 vtkGetMacro (MaximumNumberOfPoints, int)
 Get the maximum number of points to glyph. More...
 
virtual void SetInput (vtkDataSet *input)
 Set the input dataset to this filter. More...
 
 vtkSetMacro (UseMaskPoints, int)
 Set whether to enable point masking. Non-zero to enable, 0 to disable. More...
 
 vtkGetMacro (UseMaskPoints, int)
 Get whether point masking is enabled. More...
 
void SetRandomMode (int mode)
 Set whether to randomly select which points to mask. More...
 
int GetRandomMode ()
 Get the current random masking mode. More...
 
void SetInputConnection (vtkAlgorithmOutput *input) override
 Set the input connection for the VTK pipeline. More...
 

Static Public Member Functions

static vtkMaskedGlyph3D * New ()
 Create a new instance of vtkMaskedGlyph3D. More...
 

Protected Member Functions

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

Protected Attributes

vtkMaskPoints * MaskPoints
 
int MaximumNumberOfPoints
 
int UseMaskPoints
 

Detailed Description

VTK filter that masks input points and generates 3D glyphs only for selected points.

Extends vtkGlyph3D by adding point masking functionality. Points may be selected by random sampling or by ratio to limit the number of glyphs rendered, which is useful for large datasets where rendering all glyphs would be too slow.

See also
vtkMaskedGlyph2D, vtkGlyph3D

Definition at line 32 of file vtkMaskedGlyph3D.h.

Constructor & Destructor Documentation

◆ vtkMaskedGlyph3D()

vtkMaskedGlyph3D::vtkMaskedGlyph3D ( )
protected

◆ ~vtkMaskedGlyph3D()

vtkMaskedGlyph3D::~vtkMaskedGlyph3D ( )
overrideprotected

Member Function Documentation

◆ GetRandomMode()

int vtkMaskedGlyph3D::GetRandomMode ( )

Get the current random masking mode.

Returns
Non-zero if random mode is active.

◆ New()

static vtkMaskedGlyph3D* vtkMaskedGlyph3D::New ( )
static

Create a new instance of vtkMaskedGlyph3D.

Returns
A new vtkMaskedGlyph3D instance.

◆ PrintSelf()

void vtkMaskedGlyph3D::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ RequestData()

int vtkMaskedGlyph3D::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
overrideprotected

◆ SetInput()

virtual void vtkMaskedGlyph3D::SetInput ( vtkDataSet *  input)
virtual

Set the input dataset to this filter.

Parameters
[in]inputThe input dataset containing points to glyph.

◆ SetInputConnection()

void vtkMaskedGlyph3D::SetInputConnection ( vtkAlgorithmOutput *  input)
override

Set the input connection for the VTK pipeline.

Parameters
[in]inputThe algorithm output port to connect as input.

◆ SetRandomMode()

void vtkMaskedGlyph3D::SetRandomMode ( int  mode)

Set whether to randomly select which points to mask.

Parameters
[in]modeNon-zero for random masking, 0 for uniform masking.

◆ vtkGetMacro() [1/2]

vtkMaskedGlyph3D::vtkGetMacro ( MaximumNumberOfPoints  ,
int   
)

Get the maximum number of points to glyph.

Returns
The current maximum point count.

◆ vtkGetMacro() [2/2]

vtkMaskedGlyph3D::vtkGetMacro ( UseMaskPoints  ,
int   
)

Get whether point masking is enabled.

Returns
Non-zero if masking is enabled.

◆ vtkSetMacro() [1/2]

vtkMaskedGlyph3D::vtkSetMacro ( MaximumNumberOfPoints  ,
int   
)

Set the maximum number of points to glyph.

◆ vtkSetMacro() [2/2]

vtkMaskedGlyph3D::vtkSetMacro ( UseMaskPoints  ,
int   
)

Set whether to enable point masking. Non-zero to enable, 0 to disable.

◆ vtkTypeMacro()

vtkMaskedGlyph3D::vtkTypeMacro ( vtkMaskedGlyph3D  ,
vtkGlyph3D   
)

Member Data Documentation

◆ MaskPoints

vtkMaskPoints* vtkMaskedGlyph3D::MaskPoints
protected

Definition at line 87 of file vtkMaskedGlyph3D.h.

◆ MaximumNumberOfPoints

int vtkMaskedGlyph3D::MaximumNumberOfPoints
protected

Definition at line 88 of file vtkMaskedGlyph3D.h.

◆ UseMaskPoints

int vtkMaskedGlyph3D::UseMaskPoints
protected

Definition at line 89 of file vtkMaskedGlyph3D.h.


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