VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
30 #include "vtkGenericPointIterator.h"
31 
32 class vtkBridgeDataSet;
33 class vtkBridgeCell;
34 class vtkIdList;
35 
36 class VTKTESTINGGENERICBRIDGE_EXPORT vtkBridgePointIteratorOnCell : public vtkGenericPointIterator
37 {
38 public:
39  static vtkBridgePointIteratorOnCell *New();
40  vtkTypeMacro(vtkBridgePointIteratorOnCell,vtkGenericPointIterator);
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
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:37
Implementation of vtkGenericDataSet.
Implementation of vtkGenericPointIterator.