30 #ifndef vtkBinCellDataFilter_h 31 #define vtkBinCellDataFilter_h 35 #include "vtkFiltersCoreModule.h" 64 void SetValue(
int i,
double value);
65 double GetValue(
int i);
67 void GetValues(
double* binValues);
68 void SetNumberOfBins(
int numBins);
70 void GenerateValues(
int numBins,
double range[2]);
71 void GenerateValues(
int numBins,
double rangeStart,
double rangeEnd);
114 vtkSetMacro(StoreNumberOfNonzeroBins,
bool);
115 vtkBooleanMacro(StoreNumberOfNonzeroBins,
bool);
116 vtkGetMacro(StoreNumberOfNonzeroBins,
bool);
125 vtkSetStringMacro(NumberOfNonzeroBinsArrayName);
126 vtkGetStringMacro(NumberOfNonzeroBinsArrayName);
135 vtkSetMacro(Tolerance,
double);
136 vtkGetMacro(Tolerance,
double);
145 vtkSetMacro(ComputeTolerance,
bool);
146 vtkBooleanMacro(ComputeTolerance,
bool);
147 vtkGetMacro(ComputeTolerance,
bool);
154 vtkSetMacro(ArrayComponent,
int);
155 vtkGetMacro(ArrayComponent,
int);
170 vtkSetClampMacro(CellOverlapMethod,
int, CELL_CENTROID, CELL_POINTS);
171 vtkGetMacro(CellOverlapMethod,
int);
197 virtual void CreateDefaultLocator();
216 this->BinValues->SetValue(i, value);
224 return this->BinValues->GetValue(i);
233 return this->BinValues->GetValues();
243 this->BinValues->GetValues(binValues);
253 this->BinValues->SetNumberOfContours(number);
262 return this->BinValues->GetNumberOfContours();
271 this->BinValues->GenerateValues(numBins, range);
280 this->BinValues->GenerateValues(numBins, rangeStart, rangeEnd);
helper object to manage setting and generating contour values
vtkAbstractCellLocator * CellLocator
an abstract base class for locators which find cells
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph *>::edge_descriptor e, vtkGraph *)
Proxy object to connect input/output ports.
bool StoreNumberOfNonzeroBins
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bin source cell data into input cells.
double * GetValues()
Get a pointer to an array of bin values.
a simple class to control print indentation
vtkContourValues vtkBinValues
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
char * NumberOfNonzeroBinsArrayName
double GetValue(int i)
Get the ith bin value.
vtkIdType GetNumberOfBins()
Get the number of bins in the list of bin values, not counting the overflow bin.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
void GenerateValues(int numBins, double range[2])
Generate numBins equally spaced bin values between specified range.
void SetValue(int i, double value)
Methods to set / get bin values.
Superclass for algorithms that produce output of the same type as input.
general representation of visualization data
static vtkDataSetAlgorithm * New()
void SetNumberOfBins(int numBins)
Set the number of bins to place into the list.