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 
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:
75  ~vtkSILBuilder() override;
76 
80 
82 
83 private:
84  vtkSILBuilder(const vtkSILBuilder&) = delete;
85  void operator=(const vtkSILBuilder&) = delete;
86 
87 };
88 
89 #endif
vtkSILBuilder::Initialize
void Initialize()
Initializes the data-structures.
vtkMutableDirectedGraph
An editable directed graph.
Definition: vtkMutableDirectedGraph.h:52
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkSILBuilder::NamesArray
vtkStringArray * NamesArray
Definition: vtkSILBuilder.h:77
vtkSILBuilder::CrossEdgesArray
vtkUnsignedCharArray * CrossEdgesArray
Definition: vtkSILBuilder.h:78
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:42
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkSILBuilder::~vtkSILBuilder
~vtkSILBuilder() override
vtkSILBuilder::AddVertex
vtkIdType AddVertex(const char *name)
Add vertex, child-edge or cross-edge to the graph.
vtkSILBuilder::vtkSILBuilder
vtkSILBuilder()
vtkSILBuilder::AddCrossEdge
vtkIdType AddCrossEdge(vtkIdType src, vtkIdType dst)
vtkSILBuilder::RootVertex
vtkIdType RootVertex
Definition: vtkSILBuilder.h:81
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSILBuilder::SetSIL
void SetSIL(vtkMutableDirectedGraph *)
Get/Set the graph to populate.
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkObject.h
vtkSILBuilder::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSILBuilder
helper class to build a SIL i.e.
Definition: vtkSILBuilder.h:38
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:43
vtkSILBuilder::New
static vtkSILBuilder * New()
vtkSILBuilder::AddChildEdge
vtkIdType AddChildEdge(vtkIdType parent, vtkIdType child)
vtkSILBuilder::SIL
vtkMutableDirectedGraph * SIL
Definition: vtkSILBuilder.h:79