VTK  9.2.6
vtkDirectedGraph.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDirectedGraph.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 -------------------------------------------------------------------------*/
80 #ifndef vtkDirectedGraph_h
81 #define vtkDirectedGraph_h
82 
83 #include "vtkCommonDataModelModule.h" // For export macro
84 #include "vtkGraph.h"
85 
86 class VTKCOMMONDATAMODEL_EXPORT vtkDirectedGraph : public vtkGraph
87 {
88 public:
89  static vtkDirectedGraph* New();
90  vtkTypeMacro(vtkDirectedGraph, vtkGraph);
91  void PrintSelf(ostream& os, vtkIndent indent) override;
92 
96  int GetDataObjectType() override { return VTK_DIRECTED_GRAPH; }
97 
99 
105 
111  bool IsStructureValid(vtkGraph* g) override;
112 
113 protected:
115  ~vtkDirectedGraph() override;
116 
117 private:
118  vtkDirectedGraph(const vtkDirectedGraph&) = delete;
119  void operator=(const vtkDirectedGraph&) = delete;
120 };
121 
122 #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:345
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:382
#define VTK_DIRECTED_GRAPH
Definition: vtkType.h:100