VMTK
Loading...
Searching...
No Matches
vtkvmtkDataSetItem.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
32
33#ifndef __vtkvmtkDataSetItem_h
34#define __vtkvmtkDataSetItem_h
35
36#include "vtkObject.h"
37#include "vtkvmtkItem.h"
38#include "vtkDataSet.h"
39//#include "vtkvmtkDifferentialGeometryWin32Header.h"
40#include "vtkvmtkWin32Header.h"
41
42class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkDataSetItem : public vtkvmtkItem
43{
44public:
45
47
49
54/* vtkSetObjectMacro(DataSet,vtkDataSet); */
55/* vtkGetObjectMacro(DataSet,vtkDataSet); */
56 void SetDataSet(vtkDataSet* dataSet) {this->DataSet = dataSet;};
57 vtkDataSet* GetDataSet() {return this->DataSet;};
59
61
65 vtkSetMacro(DataSetPointId,vtkIdType);
66 vtkGetMacro(DataSetPointId,vtkIdType);
68
72 virtual void Build() = 0;
73
77 virtual void DeepCopy(vtkvmtkItem *src) override;
78
80
84 vtkSetMacro(ReallocateOnBuild,int)
85 vtkGetMacro(ReallocateOnBuild,int)
86 vtkBooleanMacro(ReallocateOnBuild,int)
88
89protected:
92
93 vtkDataSet *DataSet;
94 vtkIdType DataSetPointId;
95
97
98private:
99 vtkvmtkDataSetItem(const vtkvmtkDataSetItem&); // Not implemented.
100 void operator=(const vtkvmtkDataSetItem&); // Not implemented.
101};
102
103#endif
104
virtual void Build()=0
vtkDataSet * GetDataSet()
void SetDataSet(vtkDataSet *dataSet)
virtual void DeepCopy(vtkvmtkItem *src)