VTK  9.1.0
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
34class vtkStringArray;
36
37class VTKIOXDMF2_EXPORT vtkSILBuilder : public vtkObject
38{
39public:
40 static vtkSILBuilder* New();
41 vtkTypeMacro(vtkSILBuilder, vtkObject);
42 void PrintSelf(ostream& os, vtkIndent indent) override;
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
73protected:
75 ~vtkSILBuilder() override;
76
80
82
83private:
84 vtkSILBuilder(const vtkSILBuilder&) = delete;
85 void operator=(const vtkSILBuilder&) = delete;
86};
87
88#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
An editable directed graph.
abstract base class for most VTK objects
Definition: vtkObject.h:73
helper class to build a SIL i.e.
Definition: vtkSILBuilder.h:38
vtkIdType AddChildEdge(vtkIdType parent, vtkIdType child)
Add vertex, child-edge or cross-edge to the graph.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType AddCrossEdge(vtkIdType src, vtkIdType dst)
Add vertex, child-edge or cross-edge to the graph.
static vtkSILBuilder * New()
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
~vtkSILBuilder() override
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:225
int vtkIdType
Definition: vtkType.h:332