VTK  9.3.20240328
vtkDirectedGraph.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
54 #ifndef vtkDirectedGraph_h
55 #define vtkDirectedGraph_h
56 
57 #include "vtkCommonDataModelModule.h" // For export macro
58 #include "vtkGraph.h"
59 
60 VTK_ABI_NAMESPACE_BEGIN
61 class VTKCOMMONDATAMODEL_EXPORT vtkDirectedGraph : public vtkGraph
62 {
63 public:
64  static vtkDirectedGraph* New();
65  vtkTypeMacro(vtkDirectedGraph, vtkGraph);
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
71  int GetDataObjectType() override { return VTK_DIRECTED_GRAPH; }
72 
74 
80 
86  bool IsStructureValid(vtkGraph* g) override;
87 
88 protected:
90  ~vtkDirectedGraph() override;
91 
92 private:
93  vtkDirectedGraph(const vtkDirectedGraph&) = delete;
94  void operator=(const vtkDirectedGraph&) = delete;
95 };
96 
97 VTK_ABI_NAMESPACE_END
98 #endif
A directed graph.
int GetDataObjectType() override
Return what type of dataset this is.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool IsStructureValid(vtkGraph *g) override
Check the storage, and accept it if it is a valid undirected graph.
static vtkDirectedGraph * New()
static vtkDirectedGraph * GetData(vtkInformationVector *v, int i=0)
Retrieve a graph from an information vector.
~vtkDirectedGraph() override
static vtkDirectedGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
Base class for graph data types.
Definition: vtkGraph.h:340
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
#define VTK_DIRECTED_GRAPH
Definition: vtkType.h:88