3D Human Airway Tree
Program generuje ludzkie drzewo oskrzelowe
vtkDistancePolyDataFilter.h
Idź do dokumentacji tego pliku.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDistancePolyDataFilter.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 =========================================================================*/
15 // .NAME vtkDistancePolyDataFilter
16 // .SECTION Description
17 //
18 // Computes the signed distance from one vtkPolyData to another. The
19 // signed distance to the second input is computed at every point in
20 // the first input using vtkImplicitPolyData. Optionally, the signed
21 // distance to the first input at every point in the second input can
22 // be computed. This may be enabled by calling
23 // ComputeSecondDistanceOn().
24 //
25 // If the signed distance is not desired, the unsigned distance can be
26 // computed by calling SignedDistanceOff(). The signed distance field
27 // may be negated by calling NegateDistanceOn();
28 //
29 // Written by Chris Weigle and Cory Quammen, The University of North
30 // Carolina at Chapel Hill.
31 
32 #ifndef __vtkDistancePolyDataFilter_h
33 #define __vtkDistancePolyDataFilter_h
34 
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm {
38 public:
40  vtkTypeMacro(vtkDistancePolyDataFilter, vtkPolyDataAlgorithm);
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
43  // Description:
44  // Enable/disable computation of the signed distance between
45  // the first poly data and the second poly data. Defaults to on.
49 
50  // Description:
51  // Enable/disable negation of the distance values. Defaults to
52  // off. Has no effect if SignedDistance is off.
56 
57  // Description:
58  // Enable/disable computation of a second output poly data with the
59  // distance from the first poly data at each point. Defaults to on.
63 
64  // Description:
65  // Get the second output, which is a copy of the second input with an
66  // additional distance scalar field.
67  vtkPolyData* GetSecondDistanceOutput();
68 
69 protected:
72 
73  int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
74  int FillInputPortInformation(int, vtkInformation*);
75 
76  void GetPolyDataDistance(vtkPolyData*, vtkPolyData*);
77 
81 
82 private:
83  vtkDistancePolyDataFilter(const vtkDistancePolyDataFilter&); // no implementation
84  void operator=(const vtkDistancePolyDataFilter&); // no implementation
85 };
86 
87 #endif