VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSILBuilder.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 =========================================================================*/ 00026 #ifndef __vtkSILBuilder_h 00027 #define __vtkSILBuilder_h 00028 00029 #include "vtkIOXdmf2Module.h" // For export macro 00030 #include "vtkObject.h" 00031 00032 class vtkUnsignedCharArray; 00033 class vtkStringArray; 00034 class vtkMutableDirectedGraph; 00035 00036 class VTKIOXDMF2_EXPORT vtkSILBuilder : public vtkObject 00037 { 00038 public: 00039 static vtkSILBuilder* New(); 00040 vtkTypeMacro(vtkSILBuilder, vtkObject); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 00045 void SetSIL(vtkMutableDirectedGraph*); 00046 vtkGetObjectMacro(SIL, vtkMutableDirectedGraph); 00048 00050 void Initialize(); 00051 00053 00054 vtkIdType AddVertex(const char* name); 00055 vtkIdType AddChildEdge(vtkIdType parent, vtkIdType child); 00056 vtkIdType AddCrossEdge(vtkIdType src, vtkIdType dst); 00058 00060 00061 vtkGetMacro(RootVertex, vtkIdType); 00063 00064 //BTX 00065 protected: 00066 vtkSILBuilder(); 00067 ~vtkSILBuilder(); 00068 00069 vtkStringArray* NamesArray; 00070 vtkUnsignedCharArray* CrossEdgesArray; 00071 vtkMutableDirectedGraph* SIL; 00072 00073 vtkIdType RootVertex; 00074 00075 private: 00076 vtkSILBuilder(const vtkSILBuilder&); // Not implemented. 00077 void operator=(const vtkSILBuilder&); // Not implemented. 00078 //ETX 00079 }; 00080 00081 #endif