MCPcopy Create free account
hub / github.com/Kitware/VTK / GenTargetVar

Function GenTargetVar

Common/DataModel/vtkPolyDataInternals.h:109–113  ·  view source on GitHub ↗

Convenience method to concatenate a target and type variant into the low four bits of a single byte. Used to build the TargetVarTable.

Source from the content-addressed store, hash-verified

107// Convenience method to concatenate a target and type variant into the low
108// four bits of a single byte. Used to build the TargetVarTable.
109static constexpr unsigned char GenTargetVar(Target target, TypeVariant var) noexcept
110{
111 return static_cast<unsigned char>(
112 (static_cast<vtkTypeUInt64>(target) | static_cast<vtkTypeUInt64>(var)) >> 60);
113}
114
115// Lookup table that maps a VTK cell type (eg. VTK_TRIANGLE) into a target +
116// type variant byte.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected