VTK
vtkMergeGraphs.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMergeGraphs.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 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
47 #ifndef vtkMergeGraphs_h
48 #define vtkMergeGraphs_h
49 
50 #include "vtkInfovisCoreModule.h" // For export macro
51 #include "vtkGraphAlgorithm.h"
52 
53 class vtkBitArray;
55 class vtkStringArray;
56 class vtkTable;
57 
58 class VTKINFOVISCORE_EXPORT vtkMergeGraphs : public vtkGraphAlgorithm
59 {
60 public:
61  static vtkMergeGraphs* New();
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
69  int ExtendGraph(vtkMutableGraphHelper* g1, vtkGraph* g2);
70 
72 
76  vtkSetMacro(UseEdgeWindow, bool);
77  vtkGetMacro(UseEdgeWindow, bool);
78  vtkBooleanMacro(UseEdgeWindow, bool);
80 
82 
85  vtkSetStringMacro(EdgeWindowArrayName);
86  vtkGetStringMacro(EdgeWindowArrayName);
88 
90 
96  vtkSetMacro(EdgeWindow, double);
97  vtkGetMacro(EdgeWindow, double);
99 
100 protected:
101  vtkMergeGraphs();
102  ~vtkMergeGraphs() override;
103 
104  int RequestData(
107  vtkInformationVector*) override;
108 
109  int FillInputPortInformation(int port, vtkInformation *info) override;
110 
113  double EdgeWindow;
114 
115 private:
116  vtkMergeGraphs(const vtkMergeGraphs&) = delete;
117  void operator=(const vtkMergeGraphs&) = delete;
118 };
119 
120 #endif
121 
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkMutableGraphHelper
Helper class for building a directed or directed graph.
Definition: vtkMutableGraphHelper.h:47
vtkMergeGraphs::EdgeWindow
double EdgeWindow
Definition: vtkMergeGraphs.h:113
vtkMergeGraphs::UseEdgeWindow
bool UseEdgeWindow
Definition: vtkMergeGraphs.h:111
vtkGraphAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
Definition: vtkX3D.h:447
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMergeGraphs::EdgeWindowArrayName
char * EdgeWindowArrayName
Definition: vtkMergeGraphs.h:112
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkMergeGraphs
combines two graphs
Definition: vtkMergeGraphs.h:58
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:36
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:281
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()