VTK  9.1.0
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=========================================================================*/
43#ifndef vtkStaticCellLinks_h
44#define vtkStaticCellLinks_h
45
47#include "vtkCommonDataModelModule.h" // For export macro
48#include "vtkStaticCellLinksTemplate.h" // For implementations
49
50class vtkDataSet;
51class vtkCellArray;
52
53class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
54{
55public:
57
62 void PrintSelf(ostream& os, vtkIndent indent) override;
64
68 void BuildLinks(vtkDataSet* ds) override
69 {
70 this->Impl->SetSequentialProcessing(this->SequentialProcessing);
71 this->Impl->BuildLinks(ds);
72 }
73
77 vtkIdType GetNumberOfCells(vtkIdType ptId) { return this->Impl->GetNumberOfCells(ptId); }
78
83 vtkIdType GetNcells(vtkIdType ptId) { return this->Impl->GetNumberOfCells(ptId); }
84
88 vtkIdType* GetCells(vtkIdType ptId) { return this->Impl->GetCells(ptId); }
89
91
98 void SelectCells(vtkIdType minMaxDegree[2], unsigned char* cellSelection) override
99 {
100 return this->Impl->SelectCells(minMaxDegree, cellSelection);
101 }
103
107 void Initialize() override { this->Impl->Initialize(); }
108
112 void Squeeze() override {}
113
117 void Reset() override {}
118
127 unsigned long GetActualMemorySize() override { return this->Impl->GetActualMemorySize(); }
128
133 void DeepCopy(vtkAbstractCellLinks* src) override { this->Impl->DeepCopy(src); }
134
135protected:
138
140
141private:
142 vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
143 void operator=(const vtkStaticCellLinks&) = delete;
144};
145
146#endif
object to represent cell connectivity
Definition: vtkCellArray.h:290
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:113
int vtkIdType
Definition: vtkType.h:332