vtkPVGlyphFilterLegacy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVGlyphFilterLegacy.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 =========================================================================*/
40 #ifndef vtkPVGlyphFilterLegacy_h
41 #define vtkPVGlyphFilterLegacy_h
42 
43 #include "vtkGlyph3D.h"
44 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
45 
47 
49 {
50 public:
52  {
55  SPATIALLY_UNIFORM_DISTRIBUTION
56  };
57 
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60  static vtkPVGlyphFilterLegacy* New();
61 
63 
67  void SetController(vtkMultiProcessController*);
68  vtkGetObjectMacro(Controller, vtkMultiProcessController);
70 
72 
75  vtkSetClampMacro(GlyphMode, int, ALL_POINTS, SPATIALLY_UNIFORM_DISTRIBUTION);
76  vtkGetMacro(GlyphMode, int);
78 
80 
84  vtkSetClampMacro(Stride, int, 1, VTK_INT_MAX);
85  vtkGetMacro(Stride, int);
87 
89 
92  vtkSetMacro(Seed, int);
93  vtkGetMacro(Seed, int);
95 
97 
101  vtkSetClampMacro(MaximumNumberOfSamplePoints, int, 1, VTK_INT_MAX);
102  vtkGetMacro(MaximumNumberOfSamplePoints, int);
104 
106 
110 
111 protected:
113  ~vtkPVGlyphFilterLegacy() override;
115 
116  // Standard Pipeline methods
118  virtual int RequestDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
119  int FillInputPortInformation(int, vtkInformation*) override;
120  int FillOutputPortInformation(int, vtkInformation*) override;
121 
125  int IsPointVisible(vtkDataSet* ds, vtkIdType ptId) override;
126 
130  bool IsInputArrayToProcessValid(vtkDataSet* input);
131 
135  bool UseCellCenters(vtkDataSet* input);
136 
140  bool NeedsScalars();
141 
145  bool NeedsVectors();
146 
152  virtual bool ExecuteWithCellCenters(
153  vtkDataSet* input, vtkInformationVector* sourceVector, vtkPolyData* output);
154 
157  int Seed;
158  int Stride;
160 
161 private:
163  void operator=(const vtkPVGlyphFilterLegacy&) = delete;
164 
165  class vtkInternals;
166  vtkInternals* Internals;
167 };
168 
169 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkMultiProcessController * Controller
virtual int FillOutputPortInformation(int port, vtkInformation *info)
virtual int FillInputPortInformation(int, vtkInformation *)
int vtkIdType
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkGlyph3D * New()
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
virtual int IsPointVisible(vtkDataSet *, vtkIdType)
void operator=(const vtkObjectBase &)
extended API for vtkGlyph3D for better control over glyph placement.