17 #ifndef vtkDaxThresholdImpl_h
18 #define vtkDaxThresholdImpl_h
21 #include "vtkDaxConfig.h"
76 vtkCell* cell,
double lower,
double upper):
77 Input(in),Cell(cell),Min(lower),Max(upper),Result(out){}
79 template<
typename LHS>
84 switch(arrayField.GetNumberOfComponents())
90 return dispatchOnFieldType<LHS,VT1>(arrayField);
93 return dispatchOnFieldType<LHS,VT2>(arrayField);
96 return dispatchOnFieldType<LHS,VT3>(arrayField);
107 template<
typename VTKArrayType,
typename DaxValueType>
111 typedef dax::cont::ArrayHandle<DaxValueType,FieldTag> FieldHandle;
112 typedef typename dax::cont::ArrayHandle<DaxValueType,
113 FieldTag>::PortalConstControl PortalType;
115 FieldHandle
field = FieldHandle( PortalType(&vtkField,
116 vtkField.GetNumberOfTuples() ) );
137 int validThreshold = dataDispatcher.
Go(this->Input,this->Cell);
138 return validThreshold;
168 return fieldDispatcher.
Go(field);
ReturnType Go(BaseLhs *lhs, BaseRhs *rhs)
Given two pointers of objects that derive from the BaseLhs and BaseRhs we find the matching functor t...
void Add(Functor fun)
Add in a functor that is mapped to the template SomeLhs parameter.
abstract class to specify dataset behavior
a cell that represents a 3D point
dynamic, self-adjusting array of float
void setFieldName(const char *name)
a cell that represents a 2D quadrilateral
void Add(Functor fun)
Add in a functor that is mapped to the combination of the two template parameters passed in...
dynamic, self-adjusting array of double
a 3D cell that represents a tetrahedron
cell represents a 1D line
abstract class to specify cell behavior
dynamic, self-adjusting array of int
Dispatch to functor based on two pointer types.
a cell that represents a 3D orthogonal parallelepiped
int Threshold(vtkDataSet *input, vtkUnstructuredGrid *output, vtkDataArray *field, double lower, double upper)
topologically and geometrically regular array of data
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
a cell that represents a linear 3D hexahedron
Dispatch to functor based on a pointer type.
dynamic, self-adjusting array of unsigned char
void setOutputGrid(vtkUnstructuredGrid *grid)
CellTypeInDataSet cellType(vtkDataSet *input)
ReturnType Go(BaseLhs *lhs)
Given a pointer to an object that derives from the BaseLhs we find the matching functor that was adde...
a cell that represents a triangle
a 3D cell that represents a linear wedge