104 #ifndef vtkMultiThreshold_h 105 #define vtkMultiThreshold_h 107 #include "vtkFiltersGeneralModule.h" 193 int AddIntervalSet(
double xmin,
double xmax,
int omin,
int omax,
194 int assoc,
const char* arrayName,
int component,
int allScalars );
195 int AddIntervalSet(
double xmin,
double xmax,
int omin,
int omax,
196 int assoc,
int attribType,
int component,
int allScalars );
207 int AddLowpassIntervalSet(
double xmax,
int assoc,
const char* arrayName,
int component,
int allScalars );
208 int AddHighpassIntervalSet(
double xmin,
int assoc,
const char* arrayName,
int component,
int allScalars );
209 int AddBandpassIntervalSet(
double xmin,
double xmax,
int assoc,
const char* arrayName,
int component,
int allScalars );
210 int AddNotchIntervalSet(
double xlo,
double xhi,
int assoc,
const char* arrayName,
int component,
int allScalars );
216 int AddBooleanSet(
int operation,
int numInputs,
int* inputs );
221 int OutputSet(
int setId );
263 else if ( this->Component > other.
Component )
266 if ( (! this->AllScalars) && other.
AllScalars )
268 else if ( this->AllScalars && (! other.
AllScalars) )
271 if ( this->Type == -1 )
273 if ( other.
Type == -1 )
274 return this->Name < other.
Name;
279 return this->Type < other.
Type;
300 virtual void PrintNodeName( ostream& os );
302 virtual void PrintNode( ostream& os ) = 0;
305 virtual Interval* GetIntervalPointer();
312 double EndpointValues[2];
314 int EndpointClosures[2];
322 int Match(
double cellNorm[2] );
325 void PrintNode( ostream& os )
override;
326 Interval* GetIntervalPointer()
override;
338 BooleanSet(
int sId,
int op,
int* inBegin,
int* inEnd ) : Inputs( inBegin, inEnd ) {
343 void PrintNode( ostream& os )
override;
399 typedef std::map<NormKey,IntervalList>
RuleMap;
426 void UpdateDependents(
427 int id, std::set<int>& unresolvedOutputs, TruthTreeValues& setStates,
433 int AddIntervalSet(
NormKey& nk,
double xmin,
double xmax,
int omin,
int omax );
438 void PrintGraph( ostream& os );
446 return this->AddIntervalSet(
vtkMath::NegInf(), xmax, CLOSED, CLOSED, assoc, arrayName, component, allScalars );
451 return this->AddIntervalSet( xmin,
vtkMath::Inf(), CLOSED, CLOSED, assoc, arrayName, component, allScalars );
455 double xmin,
double xmax,
int assoc,
const char* arrayName,
int component,
int allScalars )
457 return this->AddIntervalSet( xmin, xmax, CLOSED, CLOSED, assoc, arrayName, component, allScalars );
461 double xlo,
double xhi,
int assoc,
const char* arrayName,
int component,
int allScalars )
463 int band = this->AddIntervalSet( xlo, xhi, CLOSED, CLOSED, assoc, arrayName, component, allScalars );
468 return this->AddBooleanSet( NAND, 1, &band );
491 #endif // vtkMultiThreshold_h std::vector< Set * > Sets
A list of rules keyed by their unique integer ID.
int NextArrayIndex
A variable used to store the next index to use when calling SetInputArrayToProcess.
static double NegInf()
Special IEEE-754 number used to represent negative infinity.
A subset of a mesh represented by a range of acceptable attribute values.
virtual ~Set()
Virtual destructor since we have virtual members.
int Operator
The boolean operation that will be performed on the inputs to obtain the output.
A subset of a mesh represented as a boolean set operation.
std::vector< TruthTreeValues > TruthTree
TruthTree DependentSets
A list of boolean sets whose values depend on the given set.
static double Inf()
Special IEEE-754 number used to represent positive infinity.
represent and manipulate cell attribute data
int OutputId
A unique identifier for this set.
virtual Interval * GetIntervalPointer()
Set()
The index of the output mesh that will hold this set or -1 if the set is not output.
BooleanSet(int sId, int op, int *inBegin, int *inEnd)
Construct a new set with the given ID, operator, and inputs.
NormKey Norm
This contains information about the attribute over which the interval is defined. ...
virtual BooleanSet * GetBooleanSetPointer()
Avoid dynamic_casts. Subclasses must override.
std::vector< Interval * > IntervalList
A list of pointers to IntervalSets.
abstract class for specifying dataset behavior
Include elements that belong to an odd number of input sets (a kind of "winding XOR") ...
int AddBandpassIntervalSet(double xmin, double xmax, int assoc, const char *arrayName, int component, int allScalars)
These convenience members make it easy to insert closed intervals.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
VTKCOMMONCORE_EXPORT bool operator<(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
provides thread-safe access to cells
Ruling
When an interval is evaluated, its value is used to update a truth table.
static vtkMultiBlockDataSetAlgorithm * New()
int AddLowpassIntervalSet(double xmax, int assoc, const char *arrayName, int component, int allScalars)
These convenience members make it easy to insert closed intervals.
abstract class to specify cell behavior
int AddHighpassIntervalSet(double xmin, int assoc, const char *arrayName, int component, int allScalars)
These convenience members make it easy to insert closed intervals.
a simple class to control print indentation
Closure
Whether the endpoint value of an interval should be included or excluded.
std::vector< int > Inputs
A list of input sets. These may be IntervalSets or BooleanSets.
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
Interval * GetIntervalPointer() override
Include an element if it belongs to exactly one input set.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::map< NormKey, IntervalList > RuleMap
A map describing the IntervalSets that share a common attribute and norm.
int NumberOfOutputs
The number of output datasets.
int AddNotchIntervalSet(double xlo, double xhi, int assoc, const char *arrayName, int component, int allScalars)
These convenience members make it easy to insert closed intervals.
BooleanSet * GetBooleanSetPointer() override
Avoid dynamic_casts. Subclasses must override.
RuleMap IntervalRules
A set of threshold rules sorted by the attribute+norm to which they are applied.
Only include an element if it belongs to all the input sets.
SetOperation
Operations that can be performed on sets to generate another set. Most of these operators take 2 or m...
A class with comparison operator used to index input array norms used in threshold rules...
Norm
Norms that can be used to threshold vector attributes.
Include an element if it belongs to any input set.
Threshold cells within multiple intervals.
A base class for representing threshold sets.
std::vector< int > TruthTreeValues