1 /*=========================================================================
2 
3   Program:   Visualization Toolkit
4   Module:    vtkPolyDataContourLineInterpolator.cxx
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 =========================================================================*/
15 #include "vtkPolyDataContourLineInterpolator.h"
16 
17 #include "vtkObjectFactory.h"
18 #include "vtkContourRepresentation.h"
19 #include "vtkPolyData.h"
20 #include "vtkMath.h"
21 #include "vtkPolyDataCollection.h"
22 
23 
24 //----------------------------------------------------------------------
vtkPolyDataContourLineInterpolator()25 vtkPolyDataContourLineInterpolator::vtkPolyDataContourLineInterpolator()
26 {
27   this->Polys = vtkPolyDataCollection::New();
28 }
29 
30 //----------------------------------------------------------------------
~vtkPolyDataContourLineInterpolator()31 vtkPolyDataContourLineInterpolator::~vtkPolyDataContourLineInterpolator()
32 {
33   this->Polys->Delete();
34 }
35 
36 //----------------------------------------------------------------------
PrintSelf(ostream & os,vtkIndent indent)37 void vtkPolyDataContourLineInterpolator::PrintSelf(ostream& os, vtkIndent indent)
38 {
39   this->Superclass::PrintSelf(os,indent);
40 
41   os << indent << "Polys: \n";
42   this->Polys->PrintSelf(os,indent.GetNextIndent());
43 
44 }
45