VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkDataArrayCollection.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDataArrayCollection.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
=========================================================================*/
22
#ifndef __vtkDataArrayCollection_h
23
#define __vtkDataArrayCollection_h
24
25
#include "
vtkCollection.h
"
26
27
#include "
vtkDataArray.h
"
// Needed for inline methods
28
29
class
VTK_COMMON_EXPORT
vtkDataArrayCollection
:
public
vtkCollection
30
{
31
public
:
32
static
vtkDataArrayCollection
*
New
();
33
vtkTypeMacro(
vtkDataArrayCollection
,
vtkCollection
);
34
36
37
void
AddItem
(
vtkDataArray
*ds)
38
{
39
this->
vtkCollection::AddItem
(ds);
40
}
42
44
45
vtkDataArray
*
GetNextItem
() {
46
return
static_cast<
vtkDataArray
*
>
(this->
GetNextItemAsObject
());};
48
50
51
vtkDataArray
*
GetItem
(
int
i) {
52
return
static_cast<
vtkDataArray
*
>
(this->
GetItemAsObject
(i));};
54
55
//BTX
57
59
vtkDataArray
*
GetNextDataArray
(
vtkCollectionSimpleIterator
&cookie) {
60
return
static_cast<
vtkDataArray
*
>
(this->
GetNextItemAsObject
(cookie));};
61
//ETX
63
64
protected
:
65
vtkDataArrayCollection
() {};
66
~vtkDataArrayCollection
() {};
67
68
69
private
:
70
// hide the standard AddItem from the user and the compiler.
71
void
AddItem
(
vtkObject
*o) { this->
vtkCollection::AddItem
(o); };
72
73
private
:
74
vtkDataArrayCollection
(
const
vtkDataArrayCollection
&);
// Not implemented.
75
void
operator=(
const
vtkDataArrayCollection
&);
// Not implemented.
76
};
77
78
79
#endif
Generated on Wed Nov 21 2012 21:33:39 for VTK by
1.8.2