Go to the documentation of this file.
40 #ifndef vtkBivariateLinearTableThreshold_h
41 #define vtkBivariateLinearTableThreshold_h
43 #include "vtkFiltersStatisticsModule.h"
64 vtkSetMacro(Inclusive,
int);
65 vtkGetMacro(Inclusive,
int);
152 vtkSetVector2Macro(ColumnRanges,
double);
153 vtkGetVector2Macro(ColumnRanges,
double);
160 vtkSetMacro(DistanceThreshold,
double);
161 vtkGetMacro(DistanceThreshold,
double);
191 double ColumnRanges[2];
void AddLineEquation(double *p1, double *p2)
Add a line for thresholding from two x,y points.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetLinearThresholdTypeToBelow()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkBivariateLinearTableThreshold() override
A table, which contains similar-typed columns of data.
maintain an ordered list of dataarray objects
vtkSmartPointer< vtkDoubleArray > LineEquations
int GetNumberOfColumnsToThreshold()
Return how many columns have been added.
static void ComputeImplicitLineFunction(double *p1, double *p2, double *abc)
Convert the two-point line formula to implicit form.
void GetColumnToThreshold(vtkIdType idx, vtkIdType &column, vtkIdType &component)
Return the column number from the input table for the idx'th added column.
vtkTypeBool UseNormalizedDistance
int ThresholdBelow(double x, double y)
Determine if x,y is below all specified lines.
void SetLinearThresholdTypeToNear()
int ThresholdNear(double x, double y)
Determine if x,y is near ONE specified line (not all).
int NumberOfLineEquations
void SetLinearThresholdTypeToBetween()
vtkBivariateLinearTableThreshold()
void AddLineEquation(double *p, double slope)
Add a line for thresholding in point-slope form.
Internals * Implementation
Superclass for algorithms that produce only vtkTables as output.
virtual int ApplyThreshold(vtkTable *tableToThreshold, vtkIdTypeArray *acceptedIds)
Apply the current threshold to a vtkTable.
a simple class to control print indentation
int ThresholdAbove(double x, double y)
Determine if x,y is above all specified lines.
void SetLinearThresholdTypeToAbove()
performs line-based thresholding for vtkTable data.
vtkIdTypeArray * GetSelectedRowIds(int selection=0)
Get the output as a table of row ids.
int ThresholdBetween(double x, double y)
Determine if x,y is between ANY TWO of the specified lines.
void ClearColumnsToThreshold()
Reset the columns to be thresholded.
void AddColumnToThreshold(vtkIdType column, vtkIdType component)
Add a numeric column to the pair of columns to be thresholded.
void AddLineEquation(double a, double b, double c)
Add a line for thresholding in implicit form (ax + by + c = 0)
void ClearLineEquations()
Reset the list of line equations.
dynamic, self-adjusting array of vtkIdType
static vtkBivariateLinearTableThreshold * New()
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
dynamic, self-adjusting array of double
static void ComputeImplicitLineFunction(double *p, double slope, double *abc)
Convert the point-slope line formula to implicit form.
void Initialize()
Reset the columns to threshold, column ranges, etc.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.