VTK
vtkTreeDifferenceFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeDifferenceFilter.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 
32 #ifndef vtkTreeDifferenceFilter_h
33 #define vtkTreeDifferenceFilter_h
34 
35 #include "vtkInfovisCoreModule.h" // For export macro
36 #include "vtkGraphAlgorithm.h"
37 
38 #include "vtkSmartPointer.h" // For ivars
39 #include <vector> // For ivars
40 
41 class vtkDoubleArray;
42 class vtkTree;
43 
44 class VTKINFOVISCORE_EXPORT vtkTreeDifferenceFilter : public vtkGraphAlgorithm
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
62  vtkSetStringMacro(IdArrayName);
63  vtkGetStringMacro(IdArrayName);
65 
67 
71  vtkSetStringMacro(ComparisonArrayName);
72  vtkGetStringMacro(ComparisonArrayName);
74 
76 
83  vtkSetStringMacro(OutputArrayName);
84  vtkGetStringMacro(OutputArrayName);
86 
88 
93  vtkSetMacro(ComparisonArrayIsVertexData, bool);
94  vtkGetMacro(ComparisonArrayIsVertexData, bool);
96 
97 protected:
100 
101  virtual int RequestData(
105 
107 
113  bool GenerateMapping(vtkTree *tree1, vtkTree *tree2);
114 
120  vtkTree *tree2);
121 
122  char* IdArrayName;
126 
127  std::vector< vtkIdType > VertexMap;
128  std::vector< vtkIdType > EdgeMap;
129 
130 private:
131  vtkTreeDifferenceFilter(const vtkTreeDifferenceFilter&) VTK_DELETE_FUNCTION;
132  void operator=(const vtkTreeDifferenceFilter&) VTK_DELETE_FUNCTION;
133 };
134 
135 #endif
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:55
vtkTreeDifferenceFilter::VertexMap
std::vector< vtkIdType > VertexMap
Definition: vtkTreeDifferenceFilter.h:127
vtkTreeDifferenceFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTreeDifferenceFilter::New
static vtkTreeDifferenceFilter * New()
vtkSmartPointer< vtkDoubleArray >
vtkTreeDifferenceFilter::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkTreeDifferenceFilter::ComparisonArrayIsVertexData
bool ComparisonArrayIsVertexData
Definition: vtkTreeDifferenceFilter.h:125
vtkTreeDifferenceFilter::~vtkTreeDifferenceFilter
~vtkTreeDifferenceFilter()
vtkTreeDifferenceFilter::EdgeMap
std::vector< vtkIdType > EdgeMap
Definition: vtkTreeDifferenceFilter.h:128
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:61
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTreeDifferenceFilter::OutputArrayName
char * OutputArrayName
Definition: vtkTreeDifferenceFilter.h:124
vtkGraphAlgorithm.h
vtkTreeDifferenceFilter::IdArrayName
char * IdArrayName
Definition: vtkTreeDifferenceFilter.h:122
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSmartPointer.h
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTreeDifferenceFilter
compare two trees
Definition: vtkTreeDifferenceFilter.h:45
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkTreeDifferenceFilter::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkTreeDifferenceFilter::ComputeDifference
vtkSmartPointer< vtkDoubleArray > ComputeDifference(vtkTree *tree1, vtkTree *tree2)
Compute the differences between tree #1 and tree #2's copies of the comparison array.
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:42
vtkTreeDifferenceFilter::ComparisonArrayName
char * ComparisonArrayName
Definition: vtkTreeDifferenceFilter.h:123
vtkTreeDifferenceFilter::GenerateMapping
bool GenerateMapping(vtkTree *tree1, vtkTree *tree2)
Populate VertexMap and EdgeMap with meaningful values.
vtkTreeDifferenceFilter::vtkTreeDifferenceFilter
vtkTreeDifferenceFilter()