VTK  9.5.20250715
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
41
42VTK_ABI_NAMESPACE_BEGIN
43class vtkDataSet;
44class vtkCellArray;
45
46class VTKCOMMONDATAMODEL_EXPORT VTK_MARSHALAUTO vtkStaticCellLinks : public vtkAbstractCellLinks
47{
48public:
50
55 void PrintSelf(ostream& os, vtkIndent indent) override;
57
61 void BuildLinks() override;
62
66 vtkIdType GetNumberOfCells(vtkIdType ptId) { return this->Impl->GetNumberOfCells(ptId); }
67
72 vtkIdType GetNcells(vtkIdType ptId) VTK_FUTURE_CONST
73 {
74 return this->Impl->GetNumberOfCells(ptId);
75 }
76
80 vtkIdType* GetCells(vtkIdType ptId) { return this->Impl->GetCells(ptId); }
81
83
90 void SelectCells(vtkIdType minMaxDegree[2], unsigned char* cellSelection) override
91 {
92 this->Impl->SelectCells(minMaxDegree, cellSelection);
93 }
95
99 void Initialize() override
100 {
101 this->Impl->Initialize();
102 this->Modified();
103 }
104
108 void Squeeze() override {}
109
113 void Reset() override {}
114
123 unsigned long GetActualMemorySize() override { return this->Impl->GetActualMemorySize(); }
124
130 void DeepCopy(vtkAbstractCellLinks* src) override;
131
138
139protected:
142
144
145private:
146 vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
147 void operator=(const vtkStaticCellLinks&) = delete;
148};
149
150VTK_ABI_NAMESPACE_END
151#endif
object to represent cell connectivity
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
a simple class to control print indentation
Definition vtkIndent.h:108
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:332
#define VTK_MARSHALAUTO