VMTK
Loading...
Searching...
No Matches
vtkvmtkDataSetItem.cxx
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkDataSetItem.cxx,v $
5 Language: C++
6 Date: $Date: 2005/11/15 17:39:25 $
7 Version: $Revision: 1.3 $
8
9 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
10 See LICENSE file for details.
11
12 Portions of this code are covered under the VTK copyright.
13 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
14 for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notices for more information.
19
20=========================================================================*/
21
22#include "vtkvmtkDataSetItem.h"
23#include "vtkObjectFactory.h"
24
25
26
28 {
29 this->DataSetPointId = -1;
30 this->DataSet = NULL;
31 this->ReallocateOnBuild = 0;
32 }
33
35 {
36 this->Superclass::DeepCopy(src);
37
39
40 if (dataSetItemSrc==NULL)
41 {
42 vtkErrorMacro(<<"Trying to deep copy a non-stencil item");
43 }
44
45 this->SetDataSet(dataSetItemSrc->GetDataSet());
46 this->DataSetPointId = dataSetItemSrc->DataSetPointId;
47
48 }
vtkDataSet * GetDataSet()
static vtkvmtkDataSetItem * SafeDownCast(vtkObjectBase *o)
void SetDataSet(vtkDataSet *dataSet)
virtual void DeepCopy(vtkvmtkItem *src) override
virtual void DeepCopy(vtkvmtkItem *src)