39 #ifndef __vtkBivariateLinearTableThreshold__h
40 #define __vtkBivariateLinearTableThreshold__h
42 #include "vtkFiltersStatisticsModule.h"
44 #include "vtkSmartPointer.h"
46 class vtkDataArrayCollection;
56 void PrintSelf(ostream& os, vtkIndent indent);
61 vtkSetMacro(Inclusive,
int);
62 vtkGetMacro(Inclusive,
int);
67 void AddColumnToThreshold(vtkIdType column, vtkIdType component);
70 int GetNumberOfColumnsToThreshold();
74 void GetColumnToThreshold(vtkIdType idx, vtkIdType& column, vtkIdType& component);
77 void ClearColumnsToThreshold();
80 vtkIdTypeArray* GetSelectedRowIds(
int selection=0);
101 void AddLineEquation(
double* p1,
double* p2);
104 void AddLineEquation(
double* p,
double slope);
107 void AddLineEquation(
double a,
double b,
double c);
110 void ClearLineEquations();
117 vtkGetMacro(LinearThresholdType,
int);
118 vtkSetMacro(LinearThresholdType,
int);
129 vtkSetVector2Macro(ColumnRanges,
double);
130 vtkGetVector2Macro(ColumnRanges,
double);
136 vtkSetMacro(DistanceThreshold,
double);
137 vtkGetMacro(DistanceThreshold,
double);
147 vtkSetMacro(UseNormalizedDistance,
int);
148 vtkGetMacro(UseNormalizedDistance,
int);
149 vtkBooleanMacro(UseNormalizedDistance,
int);
153 static void ComputeImplicitLineFunction(
double* p1,
double* p2,
double* abc);
156 static void ComputeImplicitLineFunction(
double* p,
double slope,
double* abc);
162 double ColumnRanges[2];
177 vtkInformationVector**,
178 vtkInformationVector*);
185 virtual int ApplyThreshold(
vtkTable* tableToThreshold, vtkIdTypeArray* acceptedIds);
188 int ThresholdAbove(
double x,
double y);
191 int ThresholdBelow(
double x,
double y);
194 int ThresholdNear(
double x,
double y);
198 int ThresholdBetween(
double x,
double y);
virtual int FillOutputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkTableAlgorithm * New()
void SetLinearThresholdTypeToNear()
Internals * Implementation
void SetLinearThresholdTypeToAbove()
int UseNormalizedDistance
void SetLinearThresholdTypeToBelow()
void SetLinearThresholdTypeToBetween()
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkSmartPointer< vtkDoubleArray > LineEquations
A table, which contains similar-typed columns of data.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Superclass for algorithms that produce only vtkTables as output.
int NumberOfLineEquations
performs line-based thresholding for vtkTable data.