Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
vtkMaskedGlyph2D Class Reference

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

#include <vtkMaskedGlyph2D.h>

Inheritance diagram for vtkMaskedGlyph2D:
Collaboration diagram for vtkMaskedGlyph2D:

Public Member Functions

 vtkTypeMacro (vtkMaskedGlyph2D, vtkGlyph2D)
 
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...
 

Static Public Member Functions

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

Protected Member Functions

 vtkMaskedGlyph2D ()
 ‍** More...
 
 ~vtkMaskedGlyph2D () override
 
int RequestData (vtkInformation *info, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec) override
 

Protected Attributes

vtkMaskPoints * MaskPoints
 
int MaximumNumberOfPoints
 
int UseMaskPoints
 

Detailed Description

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

Extends vtkGlyph2D 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
vtkMaskedGlyph3D, vtkGlyph2D

Definition at line 31 of file vtkMaskedGlyph2D.h.

Constructor & Destructor Documentation

◆ vtkMaskedGlyph2D()

vtkMaskedGlyph2D::vtkMaskedGlyph2D ( )
protected

‍**

‍** ‍**

◆ ~vtkMaskedGlyph2D()

vtkMaskedGlyph2D::~vtkMaskedGlyph2D ( )
overrideprotected

Member Function Documentation

◆ GetRandomMode()

int vtkMaskedGlyph2D::GetRandomMode ( )

Get the current random masking mode.

Returns
Non-zero if random mode is active.

◆ New()

static vtkMaskedGlyph2D* vtkMaskedGlyph2D::New ( )
static

Create a new instance of vtkMaskedGlyph2D.

Returns
A new vtkMaskedGlyph2D instance.

◆ PrintSelf()

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

◆ RequestData()

int vtkMaskedGlyph2D::RequestData ( vtkInformation *  info,
vtkInformationVector **  inInfoVec,
vtkInformationVector *  outInfoVec 
)
overrideprotected

◆ SetInput()

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

Set the input dataset to this filter.

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

◆ SetRandomMode()

void vtkMaskedGlyph2D::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]

vtkMaskedGlyph2D::vtkGetMacro ( MaximumNumberOfPoints  ,
int   
)

Get the maximum number of points to glyph.

Returns
The current maximum point count.

◆ vtkGetMacro() [2/2]

vtkMaskedGlyph2D::vtkGetMacro ( UseMaskPoints  ,
int   
)

Get whether point masking is enabled.

Returns
Non-zero if masking is enabled.

◆ vtkSetMacro() [1/2]

vtkMaskedGlyph2D::vtkSetMacro ( MaximumNumberOfPoints  ,
int   
)

Set the maximum number of points to glyph.

Points exceeding this limit are masked out. Default: all points.

◆ vtkSetMacro() [2/2]

vtkMaskedGlyph2D::vtkSetMacro ( UseMaskPoints  ,
int   
)

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

◆ vtkTypeMacro()

vtkMaskedGlyph2D::vtkTypeMacro ( vtkMaskedGlyph2D  ,
vtkGlyph2D   
)

Member Data Documentation

◆ MaskPoints

vtkMaskPoints* vtkMaskedGlyph2D::MaskPoints
protected

Definition at line 108 of file vtkMaskedGlyph2D.h.

◆ MaximumNumberOfPoints

int vtkMaskedGlyph2D::MaximumNumberOfPoints
protected

Definition at line 109 of file vtkMaskedGlyph2D.h.

◆ UseMaskPoints

int vtkMaskedGlyph2D::UseMaskPoints
protected

Definition at line 110 of file vtkMaskedGlyph2D.h.


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