VTK
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 =========================================================================*/
44 #ifndef vtkStaticCellLinks_h
45 #define vtkStaticCellLinks_h
46 
47 #include "vtkCommonDataModelModule.h" // For export macro
48 #include "vtkAbstractCellLinks.h"
49 #include "vtkStaticCellLinksTemplate.h" // For implementations
50 
51 class vtkDataSet;
52 class vtkCellArray;
53 
54 
55 class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
56 {
57 public:
59 
62  static vtkStaticCellLinks *New();
64  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
70  void BuildLinks(vtkDataSet *ds) override
71  {this->Impl->BuildLinks(ds);}
72 
77  {return this->Impl->GetNumberOfCells(ptId);}
78 
83  unsigned short GetNcells(vtkIdType ptId)
84  { return static_cast<unsigned short>(this->GetNumberOfCells(ptId)); }
85 
90  {return this->Impl->GetCells(ptId);}
91 
95  void Initialize()
96  {this->Impl->Initialize();}
97 
98 protected:
100  ~vtkStaticCellLinks() override;
101 
103 
104 private:
105  vtkStaticCellLinks(const vtkStaticCellLinks&) = delete;
106  void operator=(const vtkStaticCellLinks&) = delete;
107 
108 };
109 
110 
111 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
int vtkIdType
Definition: vtkType.h:347
a simple class to control print indentation
Definition: vtkIndent.h:33
object to represent cell connectivity
Definition: vtkCellArray.h:44
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.