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) override;
43 
45 
48  void SetSIL(vtkMutableDirectedGraph*);
49  vtkGetObjectMacro(SIL, vtkMutableDirectedGraph);
51 
55  void Initialize();
56 
58 
61  vtkIdType AddVertex(const char* name);
62  vtkIdType AddChildEdge(vtkIdType parent, vtkIdType child);
63  vtkIdType AddCrossEdge(vtkIdType src, vtkIdType dst);
65 
67 
70  vtkGetMacro(RootVertex, vtkIdType);
72 
73 protected:
74  vtkSILBuilder();
75  ~vtkSILBuilder() override;
76 
80 
82 
83 private:
84  vtkSILBuilder(const vtkSILBuilder&) = delete;
85  void operator=(const vtkSILBuilder&) = delete;
86 
87 };
88 
89 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a vtkAbstractArray subclass for strings
int vtkIdType
Definition: vtkType.h:347
vtkMutableDirectedGraph * SIL
Definition: vtkSILBuilder.h:79
vtkStringArray * NamesArray
Definition: vtkSILBuilder.h:77
vtkIdType RootVertex
Definition: vtkSILBuilder.h:81
a simple class to control print indentation
Definition: vtkIndent.h:39
An editable directed graph.
dynamic, self-adjusting array of unsigned char
helper class to build a SIL i.e.
Definition: vtkSILBuilder.h:37
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkUnsignedCharArray * CrossEdgesArray
Definition: vtkSILBuilder.h:78