VTK
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 
51  VectorOfDataObjects Children;
52 };
53 
54 
55 //-----------------------------------------------------------------------------
56 class vtkDataObjectTreeIndex : public std::vector<unsigned int>
57 {
58  int IsValid()
59  {
60  return (this->size()> 0);
61  }
62 };
63 
64 #endif
65 
66 
67 // VTK-HeaderTest-Exclude: vtkDataObjectTreeInternals.h
vtkSmartPointer< vtkDataObject > DataObject
Store vtkAlgorithm input/output information.
vtkSmartPointer< vtkInformation > MetaData
VectorOfDataObjects::iterator Iterator
VectorOfDataObjects::reverse_iterator ReverseIterator
general representation of visualization data
Definition: vtkDataObject.h:64
vtkDataObjectTreeItem(vtkDataObject *dobj=0, vtkInformation *info=0)
std::vector< vtkDataObjectTreeItem > VectorOfDataObjects