VTK
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 -------------------------------------------------------------------------*/
41 #ifndef vtkDirectedGraph_h
42 #define vtkDirectedGraph_h
43 
44 #include "vtkCommonDataModelModule.h" // For export macro
45 #include "vtkGraph.h"
46 
47 class VTKCOMMONDATAMODEL_EXPORT vtkDirectedGraph : public vtkGraph
48 {
49 public:
50  static vtkDirectedGraph *New();
51  vtkTypeMacro(vtkDirectedGraph, vtkGraph);
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
57  int GetDataObjectType() override {return VTK_DIRECTED_GRAPH;}
58 
60 
64  static vtkDirectedGraph *GetData(vtkInformationVector *v, int i=0);
66 
72  bool IsStructureValid(vtkGraph *g) override;
73 
74 protected:
76  ~vtkDirectedGraph() override;
77 
78 private:
79  vtkDirectedGraph(const vtkDirectedGraph&) = delete;
80  void operator=(const vtkDirectedGraph&) = delete;
81 };
82 
83 #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:114
static vtkGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
A directed graph.
Base class for graph data types.
Definition: vtkGraph.h:287
a simple class to control print indentation
Definition: vtkIndent.h:39
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.