VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkDirectedAcyclicGraph.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00048 #ifndef __vtkDirectedAcyclicGraph_h 00049 #define __vtkDirectedAcyclicGraph_h 00050 00051 #include "vtkCommonDataModelModule.h" // For export macro 00052 #include "vtkDirectedGraph.h" 00053 00054 class vtkIdTypeArray; 00055 00056 class VTKCOMMONDATAMODEL_EXPORT vtkDirectedAcyclicGraph : public vtkDirectedGraph 00057 { 00058 public: 00059 static vtkDirectedAcyclicGraph *New(); 00060 vtkTypeMacro(vtkDirectedAcyclicGraph, vtkDirectedGraph); 00061 void PrintSelf(ostream& os, vtkIndent indent); 00062 00064 virtual int GetDataObjectType() {return VTK_DIRECTED_ACYCLIC_GRAPH;} 00065 00066 //BTX 00068 00069 static vtkDirectedAcyclicGraph *GetData(vtkInformation *info); 00070 static vtkDirectedAcyclicGraph *GetData(vtkInformationVector *v, int i=0); 00071 //ETX 00073 00074 protected: 00075 vtkDirectedAcyclicGraph(); 00076 ~vtkDirectedAcyclicGraph(); 00077 00079 virtual bool IsStructureValid(vtkGraph *g); 00080 00081 private: 00082 vtkDirectedAcyclicGraph(const vtkDirectedAcyclicGraph&); // Not implemented. 00083 void operator=(const vtkDirectedAcyclicGraph&); // Not implemented. 00084 }; 00085 00086 #endif