VTK  9.0.1
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 
46 #include "vtkAbstractCellLinks.h"
47 #include "vtkCommonDataModelModule.h" // For export macro
48 #include "vtkStaticCellLinksTemplate.h" // For implementations
49 
50 class vtkDataSet;
51 class vtkCellArray;
52 
53 class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
54 {
55 public:
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 
93  void Initialize() override { this->Impl->Initialize(); }
94 
98  void Squeeze() override {}
99 
103  void Reset() override {}
104 
113  unsigned long GetActualMemorySize() override { return this->Impl->GetActualMemorySize(); }
114 
119  void DeepCopy(vtkAbstractCellLinks* src) override { this->Impl->DeepCopy(src); }
120 
121 protected:
124 
126 
127 private:
128  vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
129  void operator=(const vtkStaticCellLinks&) = delete;
130 };
131 
132 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:180
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
a simple class to control print indentation
Definition: vtkIndent.h:34
int vtkIdType
Definition: vtkType.h:338