DRAFT
LIST OF EXAMPLES
10.48Array handle to adapt a third-party container to VTK-m. . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
10.49Using an ArrayHandle with custom container. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
10.50Redefining the default array handle storage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
11.1 Creating a DynamicArrayHandle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
11.2 Non type-specific queries on DynamicArrayHandle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
11.3 Using NewInstance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
11.4 Querying the component and storage types of a DynamicArrayHandle. . . . . . . . . . . . . . . . . . . . . 134
11.5 Casting a DynamicArrayHandle to a concrete ArrayHandle. . . . . . . . . . . . . . . . . . . . . . . . . . . 135
11.6 Operating on DynamicArrayHandle with CastAndCall. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
11.7 Trying all component types in a DynamicArrayHandle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.8 Specifying a single component type in a DynamicArrayHandle. . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.9 Specifying different storage types in a DynamicArrayHandle. . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.10Specifying both component and storage types in a DynamicArrayHandle. . . . . . . . . . . . . . . . . . . . 137
11.11Using DynamicArrayHandleBase to accept generic dynamic array handles. . . . . . . . . . . . . . . . . . . 138
12.1 Creating a uniform grid. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
12.2 Creating a uniform grid with custom origin and spacing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
12.3 Creating a rectilinear grid. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
12.4 Creating an explicit mesh with DataSetBuilderExplicit. . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
12.5 Creating an explicit mesh with DataSetBuilderExplicitIterative. . . . . . . . . . . . . . . . . . . . . . 143
12.6 Adding fields to a DataSet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
12.7 Subsampling a data set with CellSetPermutation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
12.8 Creating a MultiBlock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
12.9 Queries on a MultiBlock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
12.10Applying a filter to multi block data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
13.1 Using the provided PointElevation worklet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
13.2 A ControlSignature. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
13.3 An ExecutionSignature. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
13.4 An InputDomain declaration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
13.5 An overloaded parenthesis operator of a worklet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
13.6 Implementation and use of a field map worklet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
13.7 Leveraging field maps and field maps for general processing. . . . . . . . . . . . . . . . . . . . . . . . . . . 162
13.8 Implementation and use of a map point to cell worklet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
13.9 Implementation and use of a map cell to point worklet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
13.10A helper class to manage histogram bins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
13.11A simple map worklet to identify histogram bins, which will be used as keys. . . . . . . . . . . . . . . . . 176
13.12Creating a vtkm::worklet::Keys object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
13.13A reduce by key worklet to write histogram bin counts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
LIST OF EXAMPLES xix