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 =========================================================================*/
27 #ifndef vtkSILBuilder_h
28 #define vtkSILBuilder_h
29 
30 #include "vtkIOXdmf2Module.h" // For export macro
31 #include "vtkObject.h"
32 
34 class vtkStringArray;
36 
37 class VTKIOXDMF2_EXPORT vtkSILBuilder : public vtkObject
38 {
39 public:
40  static vtkSILBuilder* New();
41  vtkTypeMacro(vtkSILBuilder, vtkObject);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
49  vtkGetObjectMacro(SIL, vtkMutableDirectedGraph);
51 
55  void Initialize();
56 
58 
61  vtkIdType AddVertex(const char* name);
65 
67 
70  vtkGetMacro(RootVertex, vtkIdType);
72 
73 protected:
76 
80 
82 
83 private:
84  vtkSILBuilder(const vtkSILBuilder&) VTK_DELETE_FUNCTION;
85  void operator=(const vtkSILBuilder&) VTK_DELETE_FUNCTION;
86 
87 };
88 
89 #endif
a simple class to control print indentation
Definition: vtkIndent.h:40
An editable directed graph.
abstract base class for most VTK objects
Definition: vtkObject.h:60
helper class to build a SIL i.e.
Definition: vtkSILBuilder.h:38
vtkIdType AddChildEdge(vtkIdType parent, vtkIdType child)
static vtkSILBuilder * New()
vtkIdType AddCrossEdge(vtkIdType src, vtkIdType dst)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkStringArray * NamesArray
Definition: vtkSILBuilder.h:77
void SetSIL(vtkMutableDirectedGraph *)
Get/Set the graph to populate.
vtkMutableDirectedGraph * SIL
Definition: vtkSILBuilder.h:79
vtkUnsignedCharArray * CrossEdgesArray
Definition: vtkSILBuilder.h:78
void Initialize()
Initializes the data-structures.
vtkIdType RootVertex
Definition: vtkSILBuilder.h:81
vtkIdType AddVertex(const char *name)
Add vertex, child-edge or cross-edge to the graph.
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of unsigned char
@ name
Definition: vtkX3D.h:219
int vtkIdType
Definition: vtkType.h:287