VMTK
vtkvmtkDataSetItem.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: VMTK
4  Module: $RCSfile: vtkvmtkDataSetItem.h,v $
5  Language: C++
6 
7  Copyright (c) Luca Antiga, David Steinman. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  This software is distributed WITHOUT ANY WARRANTY; without even
15  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  PURPOSE. See the above copyright notices for more information.
17 
18 =========================================================================*/
28 #ifndef __vtkvmtkDataSetItem_h
29 #define __vtkvmtkDataSetItem_h
30 
31 #include "vtkObject.h"
32 #include "vtkvmtkItem.h"
33 #include "vtkDataSet.h"
34 //#include "vtkvmtkDifferentialGeometryWin32Header.h"
35 #include "vtkvmtkWin32Header.h"
36 
37 class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkDataSetItem : public vtkvmtkItem
38 {
39 public:
40 
42 
43 /* vtkSetObjectMacro(DataSet,vtkDataSet); */
44 /* vtkGetObjectMacro(DataSet,vtkDataSet); */
45  void SetDataSet(vtkDataSet* dataSet) {this->DataSet = dataSet;};
46  vtkDataSet* GetDataSet() {return this->DataSet;};
47 
48  vtkSetMacro(DataSetPointId,vtkIdType);
49  vtkGetMacro(DataSetPointId,vtkIdType);
50 
52  virtual void Build() = 0;
53 
55  virtual void DeepCopy(vtkvmtkItem *src) VTK_OVERRIDE;
56 
57  vtkSetMacro(ReallocateOnBuild,int)
58  vtkGetMacro(ReallocateOnBuild,int)
59  vtkBooleanMacro(ReallocateOnBuild,int)
60 
61 protected:
64 
65  vtkDataSet *DataSet;
66  vtkIdType DataSetPointId;
67 
69 
70 private:
71  vtkvmtkDataSetItem(const vtkvmtkDataSetItem&); // Not implemented.
72  void operator=(const vtkvmtkDataSetItem&); // Not implemented.
73 };
74 
75 #endif
76 
vtkDataSet * GetDataSet()
create an item instance with a data set and particular point id.
virtual void DeepCopy(vtkvmtkItem *src)
void SetDataSet(vtkDataSet *dataSet)
Base class for the construction of neighborhoods and stencil from a set of points.
Definition: vtkvmtkItem.h:35