VTK
vtkDirectedAcyclicGraph.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDirectedAcyclicGraph.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-------------------------------------------------------------------------*/
49#ifndef vtkDirectedAcyclicGraph_h
50#define vtkDirectedAcyclicGraph_h
51
52#include "vtkCommonDataModelModule.h" // For export macro
53#include "vtkDirectedGraph.h"
54
55class vtkIdTypeArray;
56
57class VTKCOMMONDATAMODEL_EXPORT vtkDirectedAcyclicGraph : public vtkDirectedGraph
58{
59public:
62 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
63
67 int GetDataObjectType() VTK_OVERRIDE {return VTK_DIRECTED_ACYCLIC_GRAPH;}
68
70
76
77protected:
80
85 bool IsStructureValid(vtkGraph *g) VTK_OVERRIDE;
86
87private:
88 vtkDirectedAcyclicGraph(const vtkDirectedAcyclicGraph&) VTK_DELETE_FUNCTION;
89 void operator=(const vtkDirectedAcyclicGraph&) VTK_DELETE_FUNCTION;
90};
91
92#endif
A rooted tree data structure.
static vtkDirectedAcyclicGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
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.
static vtkDirectedAcyclicGraph * New()
static vtkDirectedAcyclicGraph * GetData(vtkInformationVector *v, int i=0)
~vtkDirectedAcyclicGraph() override
A directed graph.
Base class for graph data types.
Definition: vtkGraph.h:288
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
#define VTK_DIRECTED_ACYCLIC_GRAPH
Definition: vtkType.h:113