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 =========================================================================*/
46 #ifndef vtkStaticCellLinks_h
47 #define vtkStaticCellLinks_h
48 
49 #include "vtkAbstractCellLinks.h"
50 #include "vtkCommonDataModelModule.h" // For export macro
51 #include "vtkStaticCellLinksTemplate.h" // For implementations
52 
53 class vtkDataSet;
54 class vtkCellArray;
55 
56 class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
57 {
58 public:
60 
63  static vtkStaticCellLinks* New();
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  }
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 
138 protected:
140  ~vtkStaticCellLinks() override;
141 
143 
144 private:
145  vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
146  void operator=(const vtkStaticCellLinks&) = delete;
147 };
148 
149 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
int vtkIdType
Definition: vtkType.h:332
a simple class to control print indentation
Definition: vtkIndent.h:39
object to represent cell connectivity
Definition: vtkCellArray.h:186
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...