VTK
vtkExtractSelectedGraph.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractSelectedGraph.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 -------------------------------------------------------------------------*/
37 #ifndef vtkExtractSelectedGraph_h
38 #define vtkExtractSelectedGraph_h
39 
40 #include "vtkInfovisCoreModule.h" // For export macro
41 #include "vtkGraphAlgorithm.h"
42 
43 class vtkSelection;
44 class vtkDataSet;
45 
46 class VTKINFOVISCORE_EXPORT vtkExtractSelectedGraph : public vtkGraphAlgorithm
47 {
48 public:
49  static vtkExtractSelectedGraph* New();
51  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
52 
56  void SetSelectionConnection(vtkAlgorithmOutput* in);
57 
61  void SetAnnotationLayersConnection(vtkAlgorithmOutput* in);
62 
64 
69  vtkSetMacro(RemoveIsolatedVertices, bool);
70  vtkGetMacro(RemoveIsolatedVertices, bool);
71  vtkBooleanMacro(RemoveIsolatedVertices, bool);
73 
77  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
78 
79 protected:
81  ~vtkExtractSelectedGraph() VTK_OVERRIDE;
82 
83  int RequestData(
86  vtkInformationVector*) VTK_OVERRIDE;
87 
88  int RequestDataObject(
91  vtkInformationVector*) VTK_OVERRIDE;
92 
93  bool RemoveIsolatedVertices;
94 
95 private:
96  vtkExtractSelectedGraph(const vtkExtractSelectedGraph&) VTK_DELETE_FUNCTION;
97  void operator=(const vtkExtractSelectedGraph&) VTK_DELETE_FUNCTION;
98 };
99 
100 #endif
101 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
A node in a selection tree.
Definition: vtkSelection.h:37
Superclass for algorithms that produce only graph as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
return a subgraph of a vtkGraph