VTK  9.3.1
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
25 #ifndef vtkDirectedGraph_h
26 #define vtkDirectedGraph_h
27 
28 #include "vtkCommonDataModelModule.h" // For export macro
29 #include "vtkGraph.h"
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class VTKCOMMONDATAMODEL_EXPORT vtkDirectedGraph : public vtkGraph
33 {
34 public:
35  static vtkDirectedGraph* New();
36  vtkTypeMacro(vtkDirectedGraph, vtkGraph);
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
42  int GetDataObjectType() override { return VTK_DIRECTED_GRAPH; }
43 
45 
49  static vtkDirectedGraph* GetData(vtkInformationVector* v, int i = 0);
51 
57  bool IsStructureValid(vtkGraph* g) override;
58 
59 protected:
61  ~vtkDirectedGraph() override;
62 
63 private:
64  vtkDirectedGraph(const vtkDirectedGraph&) = delete;
65  void operator=(const vtkDirectedGraph&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
int GetDataObjectType() override
Return what type of dataset this is.
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
#define VTK_DIRECTED_GRAPH
Definition: vtkType.h:88
static vtkGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
A directed graph.
Base class for graph data types.
Definition: vtkGraph.h:280
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool IsStructureValid(vtkGraph *g)=0
Subclasses override this method to accept the structure based on their requirements.
Store zero or more vtkInformation instances.