VTK  9.2.6
vtkStaticCellLinks.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkStaticCellLinks.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
45
46#ifndef vtkStaticCellLinks_h
47#define vtkStaticCellLinks_h
48
50#include "vtkCommonDataModelModule.h" // For export macro
51#include "vtkStaticCellLinksTemplate.h" // For implementations
52
53class vtkDataSet;
54class vtkCellArray;
55
56class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
57{
58public:
60
65 void PrintSelf(ostream& os, vtkIndent indent) override;
67
71 void BuildLinks(vtkDataSet* ds) override
72 {
73 this->Impl->SetSequentialProcessing(this->SequentialProcessing);
74 this->Impl->BuildLinks(ds);
75 }
76
80 vtkIdType GetNumberOfCells(vtkIdType ptId) { return this->Impl->GetNumberOfCells(ptId); }
81
86 vtkIdType GetNcells(vtkIdType ptId) { return this->Impl->GetNumberOfCells(ptId); }
87
91 vtkIdType* GetCells(vtkIdType ptId) { return this->Impl->GetCells(ptId); }
92
94
101 void SelectCells(vtkIdType minMaxDegree[2], unsigned char* cellSelection) override
102 {
103 return this->Impl->SelectCells(minMaxDegree, cellSelection);
104 }
105
106
110 void Initialize() override { this->Impl->Initialize(); }
111
115 void Squeeze() override {}
116
120 void Reset() override {}
121
130 unsigned long GetActualMemorySize() override { return this->Impl->GetActualMemorySize(); }
131
136 void DeepCopy(vtkAbstractCellLinks* src) override { this->Impl->DeepCopy(src); }
137
138protected:
141
143
144private:
145 vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
146 void operator=(const vtkStaticCellLinks&) = delete;
147};
148
149#endif
object to represent cell connectivity
abstract class to specify dataset behavior
Definition vtkDataSet.h:63
a simple class to control print indentation
Definition vtkIndent.h:40
object represents upward pointers from points to list of cells using each point (template implementat...
int vtkIdType
Definition vtkType.h:332