VTK  9.1.0
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
36 vtkDataObjectTreeItem(vtkDataObject* dobj = nullptr, vtkInformation* info = nullptr)
37 {
38 this->DataObject = dobj;
39 this->MetaData = info;
40 }
41};
42
43//-----------------------------------------------------------------------------
45{
46public:
47 typedef std::vector<vtkDataObjectTreeItem> VectorOfDataObjects;
48 typedef VectorOfDataObjects::iterator Iterator;
49 typedef VectorOfDataObjects::reverse_iterator ReverseIterator;
50
52};
53
54//-----------------------------------------------------------------------------
55class vtkDataObjectTreeIndex : public std::vector<unsigned int>
56{
57 int IsValid() { return !this->empty(); }
58};
59
60#endif
61
62// VTK-HeaderTest-Exclude: vtkDataObjectTreeInternals.h
VectorOfDataObjects::reverse_iterator ReverseIterator
std::vector< vtkDataObjectTreeItem > VectorOfDataObjects
VectorOfDataObjects::iterator Iterator
general representation of visualization data
Store vtkAlgorithm input/output information.
Hold a reference to a vtkObjectBase instance.
vtkSmartPointer< vtkDataObject > DataObject
vtkDataObjectTreeItem(vtkDataObject *dobj=nullptr, vtkInformation *info=nullptr)
vtkSmartPointer< vtkInformation > MetaData