Go to the documentation of this file.
17 #ifndef vtkDaxThresholdImpl_h
18 #define vtkDaxThresholdImpl_h
21 #include "vtkDaxConfig.h"
76 vtkCell* cell,
double lower,
double upper):
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);
a cell that represents a linear 3D hexahedron
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 float
dynamic, self-adjusting array of unsigned char
void setOutputGrid(vtkUnstructuredGrid *grid)
abstract superclass for arrays of numeric data
a cell that represents a 3D point
Dispatch to functor based on a pointer type.
int Threshold(vtkDataSet *input, vtkUnstructuredGrid *output, vtkDataArray *field, double lower, double upper)
cell represents a 1D line
ReturnType Go(BaseLhs *lhs, BaseRhs *rhs)
Given two pointers of objects that derive from the BaseLhs and BaseRhs we find the matching functor t...
a 3D cell that represents a linear wedge
abstract class to specify cell behavior
topologically and geometrically regular array of data
dynamic, self-adjusting array of int
CellTypeInDataSet cellType(vtkDataSet *input)
a cell that represents a triangle
abstract class to specify dataset behavior
void setFieldName(const char *name)
void Add(Functor fun)
Add in a functor that is mapped to the template SomeLhs parameter.
Dispatch to functor based on two pointer types.
dynamic, self-adjusting array of double
dataset represents arbitrary combinations of all possible cell types
a 3D cell that represents a tetrahedron
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 2D quadrilateral
a cell that represents a 3D orthogonal parallelepiped