VTK  9.5.20250806
vtkmHistogramSampling.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
15#ifndef vtkmHistogramSampling_h
16#define vtkmHistogramSampling_h
17
18#include "vtkAcceleratorsVTKmFiltersModule.h" //required for correct implementation
19#include "vtkDataSetAlgorithm.h"
20#include "vtkmlib/vtkmInitializer.h" // Need for initializing viskores
21
22VTK_ABI_NAMESPACE_BEGIN
23class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmHistogramSampling : public vtkDataSetAlgorithm
24{
25public:
27 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
34 vtkSetMacro(SampleFraction, double);
35 vtkGetMacro(SampleFraction, double);
37
39
42 vtkSetMacro(NumberOfBins, vtkIdType);
43 vtkGetMacro(NumberOfBins, vtkIdType);
45
46protected:
48 ~vtkmHistogramSampling() override = default;
50 vtkInformationVector* outputVector) override;
52
53private:
55 void operator=(const vtkmHistogramSampling&) = delete;
56 vtkmInitializer Initializer;
57
58 double SampleFraction = 0.1;
59 vtkIdType NumberOfBins = 10;
60};
61
62VTK_ABI_NAMESPACE_END
63#endif // vtkmHistogramSampling_h
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Accelerated point to cell interpolation filter.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkmHistogramSampling() override=default
static vtkmHistogramSampling * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks the algorithm to create empty output data ob...
int vtkIdType
Definition vtkType.h:332