VTK
vtkBridgePointIteratorOnCell.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgePointIteratorOnCell.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 =========================================================================*/
26 #ifndef vtkBridgePointIteratorOnCell_h
27 #define vtkBridgePointIteratorOnCell_h
28 
29 #include "vtkBridgeExport.h" //for module export macro
31 
32 class vtkBridgeDataSet;
33 class vtkBridgeCell;
34 class vtkIdList;
35 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44  void Begin();
45 
47  int IsAtEnd();
48 
51  void Next();
52 
55  double *GetPosition();
56 
59  void GetPosition(double x[3]);
60 
63  vtkIdType GetId();
64 
67  void InitWithCell(vtkBridgeCell *cell);
68 
69 protected:
72 
75 
76  vtkBridgeDataSet *DataSet; // the structure on which the objet iterates.
77  vtkIdType Cursor; // current position
78 
79  vtkIdList *PtIds; // list of points of the cell
80 
81 private:
83  void operator=(const vtkBridgePointIteratorOnCell&); // Not implemented
84 };
85 
86 #endif
virtual vtkIdType GetId()=0
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:37
#define VTKTESTINGGENERICBRIDGE_EXPORT
int vtkIdType
Definition: vtkType.h:247
iterator used to traverse points
Implementation of vtkGenericDataSet.
virtual void Begin()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Next()=0
list of point or cell ids
Definition: vtkIdList.h:35
virtual double * GetPosition()=0
Implementation of vtkGenericPointIterator.
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent)
virtual int IsAtEnd()=0