|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   57 #ifndef vtkPolyDataInternals_h 
   58 #define vtkPolyDataInternals_h 
   60 #ifndef __VTK_WRAP__ // Don't wrap this class. 
   62 #include "vtkCommonDataModelModule.h"  
   74 static constexpr vtkTypeUInt64 
CELLID_MASK = 0x0fffffffffffffffull;
 
  124   return static_cast<unsigned char>(
 
  125     (
static_cast<vtkTypeUInt64
>(
target) | 
static_cast<vtkTypeUInt64
>(var)) >> 60);
 
  151     const size_t typeIndex = 
static_cast<size_t>(
type);
 
  152     return ((
static_cast<vtkTypeUInt64
>(cellId) & 
CELLID_MASK) |
 
  181     this->Value |= (
static_cast<vtkTypeUInt64
>(cellId) & 
CELLID_MASK);
 
  199   std::size_t GetTypeIndex() const noexcept { 
return static_cast<std::size_t
>(this->Value >> 60); }
 
  212     return cellType > 0 && cellType <= 10 && cellType != 
VTK_PIXEL;
 
  219       (
static_cast<vtkTypeUInt64
>(cellId) & 
CELLID_MASK) == 
static_cast<vtkTypeUInt64
>(cellId));
 
  226       this->Map = other->
Map;
 
  240     return this->Map[
static_cast<std::size_t
>(cellId)];
 
  246     this->Map.emplace_back(cellId, cellType);
 
  254     this->Map.emplace_back(
vtkIdType(0), cellType);
 
  255     return this->Map.back();
 
  264     this->Map.shrink_to_fit(); 
 
  270     return static_cast<unsigned long>(
sizeof(
TaggedCellId) * this->Map.capacity() + 1023) / 1024;
 
  277   std::vector<TaggedCellId> 
Map;
 
  286 #endif // __VTK_WRAP__ 
  287 #endif // vtkPolyDataInternals.h 
  
static constexpr unsigned char GenTargetVar(Target target, TypeVariant var) noexcept
static vtkTypeUInt64 Encode(vtkIdType cellId, VTKCellType type) noexcept
void DeepCopy(CellMap *other)
static bool ValidateCellId(vtkIdType cellId) noexcept
abstract base class for most VTK objects
static bool ValidateCellType(VTKCellType cellType) noexcept
TaggedCellId & GetTag(vtkIdType cellId)
static constexpr vtkTypeUInt64 TYPE_VARIANT_MASK
vtkIdType GetCellId() const noexcept
static constexpr vtkTypeUInt64 CELLID_MASK
void SetCellId(vtkIdType cellId) noexcept
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
TaggedCellId & InsertNextCell(VTKCellType cellType)
bool IsDeleted() const noexcept
unsigned long GetActualMemorySize() const
unsigned char GetCellType() const noexcept
void SetCapacity(vtkIdType numCells)
static constexpr vtkTypeUInt64 SHIFTED_TYPE_INDEX_MASK
std::vector< TaggedCellId > Map
const TaggedCellId & GetTag(vtkIdType cellId) const
static constexpr vtkTypeUInt64 TARGET_MASK
static constexpr unsigned char TargetVarTable[10]
void MarkDeleted() noexcept
vtkIdType GetNumberOfCells() const
static constexpr unsigned char TypeTable[16]
void InsertNextCell(vtkIdType cellId, VTKCellType cellType)