VTK  9.0.1
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 -------------------------------------------------------------------------*/
38 #ifndef vtkDirectedGraph_h
39 #define vtkDirectedGraph_h
40 
41 #include "vtkCommonDataModelModule.h" // For export macro
42 #include "vtkGraph.h"
43 
44 class VTKCOMMONDATAMODEL_EXPORT vtkDirectedGraph : public vtkGraph
45 {
46 public:
47  static vtkDirectedGraph* New();
48  vtkTypeMacro(vtkDirectedGraph, vtkGraph);
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
54  int GetDataObjectType() override { return VTK_DIRECTED_GRAPH; }
55 
57 
61  static vtkDirectedGraph* GetData(vtkInformationVector* v, int i = 0);
63 
69  bool IsStructureValid(vtkGraph* g) override;
70 
71 protected:
73  ~vtkDirectedGraph() override;
74 
75 private:
76  vtkDirectedGraph(const vtkDirectedGraph&) = delete;
77  void operator=(const vtkDirectedGraph&) = delete;
78 };
79 
80 #endif
VTK_DIRECTED_GRAPH
#define VTK_DIRECTED_GRAPH
Definition: vtkType.h:108
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkGraph::GetData
static vtkGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
vtkDirectedGraph
A directed graph.
Definition: vtkDirectedGraph.h:44
vtkGraph::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraph::IsStructureValid
virtual bool IsStructureValid(vtkGraph *g)=0
Subclasses override this method to accept the structure based on their requirements.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGraph.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkDirectedGraph::GetDataObjectType
int GetDataObjectType() override
Return what type of dataset this is.
Definition: vtkDirectedGraph.h:54
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkDataObject::New
static vtkDataObject * New()