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
38#include "vtkCommonDataModelModule.h" // For export macro
39#include "vtkStaticCellLinksTemplate.h" // For implementations
40
41VTK_ABI_NAMESPACE_BEGIN
42class vtkDataSet;
43class vtkCellArray;
44
45class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
46{
47public:
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
127protected:
130
132
133private:
134 vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
135 void operator=(const vtkStaticCellLinks&) = delete;
136};
137
138VTK_ABI_NAMESPACE_END
139#endif
object to represent cell connectivity
abstract class to specify dataset behavior
Definition vtkDataSet.h:53
a simple class to control print indentation
Definition vtkIndent.h:29
virtual void Modified()
Update the modification time for this object.
object represents upward pointers from points to list of cells using each point (template implementat...
int vtkIdType
Definition vtkType.h:315