VTK  9.0.20200918
vtkDataObjectTreeInternals.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataObjectTreeInternals.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 =========================================================================*/
20 #ifndef vtkDataObjectTreeInternals_h
21 #define vtkDataObjectTreeInternals_h
22 
23 #include "vtkDataObject.h"
24 #include "vtkInformation.h"
25 #include "vtkSmartPointer.h"
26 
27 #include <vector>
28 
29 //-----------------------------------------------------------------------------
30 // Item in the VectorOfDataObjects.
32 {
35 
37  {
38  this->DataObject = dobj;
39  this->MetaData = info;
40  }
41 };
42 
43 //-----------------------------------------------------------------------------
45 {
46 public:
47  typedef std::vector<vtkDataObjectTreeItem> VectorOfDataObjects;
48  typedef VectorOfDataObjects::iterator Iterator;
49  typedef VectorOfDataObjects::reverse_iterator ReverseIterator;
50 
52 };
53 
54 //-----------------------------------------------------------------------------
55 class vtkDataObjectTreeIndex : public std::vector<unsigned int>
56 {
57  int IsValid() { return !this->empty(); }
58 };
59 
60 #endif
61 
62 // VTK-HeaderTest-Exclude: vtkDataObjectTreeInternals.h
vtkDataObjectTreeItem::vtkDataObjectTreeItem
vtkDataObjectTreeItem(vtkDataObject *dobj=nullptr, vtkInformation *info=nullptr)
Definition: vtkDataObjectTreeInternals.h:36
vtkX3D::vector
Definition: vtkX3D.h:243
vtkDataObjectTreeItem::DataObject
vtkSmartPointer< vtkDataObject > DataObject
Definition: vtkDataObjectTreeInternals.h:33
vtkDataObjectTreeInternals::Children
VectorOfDataObjects Children
Definition: vtkDataObjectTreeInternals.h:51
vtkDataObjectTreeInternals::ReverseIterator
VectorOfDataObjects::reverse_iterator ReverseIterator
Definition: vtkDataObjectTreeInternals.h:49
vtkDataObjectTreeItem
Definition: vtkDataObjectTreeInternals.h:31
vtkDataObjectTreeItem::MetaData
vtkSmartPointer< vtkInformation > MetaData
Definition: vtkDataObjectTreeInternals.h:34
vtkSmartPointer< vtkDataObject >
vtkDataObjectTreeInternals::Iterator
VectorOfDataObjects::iterator Iterator
Definition: vtkDataObjectTreeInternals.h:48
vtkSmartPointer.h
vtkDataObjectTreeInternals::VectorOfDataObjects
std::vector< vtkDataObjectTreeItem > VectorOfDataObjects
Definition: vtkDataObjectTreeInternals.h:47
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkDataObject.h
vtkInformation.h
vtkDataObjectTreeIndex
Definition: vtkDataObjectTreeInternals.h:55
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkDataObjectTreeInternals
Definition: vtkDataObjectTreeInternals.h:44