VTK
vtkSILBuilder.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSILBuilder.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 =========================================================================*/
26 #ifndef vtkSILBuilder_h
27 #define vtkSILBuilder_h
28 
29 #include "vtkIOXdmf2Module.h" // For export macro
30 #include "vtkObject.h"
31 
33 class vtkStringArray;
35 
36 class VTKIOXDMF2_EXPORT vtkSILBuilder : public vtkObject
37 {
38 public:
39  static vtkSILBuilder* New();
40  vtkTypeMacro(vtkSILBuilder, vtkObject);
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  void SetSIL(vtkMutableDirectedGraph*);
46  vtkGetObjectMacro(SIL, vtkMutableDirectedGraph);
48 
50  void Initialize();
51 
53 
54  vtkIdType AddVertex(const char* name);
55  vtkIdType AddChildEdge(vtkIdType parent, vtkIdType child);
56  vtkIdType AddCrossEdge(vtkIdType src, vtkIdType dst);
58 
60 
61  vtkGetMacro(RootVertex, vtkIdType);
63 
64 //BTX
65 protected:
66  vtkSILBuilder();
67  ~vtkSILBuilder();
68 
72 
74 
75 private:
76  vtkSILBuilder(const vtkSILBuilder&); // Not implemented.
77  void operator=(const vtkSILBuilder&); // Not implemented.
78 //ETX
79 };
80 
81 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
a vtkAbstractArray subclass for strings
int vtkIdType
Definition: vtkType.h:275
vtkMutableDirectedGraph * SIL
Definition: vtkSILBuilder.h:71
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkStringArray * NamesArray
Definition: vtkSILBuilder.h:69
vtkIdType RootVertex
Definition: vtkSILBuilder.h:73
a simple class to control print indentation
Definition: vtkIndent.h:38
An editable directed graph.
dynamic, self-adjusting array of unsigned char
helper class to build a SIL i.e. a directed graph used by reader producing composite datasets to desc...
Definition: vtkSILBuilder.h:36
static vtkObject * New()
vtkUnsignedCharArray * CrossEdgesArray
Definition: vtkSILBuilder.h:70