VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKCOMMONDATAMODEL_EXPORT VTK_MARSHALAUTO vtkDirectedGraph : public vtkGraph
34 {
35 public:
36  static vtkDirectedGraph* New();
37  vtkTypeMacro(vtkDirectedGraph, vtkGraph);
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  int GetDataObjectType() VTK_FUTURE_CONST override { return VTK_DIRECTED_GRAPH; }
44 
46 
50  static vtkDirectedGraph* GetData(vtkInformationVector* v, int i = 0);
52 
58  bool IsStructureValid(vtkGraph* g) override;
59 
60 protected:
62  ~vtkDirectedGraph() override;
63 
64 private:
65  vtkDirectedGraph(const vtkDirectedGraph&) = delete;
66  void operator=(const vtkDirectedGraph&) = delete;
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
static vtkGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
A directed graph.
Base class for graph data types.
Definition: vtkGraph.h:282
a simple class to control print indentation
Definition: vtkIndent.h:28
int GetDataObjectType() VTK_FUTURE_CONST 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.
virtual bool IsStructureValid(vtkGraph *g)=0
Subclasses override this method to accept the structure based on their requirements.
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO