17 #ifndef vtkDaxContourImpl_h
18 #define vtkDaxContourImpl_h
21 #include "vtkDaxConfig.h"
68 bool computeScalars) :
72 ComputeScalars(computeScalars),
75 template<
typename LHS>
80 if (arrayField.GetNumberOfComponents() == 1)
85 return dispatchOnFieldType<LHS,VT1>(arrayField);
90 template<
typename VTKArrayType,
typename DaxValueType>
94 typedef dax::cont::ArrayHandle<DaxValueType,FieldTag> FieldHandle;
96 typedef typename dax::cont::ArrayHandle
97 <DaxValueType, FieldTag>::PortalConstControl PortalType;
99 FieldHandle
field = FieldHandle( PortalType(&vtkField,
100 vtkField.GetNumberOfTuples() ) );
102 DaxValueType(this->IsoValue),
103 this->ComputeScalars);
115 int validMC = dataDispatcher.
Go(this->Input,this->Cell);
136 isoValue, computeScalars);
143 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
dynamic, self-adjusting array of float
concrete dataset represents vertices, lines, polygons, and triangle strips
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
void setFieldName(const char *name)
a 3D cell that represents a tetrahedron
abstract class to specify cell behavior
Dispatch to functor based on two pointer types.
a cell that represents a 3D orthogonal parallelepiped
topologically and geometrically regular array of data
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
void setOutputGrid(vtkPolyData *grid)
a cell that represents a linear 3D hexahedron
Dispatch to functor based on a pointer type.
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...
int Contour(vtkDataSet *input, vtkPolyData *output, vtkDataArray *field, float isoValue, bool computeScalars)