VTK-m  2.0
Classes | Namespaces | Macros | Functions
CellTraits.h File Reference
#include <vtkm/CellShape.h>

Go to the source code of this file.

Classes

struct  vtkm::CellTopologicalDimensionsTag< dimension >
 vtkm::CellTraits::TopologyDimensionType is typedef to this with the template parameter set to TOPOLOGICAL_DIMENSIONS. More...
 
struct  vtkm::CellTraitsTagSizeFixed
 Tag for cell shapes with a fixed number of points. More...
 
struct  vtkm::CellTraitsTagSizeVariable
 Tag for cell shapes that can have a variable number of points. More...
 
struct  vtkm::CellTraits< CellTag >
 Information about a cell based on its tag. More...
 

Namespaces

 vtkm
 Groups connected points that have the same field value.
 

Macros

#define VTKM_DEFINE_CELL_TRAITS(name, dimensions, numPoints)
 
#define VTKM_DEFINE_CELL_TRAITS_VARIABLE(name, dimensions)
 

Functions

 vtkm::VTKM_DEFINE_CELL_TRAITS (Empty, 0, 0)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS (Vertex, 0, 1)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS (Line, 1, 2)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS_VARIABLE (PolyLine, 1)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS (Triangle, 2, 3)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS_VARIABLE (Polygon, 2)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS (Quad, 2, 4)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS (Tetra, 3, 4)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS (Hexahedron, 3, 8)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS (Wedge, 3, 6)
 
 vtkm::VTKM_DEFINE_CELL_TRAITS (Pyramid, 3, 5)
 

Macro Definition Documentation

◆ VTKM_DEFINE_CELL_TRAITS

#define VTKM_DEFINE_CELL_TRAITS (   name,
  dimensions,
  numPoints 
)
Value:
template <> \
struct CellTraits<vtkm::CellShapeTag##name> \
{ \
static constexpr vtkm::IdComponent TOPOLOGICAL_DIMENSIONS = dimensions; \
using IsSizeFixed = vtkm::CellTraitsTagSizeFixed; \
static constexpr vtkm::IdComponent NUM_POINTS = numPoints; \
}

◆ VTKM_DEFINE_CELL_TRAITS_VARIABLE

#define VTKM_DEFINE_CELL_TRAITS_VARIABLE (   name,
  dimensions 
)
Value:
template <> \
struct CellTraits<vtkm::CellShapeTag##name> \
{ \
static constexpr vtkm::IdComponent TOPOLOGICAL_DIMENSIONS = dimensions; \
using IsSizeFixed = vtkm::CellTraitsTagSizeVariable; \
}
vtkm::IdComponent
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
vtkm::CellTraitsTagSizeVariable
Tag for cell shapes that can have a variable number of points.
Definition: CellTraits.h:35
vtkm::CellTopologicalDimensionsTag
vtkm::CellTraits::TopologyDimensionType is typedef to this with the template parameter set to TOPOLOG...
Definition: CellTraits.h:23
vtkm::CellTraitsTagSizeFixed
Tag for cell shapes with a fixed number of points.
Definition: CellTraits.h:29