40#ifndef vtkBivariateLinearTableThreshold_h
41#define vtkBivariateLinearTableThreshold_h
43#include "vtkFiltersStatisticsModule.h"
65 vtkGetMacro(Inclusive,
int);
152 vtkSetVector2Macro(ColumnRanges,
double);
153 vtkGetVector2Macro(ColumnRanges,
double);
161 vtkGetMacro(DistanceThreshold,
double);
173 vtkGetMacro(UseNormalizedDistance,
int);
191 double ColumnRanges[2];
192 double DistanceThreshold;
195 int NumberOfLineEquations;
196 int UseNormalizedDistance;
200 Internals* Implementation;
219 int ThresholdAbove(
double x,
double y);
224 int ThresholdBelow(
double x,
double y);
229 int ThresholdNear(
double x,
double y);
234 int ThresholdBetween(
double x,
double y);
performs line-based thresholding for vtkTable data.
void GetColumnToThreshold(vtkIdType idx, vtkIdType &column, vtkIdType &component)
Return the column number from the input table for the idx'th added column.
void SetLinearThresholdTypeToBelow()
void SetLinearThresholdTypeToBetween()
vtkIdTypeArray * GetSelectedRowIds(int selection=0)
Get the output as a table of row ids.
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.
void ClearLineEquations()
Reset the list of line equations.
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.
~vtkBivariateLinearTableThreshold() override
void AddLineEquation(double *p, double slope)
Add a line for thresholding in point-slope form.
static vtkBivariateLinearTableThreshold * New()
void AddLineEquation(double a, double b, double c)
Add a line for thresholding in implicit form (ax + by + c = 0)
vtkBivariateLinearTableThreshold()
int GetNumberOfColumnsToThreshold()
Return how many columns have been added.
void SetLinearThresholdTypeToNear()
void AddLineEquation(double *p1, double *p2)
Add a line for thresholding from two x,y points.
void SetLinearThresholdTypeToAbove()
static void ComputeImplicitLineFunction(double *p1, double *p2, double *abc)
Convert the two-point line formula to implicit form.
maintain an unordered list of dataarray objects
dynamic, self-adjusting array of double
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Hold a reference to a vtkObjectBase instance.
Superclass for algorithms that produce only vtkTables as output.
A table, which contains similar-typed columns of data.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.