00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00022 #ifndef __vtkPVGlyphFilter_h
00023 #define __vtkPVGlyphFilter_h
00024
00025 #include "vtkGlyph3D.h"
00026
00027 class vtkMaskPoints;
00028
00029 class VTK_EXPORT vtkPVGlyphFilter : public vtkGlyph3D
00030 {
00031 public:
00032 vtkTypeRevisionMacro(vtkPVGlyphFilter,vtkGlyph3D);
00033 void PrintSelf(ostream& os, vtkIndent indent);
00034
00035 static vtkPVGlyphFilter *New();
00036
00038
00039 vtkSetMacro(MaximumNumberOfPoints, int);
00040 vtkGetMacro(MaximumNumberOfPoints, int);
00042
00044
00045 vtkGetMacro(NumberOfProcesses, int);
00047
00049
00050 vtkSetMacro(UseMaskPoints, int);
00051 vtkGetMacro(UseMaskPoints, int);
00053
00055
00056 void SetRandomMode(int mode);
00057 int GetRandomMode();
00059
00062 virtual int IsPointVisible(vtkDataSet* ds, vtkIdType ptId);
00063
00064 protected:
00065 vtkPVGlyphFilter();
00066 ~vtkPVGlyphFilter();
00067
00068 virtual int RequestData(vtkInformation *,
00069 vtkInformationVector **,
00070 vtkInformationVector *);
00071 virtual int RequestCompositeData(vtkInformation* request,
00072 vtkInformationVector** inputVector,
00073 vtkInformationVector* outputVector);
00074
00075 virtual int FillInputPortInformation(int, vtkInformation*);
00076
00077
00078 virtual vtkExecutive* CreateDefaultExecutive();
00079
00080 vtkIdType GatherTotalNumberOfPoints(vtkIdType localNumPts);
00081
00082 int MaskAndExecute(vtkIdType numPts, vtkIdType maxNumPts,
00083 vtkDataSet* input,
00084 vtkInformation* request,
00085 vtkInformationVector** inputVector,
00086 vtkInformationVector* outputVector);
00087
00088 vtkMaskPoints *MaskPoints;
00089 int MaximumNumberOfPoints;
00090 int NumberOfProcesses;
00091 int UseMaskPoints;
00092 int InputIsUniformGrid;
00093
00094 vtkIdType BlockMaxNumPts;
00095 vtkIdType BlockOnRatio;
00096 vtkIdType BlockPointCounter;
00097 vtkIdType BlockNextPoint;
00098 vtkIdType BlockNumPts;
00099
00100 int RandomMode;
00101
00102 virtual void ReportReferences(vtkGarbageCollector*);
00103 private:
00104 vtkPVGlyphFilter(const vtkPVGlyphFilter&);
00105 void operator=(const vtkPVGlyphFilter&);
00106 };
00107
00108 #endif