17#ifndef vtkDaxContourImpl_h
18#define vtkDaxContourImpl_h
21#include "vtkDaxConfig.h"
68 bool 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);
abstract class to specify cell behavior
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
Dispatch to functor based on a pointer type.
ReturnType Go(BaseLhs *lhs)
Given a pointer to an object that derives from the BaseLhs we find the matching functor that was adde...
void Add(Functor fun)
Add in a functor that is mapped to the template SomeLhs parameter.
dynamic, self-adjusting array of double
Dispatch to functor based on two pointer types.
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 combination of the two template parameters passed in.
dynamic, self-adjusting array of float
a cell that represents a linear 3D hexahedron
topologically and geometrically regular array of data
concrete dataset represents vertices, lines, polygons, and triangle strips
a 3D cell that represents a tetrahedron
dataset represents arbitrary combinations of all possible cell types
a cell that represents a 3D orthogonal parallelepiped
CellTypeInDataSet cellType(vtkDataSet *input)
int Contour(vtkDataSet *input, vtkPolyData *output, vtkDataArray *field, float isoValue, bool computeScalars)
void setOutputGrid(vtkPolyData *grid)
void setFieldName(const char *name)