Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
vtkMaskedGlyph3D.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef vtkMaskedGlyph3D_h
14 #define vtkMaskedGlyph3D_h
15 
16 #include <MitkMapperExtExports.h>
17 
18 #include <vtkGlyph3D.h>
19 
20 #include <mitkCommon.h>
21 
22 class vtkMaskPoints;
32 class MITKMAPPEREXT_EXPORT vtkMaskedGlyph3D : public vtkGlyph3D
33 {
34 public:
36  void PrintSelf(ostream &os, vtkIndent indent) override;
37 
41  static vtkMaskedGlyph3D *New();
42 
44  vtkSetMacro(MaximumNumberOfPoints, int);
45 
49  vtkGetMacro(MaximumNumberOfPoints, int);
50 
54  virtual void SetInput(vtkDataSet *input);
55 
57  vtkSetMacro(UseMaskPoints, int);
58 
62  vtkGetMacro(UseMaskPoints, int);
63 
67  void SetRandomMode(int mode);
68 
73 
77  void SetInputConnection(vtkAlgorithmOutput *input) override;
78 
79  using vtkGlyph3D::SetInputConnection;
80 
81 protected:
83  ~vtkMaskedGlyph3D() override;
84 
85  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
86 
87  vtkMaskPoints *MaskPoints;
90 
91 private:
92  vtkMaskedGlyph3D(const vtkMaskedGlyph3D &); // Not implemented.
93  void operator=(const vtkMaskedGlyph3D &); // Not implemented.
94 };
95 
96 #endif
#define MITKMAPPEREXT_EXPORT
VTK filter that masks input points and generates 3D glyphs only for selected points.
void SetRandomMode(int mode)
Set whether to randomly select which points to mask.
~vtkMaskedGlyph3D() override
vtkGetMacro(MaximumNumberOfPoints, int)
Get the maximum number of points to glyph.
vtkSetMacro(MaximumNumberOfPoints, int)
Set the maximum number of points to glyph.
int GetRandomMode()
Get the current random masking mode.
vtkTypeMacro(vtkMaskedGlyph3D, vtkGlyph3D)
vtkGetMacro(UseMaskPoints, int)
Get whether point masking is enabled.
void PrintSelf(ostream &os, vtkIndent indent) override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkMaskPoints * MaskPoints
void SetInputConnection(vtkAlgorithmOutput *input) override
Set the input connection for the VTK pipeline.
vtkSetMacro(UseMaskPoints, int)
Set whether to enable point masking. Non-zero to enable, 0 to disable.
virtual void SetInput(vtkDataSet *input)
Set the input dataset to this filter.
static vtkMaskedGlyph3D * New()
Create a new instance of vtkMaskedGlyph3D.