VTK  9.3.20240419
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 
126  void DeepCopy(vtkAbstractCellLinks* src) override;
127 
133  void ShallowCopy(vtkAbstractCellLinks* src) override;
134 
135 protected:
138 
140 
141 private:
142  vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
143  void operator=(const vtkStaticCellLinks&) = delete;
144 };
145 
146 VTK_ABI_NAMESPACE_END
147 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:286
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:108
virtual void Modified()
Update the modification time for this object.
int vtkIdType
Definition: vtkType.h:315