ParaView
vtkPVLegacyGlyphFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVLegacyGlyphFilter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkPVLegacyGlyphFilter_h
24 #define vtkPVLegacyGlyphFilter_h
25 
26 #include "vtkGlyph3D.h"
27 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
28 
29 class vtkMaskPoints;
30 
31 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVLegacyGlyphFilter : public vtkGlyph3D
32 {
33 public:
34  vtkTypeMacro(vtkPVLegacyGlyphFilter, vtkGlyph3D);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
37  static vtkPVLegacyGlyphFilter* New();
38 
40 
43  vtkSetMacro(MaximumNumberOfPoints, int);
44  vtkGetMacro(MaximumNumberOfPoints, int);
46 
48 
51  vtkGetMacro(NumberOfProcesses, int);
53 
55 
58  void SetUseMaskPoints(int useMaskPoints);
59  vtkGetMacro(UseMaskPoints, int);
61 
63 
66  void SetRandomMode(int mode);
67  int GetRandomMode();
69 
75  virtual int IsPointVisible(vtkDataSet* ds, vtkIdType ptId);
76 
77  void SetKeepRandomPoints(int keepRandomPoints);
78  vtkGetMacro(KeepRandomPoints, int);
79 
80 protected:
83 
84  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
85  virtual int RequestCompositeData(vtkInformation* request, vtkInformationVector** inputVector,
86  vtkInformationVector* outputVector);
87 
88  virtual int FillInputPortInformation(int, vtkInformation*);
89 
90  // Create a default executive.
91  virtual vtkExecutive* CreateDefaultExecutive();
92 
93  vtkIdType GatherTotalNumberOfPoints(vtkIdType localNumPts);
94 
100  void CalculatePtsToGlyph(double PtsNotBlanked);
101 
102  vtkMaskPoints* MaskPoints;
107 
109  vtkIdType BlockMaxNumPts;
110  vtkIdType BlockOnRatio;
111  vtkIdType BlockPointCounter;
112  vtkIdType BlockNextPoint;
114 
115  std::vector<vtkIdType> RandomPtsInDataset;
116 
118 
119  virtual void ReportReferences(vtkGarbageCollector*);
120 
123 
124 private:
125  vtkPVLegacyGlyphFilter(const vtkPVLegacyGlyphFilter&) VTK_DELETE_FUNCTION;
126  void operator=(const vtkPVLegacyGlyphFilter&) VTK_DELETE_FUNCTION;
127 
128 public:
130  {
131  GlyphNPointsGather = 1000,
132  GlyphNPointsScatter
133  };
134 };
135 
136 #endif
std::vector< vtkIdType > RandomPtsInDataset