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=========================================================================*/
47#ifndef vtkStaticCellLinks_h
48#define vtkStaticCellLinks_h
49
50#include "vtkCommonDataModelModule.h" // For export macro
52#include "vtkStaticCellLinksTemplate.h" // For implementations
53
54class vtkDataSet;
55class vtkCellArray;
56
57
58class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
59{
60public:
62
67 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
69
73 void BuildLinks(vtkDataSet *ds) VTK_OVERRIDE
74 {this->Impl->BuildLinks(ds);}
75
80 {return this->Impl->GetNumberOfCells(ptId);}
81
86 unsigned short GetNcells(vtkIdType ptId)
87 { return static_cast<unsigned short>(this->GetNumberOfCells(ptId)); }
88
93 {return this->Impl->GetCells(ptId);}
94
99 {this->Impl->Initialize();}
100
101protected:
103 ~vtkStaticCellLinks() VTK_OVERRIDE;
104
106
107private:
108 vtkStaticCellLinks(const vtkStaticCellLinks&) VTK_DELETE_FUNCTION;
109 void operator=(const vtkStaticCellLinks&) VTK_DELETE_FUNCTION;
110
111};
112
113
114#endif
object to represent cell connectivity
Definition: vtkCellArray.h:51
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:287