VTK
vtkVolumeCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumeCollection.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 =========================================================================*/
26 #ifndef vtkVolumeCollection_h
27 #define vtkVolumeCollection_h
28 
29 #include "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkPropCollection.h"
31 
32 #include "vtkVolume.h" // Needed for static cast
33 
35 {
36  public:
37  static vtkVolumeCollection *New();
39  virtual void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  void AddItem(vtkVolume *a)
44  { this->vtkCollection::AddItem(a); }
46 
48 
51  { return static_cast<vtkVolume *>(this->GetNextItemAsObject()); }
53 
54 
56 
59  { return this->GetNextVolume(); }
61 
62  //BTX
64 
67  { return static_cast<vtkVolume *>(this->GetNextItemAsObject(cookie)); }
68  //ETX
70 
71 protected:
74 
75 private:
76  // hide the standard AddItem from the user and the compiler.
77  void AddItem(vtkObject *o)
78  { this->vtkCollection::AddItem(o); }
79  void AddItem(vtkProp *o)
80  { this->vtkPropCollection::AddItem(o); }
81 
82 private:
83  vtkVolumeCollection(const vtkVolumeCollection&); // Not implemented.
84  void operator=(const vtkVolumeCollection&); // Not implemented.
85 };
86 
87 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:49
abstract base class for most VTK objects
Definition: vtkObject.h:61
void PrintSelf(ostream &os, vtkIndent indent)
vtkVolume * GetNextVolume(vtkCollectionSimpleIterator &cookie)
a list of Props
a simple class to control print indentation
Definition: vtkIndent.h:38
a list of volumes
vtkVolume * GetNextVolume()
void AddItem(vtkObject *)
void AddItem(vtkProp *a)
#define VTKRENDERINGCORE_EXPORT
vtkObject * GetNextItemAsObject()
static vtkPropCollection * New()
void AddItem(vtkVolume *a)