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 =========================================================================*/
46 #ifndef vtkStaticCellLinks_h
47 #define vtkStaticCellLinks_h
48 
49 #include "vtkCommonDataModelModule.h" // For export macro
50 #include "vtkAbstractCellLinks.h"
51 #include "vtkStaticCellLinksTemplate.h" // For implementations
52 
53 class vtkDataSet;
54 class vtkCellArray;
55 
56 
58 {
59 public:
61 
62  static vtkStaticCellLinks *New();
64  void PrintSelf(ostream& os, vtkIndent indent);
66 
68 
69  virtual void BuildLinks(vtkDataSet *ds)
70  {this->Impl->BuildLinks(ds);}
72 
74 
76  {return this->Impl->GetNumberOfCells(ptId);}
78 
80 
82  unsigned short GetNcells(vtkIdType ptId)
83  { return static_cast<unsigned short>(this->GetNumberOfCells(ptId)); }
85 
87 
89  {return this->Impl->GetCells(ptId);}
91 
93 
94  void Initialize()
95  {this->Impl->Initialize();}
97 
98 protected:
100  virtual ~vtkStaticCellLinks();
101 
103 
104 private:
105  vtkStaticCellLinks(const vtkStaticCellLinks&); // Not implemented.
106  void operator=(const vtkStaticCellLinks&); // Not implemented.
107 
108 };
109 
110 
111 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
int vtkIdType
Definition: vtkType.h:247
a simple class to control print indentation
Definition: vtkIndent.h:38
object to represent cell connectivity
Definition: vtkCellArray.h:49
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT