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
51 #include "vtkAbstractCellLinks.h"
52 #include "vtkStaticCellLinksTemplate.h" // For implementations
53 
54 class vtkDataSet;
55 class vtkCellArray;
56 
57 
58 class VTKCOMMONDATAMODEL_EXPORT vtkStaticCellLinks : public vtkAbstractCellLinks
59 {
60 public:
62 
65  static vtkStaticCellLinks *New();
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 
98  void Initialize()
99  {this->Impl->Initialize();}
100 
101 protected:
103  ~vtkStaticCellLinks() VTK_OVERRIDE;
104 
106 
107 private:
108  vtkStaticCellLinks(const vtkStaticCellLinks&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkStaticCellLinks&) VTK_DELETE_FUNCTION;
110 
111 };
112 
113 
114 #endif
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkStaticCellLinksTemplate
object represents upward pointers from points to list of cells using each point (template implementat...
Definition: vtkStaticCellLinksTemplate.h:58
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkStaticCellLinksTemplate.h