34 #ifndef vtkmNDHistogram_h 35 #define vtkmNDHistogram_h 40 #include "vtkAcceleratorsVTKmModule.h" 46 void PrintSelf(ostream& os,
vtkIndent indent) override;
48 void AddFieldAndBin(const std::
string& fieldName, const
vtkIdType& numberOfBins);
50 double GetBinDelta(
size_t fieldIndex);
51 std::pair<
double,
double> GetDataRange(
size_t fieldIndex);
59 int GetFieldIndexFromFieldName(const std::
string& fieldName);
68 vtkInformationVector* )override;
69 int FillInputPortInformation(
int port, vtkInformation*
info) override;
71 vtkmNDHistogram(const vtkmNDHistogram&) = delete;
72 void operator=(const vtkmNDHistogram&) = delete;
73 std::
vector<std::
string> FieldNames;
75 std::
vector<
double> BinDeltas;
76 std::
vector<std::pair<
double,
double>> DataRanges;
79 #endif // vtkmNDHistogram_h
generate a n dimensional histogram field from input fields
a simple class to control print indentation
Superclass for algorithms that produce vtkArrayDatas as output.