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 =========================================================================*/
19 #ifndef vtkDataObjectTreeInternals_h
20 #define vtkDataObjectTreeInternals_h
21 
22 #include "vtkDataObject.h"
23 #include "vtkInformation.h"
24 #include "vtkSmartPointer.h"
25 
26 #include <vector>
27 
28 //-----------------------------------------------------------------------------
29 // Item in the VectorOfDataObjects.
31 {
34 
36  {
37  this->DataObject = dobj;
38  this->MetaData = info;
39  }
40 };
41 
42 //-----------------------------------------------------------------------------
44 {
45 public:
46  typedef std::vector<vtkDataObjectTreeItem> VectorOfDataObjects;
47  typedef VectorOfDataObjects::iterator Iterator;
48  typedef VectorOfDataObjects::reverse_iterator ReverseIterator;
49 
50  VectorOfDataObjects Children;
51 };
52 
53 
54 //-----------------------------------------------------------------------------
55 class vtkDataObjectTreeIndex : public std::vector<unsigned int>
56 {
57  int IsValid()
58  {
59  return (this->size()> 0);
60  }
61 };
62 
63 #endif
64 
65 
66 // 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