VTK  9.3.0
vtkStaticCellLinks.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
34 #ifndef vtkStaticCellLinks_h
35 #define vtkStaticCellLinks_h
36 
37 #include "vtkAbstractCellLinks.h"
38 #include "vtkCommonDataModelModule.h" // For export macro
39 #include "vtkStaticCellLinksTemplate.h" // For implementations
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class vtkDataSet;
43 class vtkCellArray;
44 
45 class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
46 {
47 public:
49 
54  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
60  void BuildLinks() override;
61 
65  vtkIdType GetNumberOfCells(vtkIdType ptId) { return this->Impl->GetNumberOfCells(ptId); }
66 
71  vtkIdType GetNcells(vtkIdType ptId) { return this->Impl->GetNumberOfCells(ptId); }
72 
76  vtkIdType* GetCells(vtkIdType ptId) { return this->Impl->GetCells(ptId); }
77 
79 
86  void SelectCells(vtkIdType minMaxDegree[2], unsigned char* cellSelection) override
87  {
88  return this->Impl->SelectCells(minMaxDegree, cellSelection);
89  }
91 
95  void Initialize() override
96  {
97  this->Impl->Initialize();
98  this->Modified();
99  }
100 
104  void Squeeze() override {}
105 
109  void Reset() override {}
110 
119  unsigned long GetActualMemorySize() override { return this->Impl->GetActualMemorySize(); }
120 
125  void DeepCopy(vtkAbstractCellLinks* src) override;
126 
127 protected:
130 
132 
133 private:
134  vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
135  void operator=(const vtkStaticCellLinks&) = delete;
136 };
137 
138 VTK_ABI_NAMESPACE_END
139 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:185
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Modified()
Update the modification time for this object.
int vtkIdType
Definition: vtkType.h:315